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
<?php | |
if (!file_exists('madeline.php')) { | |
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); | |
} | |
include 'madeline.php'; | |
$MadelineProto = new \danog\MadelineProto\API('session.madeline'); | |
$MadelineProto->start(); |
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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"math/big" | |
"net/http" | |
"strconv" |
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
var xhr = new XMLHttpRequest(); | |
xhr.responseType = "json"; | |
xhr.open('GET', "https://api.github.com/repos/iBotPeaches/Apktool/forks", true); | |
xhr.send(); | |
xhr.onreadystatechange = processRequest; | |
function processRequest(e) { | |
if (xhr.readyState == 4 && xhr.status == 200) { |
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
{"lastUpload":"2021-10-24T17:30:15.928Z","extensionVersion":"v3.4.3"} |
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
kubectl() { | |
if [[ $1 == "apply" ]] || [[ $1 == "create" ]] || [[ $1 == "delete" ]] || [[ $1 == "edit" ]] || [[ $1 == "patch" ]]; then | |
cc=$(/usr/bin/kubectl config current-context); | |
read -p $'Current context is \e[1m'$cc$'\e[0m. Show must go on? ' -n1 -r | |
echo | |
if [[ $REPLY =~ ^[Yy]$ ]] | |
then | |
/usr/bin/kubectl $@ | |
return 0 | |
fi |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
void main( int argc, char *argv[ ] ) | |
{ | |
if ( argc != 3 ) exit( 1 ); | |
char *command = argv[ 1 ]; |
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/perl -w | |
open (UC, '<usage_count'); | |
my $l = <UC>; | |
$l =~ s/(\d+)/$1+1/ge; | |
close (UC); | |
open (UC, '>usage_count'); | |
print (UC $l); | |
close (UC); |