This file contains hidden or 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 | |
$intervals = ["1h","30m","15m","5m","1m"]; | |
$timestamp_start = strtotime('-2 days'); | |
//get list of symbols | |
$xinfo = json_decode(file_get_contents("https://api.binance.com/api/v1/exchangeInfo"), true); | |
$symbols = []; | |
foreach($xinfo["symbols"] as $sym) { | |
$symbols[] = $sym["symbol"]; |
This file contains hidden or 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 | |
list=`xinput --list | grep -i 'mouse'` | |
if [ ${#list} -eq 0 ]; then | |
exec `synclient touchpadoff=0` | |
notify-send "Touchpad on" "Mouse not present" | |
else | |
exec `synclient touchpadoff=1` | |
notify-send "Touchpad off" "Mouse present" | |
fi |
This file contains hidden or 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 | |
# Get args. | |
reload=false | |
while [ "$1" != "" ]; do | |
case $1 in | |
-r | --reload ) reload=true | |
;; | |
-h | --help ) echo "" |
This file contains hidden or 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 | |
# Script to change hosts file when your router does not allow ip loopback | |
# | |
# Save it in /etc/NetworkManager/dispatcher.d | |
wifi=`iwgetid -r`; | |
if [ $wifi = 'ESSID_WIFI' ]; | |
then | |
cat /etc/hosts.common /etc/hosts.in > /etc/hosts |