- NSIS
- Inno Setup Compiler
$ sudo iptables -t nat -A POSTROUTING -o tap0 -j MASQUERADE
$ sudo iptables -A FORWARD -i tap0 -j ACCEPT
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
| from itertools import cycle | |
| from shutil import get_terminal_size | |
| from threading import Thread | |
| from time import sleep | |
| class Loader: | |
| def __init__(self, desc="Loading...", end="Done!", timeout=0.1): | |
| """ | |
| A loader-like context manager |
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
| # /////////////////////////////////////////////////// | |
| # Bing Image URL Search | |
| # Created by Dagimal | |
| # v0.1 | |
| # --- Search & Grab URL From Bing Search Engine --- | |
| # ////////////////////////////////////////////////// | |
| # CTRL + Z for kill process | |
| import random |
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
| curl http://checkip.amazonaws.com/ |
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
| find . -name '*.zip' -print | zip namazip.zip -@ |
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
| Host ubuntu | |
| HostName [your server IP] | |
| User ubuntu | |
| IdentityFile [your identity file] | |
| Host singapore | |
| HostName [your server IP] | |
| User ubuntu | |
| IdentityFile [your identity file] |
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
| split -l 1000 -d --additional-suffix=.txt file.txt split_file |
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
| # JSON EXTRACTOR | |
| ## Untuk mengambil value dari json, contohnya client_email | |
| ## Pastikan tidak ada file yang kosong | |
| import json | |
| for file in range(10): | |
| with open("key_" + str(file) + ".json") as json_file: | |
| json_data = json.load(json_file) | |
| print(json_data['client_email']) |
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
| for fname in *.*; do | |
| prefix=${fname%.*} | |
| [ ! -f "$fname" ] || [ -f "$prefix.zip" ] && continue | |
| zip "$prefix" "$prefix".* | |
| done |