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/bash | |
if test $# -lt 1 ; then | |
echo "Usage: download_apk.sh <target-dir>" | |
exit 1 | |
fi | |
for APK_FILE in $(ls --color=none); do | |
echo 'installing ' $APK_FILE; | |
adb install $1/$APK_FILE; | |
done |
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_once('./wp-load.php'); | |
echo(wp_hash_password($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
#!/bin/bash | |
sudo apt install git build-essential python3-pip libpq-dev libxml2-dev libxslt1-dev python-dev libffi-dev | |
git clone https://github.com/patreon-opensource/patreon.git | |
cd patreon | |
sudo pip3 install -r requirements.txt | |
sudo pip3 install kombu billiard 'celery<=3.1' maxminddb rsa | |
pytohn3 runserver.py #if all is working fine, you should get an error about firebase configs |
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/bash | |
export ROS_VERSION=lunar | |
sudo apt-add-repository -y universe | |
sudo apt-add-repository -y multiverse | |
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' | |
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116 | |
sudo apt-get update | |
sudo apt-get -y dist-upgrade | |
sudo apt-get install -y ros-$ROS_VERSION-desktop-full python-rosinstall htop zip unzip build-essential rar unrar | |
sudo rosdep 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
sudo apt-add-repository -y universe | |
sudo apt-add-repository -y multiverse | |
sudo apt update | |
sudo apt --force-yes dist-upgrade | |
sudo apt --force-yes install screen htop zip unzip rar unrar build-essential cmake autoconf libtool autoconf git | |
# for lamp server | |
sudo apt install --force-yes --no-install-recommends php5 php5-fpm nginx mysql-client mysql-server | |
#if the main server is python, install pip then the rest of the requirment with it |
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
;this script replaces `F22` button with middle mouse click. | |
;F22 button is is the trigger fired on touchpad three fingers click | |
;compile it and put it in your startup directory | |
#Persistent | |
<#^+F22::Send {mbutton} |
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
wget https://wordpress.org/latest.zip | |
unzip latest.zip | |
mv wordpress/* . | |
rm -rf xmlrpc.php wordpress latest.zip |
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
pragma solidity ^0.4.23; | |
// pragma experimental ABIEncoderV2; | |
library HandLib { | |
// enum HAND_TYPES { HIGH_CARD, ONE_PAIR, TWO_PAIRS, THREE, STRAIGHT, FLUSH, FULL_HOUSE, FOUR, STRAIGHT_FLUSH} | |
// mapping(HAND_TYPES => uint8) handRank { HIGH_CARD: 0, ONE_PAIR: 1, TWO_PAIRS: 2, THREE: 3, STRAIGHT: 4, FLUSH: 5, FULL_HOUSE: 5, FOUR: 6, STRAIGHT_FLUSH: 7} | |
function getCardRank(uint8 card) private pure returns (uint8 rank) { | |
require(card < 52); |
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
pragma solidity ^0.4.23; | |
// pragma experimental ABIEncoderV2; | |
library HandLib { | |
// enum HAND_TYPES { HIGH_CARD, ONE_PAIR, TWO_PAIRS, THREE, STRAIGHT, FLUSH, FULL_HOUSE, FOUR, STRAIGHT_FLUSH} | |
// mapping(HAND_TYPES => uint8) handRank { HIGH_CARD: 0, ONE_PAIR: 1, TWO_PAIRS: 2, THREE: 3, STRAIGHT: 4, FLUSH: 5, FULL_HOUSE: 5, FOUR: 6, STRAIGHT_FLUSH: 7} | |
function getCardRank(uint8 card) private pure returns (uint8 rank) { | |
require(card < 52); |
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 | |
if test $# -lt 1 ; then | |
echo "Usage: download_apk.sh <target-dir>" | |
exit 1 | |
fi | |
for APK_PATH in $(adb shell pm list packages -f -3|sed 's/package://g'|sed s/=.*$//g) ; do | |
echo -n "Pulling $APK_PATH from device... " | |
adb pull $APK_PATH $1 | |
done |
OlderNewer