This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version_module": true, | |
"title": "Instant Messaging Private API", | |
"ownerName": "Google", | |
"basePath": "", | |
"version": "v1", | |
"resources": { | |
"group": { | |
"methods": { | |
"kickgroupusers": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
addEventListener('fetch', event => event.respondWith(handleRequest(event.request))); | |
// Add environment variable `TGBOT_TOKEN` via Worker-Settings | |
async function requestTelegramBotAPI(method, payload) { | |
return fetch(`https://api.telegram.org/bot${TGBOT_TOKEN}/${method}`, { | |
method: "POST", | |
headers: { | |
"Content-Type": "application/json; charset=utf-8" | |
}, | |
body: !payload ? undefined : JSON.stringify(payload) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# K4YT3X Server/Community Zshrc | |
# Version: 2024.04.25 | |
# Copyright (C) 2017-2024 K4YT3X. | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Copyright 2015, Timothy Redaelli <tredaelli@archlinux.info> | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 2 of the License, or | |
# (at your option) any later version. | |
# This program is distributed in the hope that it will be useful, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// My game is using a Japanese font that doesn't seem to declare codepoint for Kanjis for those which only comprised of a simple radical. | |
// e.g. https://en.wikipedia.org/wiki/Radical_180 | |
// Radical 180 (U+2FB3) ~~ 音 (U+97F3) | |
// I am remapping the codepoints in software but couldn't find an easy to parse list, ended up scraping from Unicode webpages | |
{ 0x4E00, 0x2F00 }, // Kangxi Radical One | |
{ 0x4E28, 0x2F01 }, // Kangxi Radical Line | |
{ 0x4E36, 0x2F02 }, // Kangxi Radical Dot | |
{ 0x4E3F, 0x2F03 }, // Kangxi Radical Slash | |
{ 0x4E59, 0x2F04 }, // Kangxi Radical Second |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
before_action :cors_set_access_control_headers | |
def cors_preflight_check | |
return unless request.method == 'OPTIONS' | |
cors_set_access_control_headers | |
render json: {} | |
end | |
protected |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/sudo sh | |
## ruby_revealer.sh -- decrypt obfuscated GHE .rb files. 2.0.0 to 2.3.1+. | |
## From `strings ruby_concealer.so`: | |
## | |
## > This obfuscation is intended to discourage GitHub Enterprise customers | |
## > from making modifications to the VM. | |
## | |
## Well, good, as long as its not intended to discourage *me* from doing this! |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
NewerOlder