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
// Corona Widget by Shafiq Mustapa | |
// by @shafiqmustapa | |
// like what I do? buy me a coffee -> https://www.buymeacoffee.com/9itd16a | |
// HOW TO | |
// 1) Install Scriptable @ https://apps.apple.com/us/app/scriptable/id1405459188 | |
// 2) Copy this entire script in to Scriptable (tip: you can send it to your iPhone via Whatsapp/Messenger/Telegram etc) | |
const url = https://coronavirus-19-api.herokuapp.com/countries/Malaysia | |
const req = new Request(url) |
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
// Hello Gold Widget by Shafiq Mustapa | |
// by @shafiqmustapa | |
// like what I do? buy me a coffee -> https://www.buymeacoffee.com/9itd16a | |
// HOW TO | |
// 1) Install Scriptable @ https://apps.apple.com/us/app/scriptable/id1405459188 | |
// 2) Copy this entire script in to Scriptable (tip: you can send it to your iPhone via Whatsapp/Messenger/Telegram etc) | |
const endpoint = "https://api.hellogold.com/prod/api/v2/spot_price.json" | |
const req = new Request(endpoint) |
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
p<?php query_posts('orderby=rand&showposts=1&cat=75,76,77') |
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
175.145.244.48:8080 | |
175.139.218.9:8080 | |
175.139.205.52:8080 | |
43.228.245.164:80 | |
175.144.71.3:53281 | |
61.6.157.3:53281 | |
113.23.179.114:8181 | |
175.138.57.110:8080 |
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
while(1) | |
{ | |
await Delay(15000); | |
ClickByTag("a", "random"); | |
} |
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
await Delay(5000); | |
while(await IsLoading()){ | |
await Delay(5000); | |
} | |
var ran = Random(0,100); | |
if(ran < 50) { | |
await Delay(15000); | |
ClickById("custom_html-3"); | |
} else if(ran >=51 && ran < 70) { | |
await Delay(15000); |
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
await Delay(1000); | |
while(await IsLoading()) { | |
await Delay(1000); | |
} | |
await Delay(5000); | |
ClickByXpath("input","type","text"); | |
await Delay(3000); | |
Typing("gunaini"); | |
await Delay(2000); | |
SendKeyPress(13); |
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
await Delay(1000); | |
while(await IsLoading()) { | |
await Delay(1000); | |
} | |
await Delay(5000); | |
ClickByXpath("input","type","text"); | |
await Delay(3000); | |
Typing("jbfoodclub"); | |
await Delay(2000); | |
SendKeyPress(13); |
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
#backup retention only 7 days | |
0 1 * * * find /home/sicksand/backup -mtime +7 -type f -delete | |
#backup | |
0 5 * * * mysqldump -u empdb -empdbpassword --single-transaction empdb | gzip -9 > /home/sicksand/backup/empdb_`date +\%Y\%m\%d_\%H\%M\%S`.sql.gz |
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 | |
COUNT=`'SHOW SLAVE STATUS\G' | mysql -u root --password=password123 mysql | grep 'Master_Log_Pos' | awk '/Read/{a=$NF} /Exec/{b=$NF} END{print a-b}'` | |
# echo "count" $COUNT | |
# check if COUNT value is zero or not zero | |
if [ $COUNT -gt 0 ]; then | |
curl -s --user 'api:key-getyourkeyatmailgun' \ | |
https://api.mailgun.net/v3/mg.shafiqmustapa.my/messages \ | |
-F from='MySQL Replication Status <[email protected]>' \ | |
-F to='Shafiq Mustapa <[email protected]>' \ | |
-F cc='Project Manager <[email protected]>, Support <[email protected]>, ' \ |
NewerOlder