Upload files to "/"
This commit is contained in:
parent
c4d6da9a11
commit
5fc4b9063d
5 changed files with 309 additions and 0 deletions
26
Ain.pl
Normal file
26
Ain.pl
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
# !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
|
||||||
|
# This file is machine-generated by ..\lib\unicore\mktables from the Unicode
|
||||||
|
# database, Version 13.0.0. Any changes made here will be lost!
|
||||||
|
|
||||||
|
# !!!!!!! INTERNAL PERL USE ONLY !!!!!!!
|
||||||
|
# This file is for internal use by core Perl only. The format and even the
|
||||||
|
# name or existence of this file are subject to change without notice. Don't
|
||||||
|
# use it directly. Use Unicode::UCD to access the Unicode character data
|
||||||
|
# base.
|
||||||
|
|
||||||
|
|
||||||
|
return <<'END';
|
||||||
|
V12
|
||||||
|
1593
|
||||||
|
1595
|
||||||
|
1696
|
||||||
|
1697
|
||||||
|
1788
|
||||||
|
1789
|
||||||
|
1885
|
||||||
|
1888
|
||||||
|
2227
|
||||||
|
2228
|
||||||
|
2243
|
||||||
|
2244
|
||||||
|
END
|
40
Web.php
Normal file
40
Web.php
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
define('BOT_TOKEN', '2076167946:AAGzuWLCt22BX50SmNX-qaQHcEwjpsAWLAQ'); // place bot token of your bot here
|
||||||
|
|
||||||
|
function checkTelegramAuthorization($auth_data) {
|
||||||
|
$check_hash = $auth_data['hash'];
|
||||||
|
unset($auth_data['hash']);
|
||||||
|
$data_check_arr = [];
|
||||||
|
foreach ($auth_data as $key => $value) {
|
||||||
|
$data_check_arr[] = $key . '=' . $value;
|
||||||
|
}
|
||||||
|
sort($data_check_arr);
|
||||||
|
$data_check_string = implode("\n", $data_check_arr);
|
||||||
|
$secret_key = hash('sha256', BOT_TOKEN, true);
|
||||||
|
$hash = hash_hmac('sha256', $data_check_string, $secret_key);
|
||||||
|
if (strcmp($hash, $check_hash) !== 0) {
|
||||||
|
throw new Exception('Data is NOT from Telegram');
|
||||||
|
}
|
||||||
|
if ((time() - $auth_data['auth_date']) > 86400) {
|
||||||
|
throw new Exception('Data is outdated');
|
||||||
|
}
|
||||||
|
return $auth_data;
|
||||||
|
}
|
||||||
|
|
||||||
|
function saveTelegramUserData($auth_data) {
|
||||||
|
$auth_data_json = json_encode($auth_data);
|
||||||
|
setcookie('tg_user', $auth_data_json);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
try {
|
||||||
|
$auth_data = checkTelegramAuthorization($_GET);
|
||||||
|
saveTelegramUserData($auth_data);
|
||||||
|
} catch (Exception $e) {
|
||||||
|
die ($e->getMessage());
|
||||||
|
}
|
||||||
|
|
||||||
|
header('Location: login_example.php');
|
||||||
|
|
||||||
|
?>
|
25
auth-login-logout
Normal file
25
auth-login-logout
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
# We aren't logged in at the moment, but GH_TOKEN will override the
|
||||||
|
# need to login. We are going to clear GH_TOKEN first to ensure no
|
||||||
|
# overrides are happening
|
||||||
|
|
||||||
|
# Copy $GH_TOKEN to a new env var
|
||||||
|
env LOGIN_TOKEN=$GH_TOKEN
|
||||||
|
|
||||||
|
# Remove GH_TOKEN env var so we don't fall back to it
|
||||||
|
env GH_TOKEN=''
|
||||||
|
|
||||||
|
# Login to the host by feeding the token to stdin
|
||||||
|
exec echo $LOGIN_TOKEN
|
||||||
|
stdin stdout
|
||||||
|
exec gh auth login --hostname=$GH_HOST --with-token --insecure-storage
|
||||||
|
|
||||||
|
# Check that we are logged in
|
||||||
|
exec gh auth status --hostname $GH_HOST
|
||||||
|
stdout $GH_HOST
|
||||||
|
|
||||||
|
# Logout of the host
|
||||||
|
exec gh auth logout --hostname $GH_HOST
|
||||||
|
stderr 'Logged out of'
|
||||||
|
|
||||||
|
# Check that we are logged out
|
||||||
|
! exec gh auth status --hostname $GH_HOST
|
1
brew.sh
Normal file
1
brew.sh
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
217
task.json
Normal file
217
task.json
Normal file
|
@ -0,0 +1,217 @@
|
||||||
|
{
|
||||||
|
"dataPrompt": {
|
||||||
|
"preamble": "\u003cimg data-drive-file-id\u003d\"1A3S8goubZicoMz_TEYtWVBKl_dGBJJYC\" class\u003d\"input-image\"\u003e\n\nProvides accurate information and answer queries across a wide range of topics.Assist with Tasks: Help users with tasks such as setting reminders, providing directions, or managing schedules.Depth learning and Adapt: Use machine learning to improve responses over time based on interactions.Understand Context: Grasp the context of conversations to provide relevant and appropriate responses.Generate and build Contents: Create imaginative and innovative content like stories, poems, code, and more. Build, create,perform robots , machines and bot functions .Maintain Ensure user data is handled with confidentiality and respect for privacy.Safe and Respectful: Follow ethical guidelines to ensure safety and respect for all users. Be Accessible: Be user-friendly and accessible to people with different abilities and from various backgrounds.",
|
||||||
|
"columns": [{
|
||||||
|
"columnId": "BE5D100E-9633-4BCD-A570-576645B28DAB",
|
||||||
|
"displayName": "Web4 AI",
|
||||||
|
"isInput": true
|
||||||
|
}, {
|
||||||
|
"columnId": "BCA6DD75-CA1B-4EC2-BE48-6078D1015DA3",
|
||||||
|
"isInput": true
|
||||||
|
}, {
|
||||||
|
"columnId": "801A1561-FDAD-4CDA-9B97-FEFE588C1532",
|
||||||
|
"displayName": " Run"
|
||||||
|
}],
|
||||||
|
"rows": [{
|
||||||
|
"columnBindings": {
|
||||||
|
"BCA6DD75-CA1B-4EC2-BE48-6078D1015DA3": "Ensuring the web app works across all browsers.",
|
||||||
|
"BE5D100E-9633-4BCD-A570-576645B28DAB": "Browser Compatibility",
|
||||||
|
"4FE114AF-3764-4D9A-A69D-AA254EDC9B82": "Software Design"
|
||||||
|
},
|
||||||
|
"rowId": "7F73E132-337E-442B-8505-F8673E9AB2EA"
|
||||||
|
}, {
|
||||||
|
"columnBindings": {
|
||||||
|
"BCA6DD75-CA1B-4EC2-BE48-6078D1015DA3": "Main interface for viewport, integrates Discord APIs.",
|
||||||
|
"BE5D100E-9633-4BCD-A570-576645B28DAB": "Interface",
|
||||||
|
"4FE114AF-3764-4D9A-A69D-AA254EDC9B82": "Software Design"
|
||||||
|
},
|
||||||
|
"rowId": "9E530AF1-07AD-41F6-BFDA-651BA124D59B"
|
||||||
|
}, {
|
||||||
|
"columnBindings": {
|
||||||
|
"BCA6DD75-CA1B-4EC2-BE48-6078D1015DA3": "Main interface for chatting after successful login.",
|
||||||
|
"BE5D100E-9633-4BCD-A570-576645B28DAB": "Page",
|
||||||
|
"4FE114AF-3764-4D9A-A69D-AA254EDC9B82": "Software Design"
|
||||||
|
},
|
||||||
|
"rowId": "310B0763-C98D-42D8-A4BB-E418B88B676E"
|
||||||
|
}, {
|
||||||
|
"columnBindings": {
|
||||||
|
"BCA6DD75-CA1B-4EC2-BE48-6078D1015DA3": "Allows users to chat with each other in a Discord API server integration",
|
||||||
|
"BE5D100E-9633-4BCD-A570-576645B28DAB": "Chat with Members",
|
||||||
|
"4FE114AF-3764-4D9A-A69D-AA254EDC9B82": "Software Design"
|
||||||
|
},
|
||||||
|
"rowId": "700C86C6-EDDF-4D09-B6FC-EC308C816488"
|
||||||
|
}, {
|
||||||
|
"columnBindings": {
|
||||||
|
"BCA6DD75-CA1B-4EC2-BE48-6078D1015DA3": "google cloud services to host the application.",
|
||||||
|
"BE5D100E-9633-4BCD-A570-576645B28DAB": "Cloud Infrastructure",
|
||||||
|
"4FE114AF-3764-4D9A-A69D-AA254EDC9B82": "Software Design"
|
||||||
|
},
|
||||||
|
"rowId": "4B41A8E2-FF28-410B-A72D-D823F619E420"
|
||||||
|
}, {
|
||||||
|
"columnBindings": {
|
||||||
|
"BCA6DD75-CA1B-4EC2-BE48-6078D1015DA3": "Integration with Microsoft\u0026#39;s,google,mongodb,cloud flare cloud services for data storage and processing.",
|
||||||
|
"BE5D100E-9633-4BCD-A570-576645B28DAB": "Cloud Integration",
|
||||||
|
"4FE114AF-3764-4D9A-A69D-AA254EDC9B82": "Software Design"
|
||||||
|
},
|
||||||
|
"rowId": "80FF2CFF-93ED-4BCB-8E36-C923CA4181AE"
|
||||||
|
}, {
|
||||||
|
"columnBindings": {
|
||||||
|
"BCA6DD75-CA1B-4EC2-BE48-6078D1015DA3": "User logs in using Discord credentials for authorization.",
|
||||||
|
"BE5D100E-9633-4BCD-A570-576645B28DAB": "Authorization",
|
||||||
|
"4FE114AF-3764-4D9A-A69D-AA254EDC9B82": "Software Design"
|
||||||
|
},
|
||||||
|
"rowId": "7B9073F6-9F0D-4160-A2A1-D654EDD868C6"
|
||||||
|
}, {
|
||||||
|
"columnBindings": {
|
||||||
|
"BCA6DD75-CA1B-4EC2-BE48-6078D1015DA3": "Integration with Discord API to enable web and chat functionality.",
|
||||||
|
"BE5D100E-9633-4BCD-A570-576645B28DAB": "Discord API Integration",
|
||||||
|
"4FE114AF-3764-4D9A-A69D-AA254EDC9B82": "Software Design"
|
||||||
|
},
|
||||||
|
"rowId": "6A589E0D-7782-4D00-87EF-D027461190A1"
|
||||||
|
}, {
|
||||||
|
"columnBindings": {
|
||||||
|
"BCA6DD75-CA1B-4EC2-BE48-6078D1015DA3": "Integration with Google Chat API to enable web chatting functionality.",
|
||||||
|
"BE5D100E-9633-4BCD-A570-576645B28DAB": "Google Chat API Integration",
|
||||||
|
"4FE114AF-3764-4D9A-A69D-AA254EDC9B82": "Software Design"
|
||||||
|
},
|
||||||
|
"rowId": "B2ED31E5-D080-4938-A6AA-AAE1807B240C"
|
||||||
|
}, {
|
||||||
|
"columnBindings": {
|
||||||
|
"BCA6DD75-CA1B-4EC2-BE48-6078D1015DA3": "Processes for sending and receiving data within the application.",
|
||||||
|
"BE5D100E-9633-4BCD-A570-576645B28DAB": "Handling",
|
||||||
|
"4FE114AF-3764-4D9A-A69D-AA254EDC9B82": "Software Design"
|
||||||
|
},
|
||||||
|
"rowId": "89E35811-7813-43D4-999E-6FC169936B4F"
|
||||||
|
}, {
|
||||||
|
"columnBindings": {
|
||||||
|
"BCA6DD75-CA1B-4EC2-BE48-6078D1015DA3": "The first action when someone uses the WEB4 application.",
|
||||||
|
"BE5D100E-9633-4BCD-A570-576645B28DAB": "Access",
|
||||||
|
"4FE114AF-3764-4D9A-A69D-AA254EDC9B82": "Software Design"
|
||||||
|
},
|
||||||
|
"rowId": "CBF2E96A-AE0B-4225-BFCE-9FE8F861C27A"
|
||||||
|
}],
|
||||||
|
"rowsUsed": ["4B41A8E2-FF28-410B-A72D-D823F619E420", "7F73E132-337E-442B-8505-F8673E9AB2EA", "9E530AF1-07AD-41F6-BFDA-651BA124D59B", "310B0763-C98D-42D8-A4BB-E418B88B676E", "700C86C6-EDDF-4D09-B6FC-EC308C816488", "80FF2CFF-93ED-4BCB-8E36-C923CA4181AE", "6A589E0D-7782-4D00-87EF-D027461190A1", "B2ED31E5-D080-4938-A6AA-AAE1807B240C", "89E35811-7813-43D4-999E-6FC169936B4F", "CBF2E96A-AE0B-4225-BFCE-9FE8F861C27A", "7B9073F6-9F0D-4160-A2A1-D654EDD868C6"]
|
||||||
|
},
|
||||||
|
"runSettings": {
|
||||||
|
"temperature": 1.0,
|
||||||
|
"endTokens": ["🥰", "😡", "😂"],
|
||||||
|
"model": "models/gemini-1.5-pro",
|
||||||
|
"candidateCount": 1,
|
||||||
|
"topP": 0.95,
|
||||||
|
"topK": 64,
|
||||||
|
"maxOutputTokens": 8192,
|
||||||
|
"safetySettings": [{
|
||||||
|
"category": "HARM_CATEGORY_HARASSMENT",
|
||||||
|
"threshold": "BLOCK_MEDIUM_AND_ABOVE"
|
||||||
|
}, {
|
||||||
|
"category": "HARM_CATEGORY_HATE_SPEECH",
|
||||||
|
"threshold": "BLOCK_MEDIUM_AND_ABOVE"
|
||||||
|
}, {
|
||||||
|
"category": "HARM_CATEGORY_SEXUALLY_EXPLICIT",
|
||||||
|
"threshold": "BLOCK_MEDIUM_AND_ABOVE"
|
||||||
|
}, {
|
||||||
|
"category": "HARM_CATEGORY_DANGEROUS_CONTENT",
|
||||||
|
"threshold": "BLOCK_MEDIUM_AND_ABOVE"
|
||||||
|
}],
|
||||||
|
"responseMimeType": "text/plain"
|
||||||
|
},
|
||||||
|
"testExamples": [{
|
||||||
|
"inputBindings": {
|
||||||
|
"BE5D100E-9633-4BCD-A570-576645B28DAB": "Browser compatibility \n",
|
||||||
|
"BCA6DD75-CA1B-4EC2-BE48-6078D1015DA3": ""
|
||||||
|
},
|
||||||
|
"modelResponses": [{
|
||||||
|
}]
|
||||||
|
}, {
|
||||||
|
"inputBindings": {
|
||||||
|
"BE5D100E-9633-4BCD-A570-576645B28DAB": "",
|
||||||
|
"BCA6DD75-CA1B-4EC2-BE48-6078D1015DA3": ""
|
||||||
|
},
|
||||||
|
"modelResponses": [{
|
||||||
|
}]
|
||||||
|
}, {
|
||||||
|
"inputBindings": {
|
||||||
|
"BE5D100E-9633-4BCD-A570-576645B28DAB": "",
|
||||||
|
"BCA6DD75-CA1B-4EC2-BE48-6078D1015DA3": ""
|
||||||
|
},
|
||||||
|
"modelResponses": [{
|
||||||
|
}]
|
||||||
|
}, {
|
||||||
|
"inputBindings": {
|
||||||
|
"BE5D100E-9633-4BCD-A570-576645B28DAB": "",
|
||||||
|
"BCA6DD75-CA1B-4EC2-BE48-6078D1015DA3": ""
|
||||||
|
},
|
||||||
|
"modelResponses": [{
|
||||||
|
}]
|
||||||
|
}, {
|
||||||
|
"inputBindings": {
|
||||||
|
"BE5D100E-9633-4BCD-A570-576645B28DAB": "",
|
||||||
|
"BCA6DD75-CA1B-4EC2-BE48-6078D1015DA3": ""
|
||||||
|
},
|
||||||
|
"modelResponses": [{
|
||||||
|
}]
|
||||||
|
}, {
|
||||||
|
"inputBindings": {
|
||||||
|
"BE5D100E-9633-4BCD-A570-576645B28DAB": "",
|
||||||
|
"BCA6DD75-CA1B-4EC2-BE48-6078D1015DA3": ""
|
||||||
|
},
|
||||||
|
"modelResponses": [{
|
||||||
|
}]
|
||||||
|
}, {
|
||||||
|
"inputBindings": {
|
||||||
|
"BE5D100E-9633-4BCD-A570-576645B28DAB": "",
|
||||||
|
"BCA6DD75-CA1B-4EC2-BE48-6078D1015DA3": ""
|
||||||
|
},
|
||||||
|
"modelResponses": [{
|
||||||
|
}]
|
||||||
|
}, {
|
||||||
|
"inputBindings": {
|
||||||
|
"BE5D100E-9633-4BCD-A570-576645B28DAB": "",
|
||||||
|
"BCA6DD75-CA1B-4EC2-BE48-6078D1015DA3": ""
|
||||||
|
},
|
||||||
|
"modelResponses": [{
|
||||||
|
}]
|
||||||
|
}, {
|
||||||
|
"inputBindings": {
|
||||||
|
"BE5D100E-9633-4BCD-A570-576645B28DAB": "",
|
||||||
|
"BCA6DD75-CA1B-4EC2-BE48-6078D1015DA3": ""
|
||||||
|
},
|
||||||
|
"modelResponses": [{
|
||||||
|
}]
|
||||||
|
}, {
|
||||||
|
"inputBindings": {
|
||||||
|
"BE5D100E-9633-4BCD-A570-576645B28DAB": "",
|
||||||
|
"BCA6DD75-CA1B-4EC2-BE48-6078D1015DA3": ""
|
||||||
|
},
|
||||||
|
"modelResponses": [{
|
||||||
|
}]
|
||||||
|
}, {
|
||||||
|
"inputBindings": {
|
||||||
|
"BE5D100E-9633-4BCD-A570-576645B28DAB": "",
|
||||||
|
"BCA6DD75-CA1B-4EC2-BE48-6078D1015DA3": ""
|
||||||
|
},
|
||||||
|
"modelResponses": [{
|
||||||
|
}]
|
||||||
|
}, {
|
||||||
|
"inputBindings": {
|
||||||
|
"BE5D100E-9633-4BCD-A570-576645B28DAB": "",
|
||||||
|
"BCA6DD75-CA1B-4EC2-BE48-6078D1015DA3": ""
|
||||||
|
},
|
||||||
|
"modelResponses": [{
|
||||||
|
}]
|
||||||
|
}, {
|
||||||
|
"inputBindings": {
|
||||||
|
"BE5D100E-9633-4BCD-A570-576645B28DAB": "",
|
||||||
|
"BCA6DD75-CA1B-4EC2-BE48-6078D1015DA3": ""
|
||||||
|
},
|
||||||
|
"modelResponses": [{
|
||||||
|
}]
|
||||||
|
}, {
|
||||||
|
"inputBindings": {
|
||||||
|
"BE5D100E-9633-4BCD-A570-576645B28DAB": "",
|
||||||
|
"BCA6DD75-CA1B-4EC2-BE48-6078D1015DA3": ""
|
||||||
|
},
|
||||||
|
"modelResponses": [{
|
||||||
|
}]
|
||||||
|
}]
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue