-
Install Termux, an Android terminal emulator that provides a Linux execution environment and various tools.
-
Update system packages in Termux:
$ pkg update -y
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
| # Reverse proxy untuk app script agar tidak mendapatkan response redirect | |
| from flask import Flask, request, Response | |
| import requests | |
| app = Flask(__name__) | |
| @app.route('/', methods=["GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS", "HEAD"]) | |
| def hello_world(): |
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 datetime import datetime, timedelta | |
| import functools | |
| def timed_cache(**timedelta_kwargs): | |
| def _wrapper(f): | |
| update_delta = timedelta(**timedelta_kwargs) | |
| next_update = datetime.utcnow() + update_delta | |
| # Apply @lru_cache to f with no cache size limit |
- First, you need to open cmd in the admin mode, then run all commands below one by one.
- For x86 and x64
cd /d %ProgramFiles(x86)%\Microsoft Office\Office16
cd /d %ProgramFiles%\Microsoft Office\Office16
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
| import android.content.Context; | |
| import org.json.JSONException; | |
| import org.json.JSONObject; | |
| import java.io.BufferedReader; | |
| import java.io.DataOutputStream; | |
| import java.io.InputStreamReader; | |
| import java.net.HttpURLConnection; | |
| import java.net.URL; |
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
| function checkCashRegister(price, cash, cid) { | |
| var change = cash - price; | |
| var coinValues = [ | |
| { name: 'ONE HUNDRED', val: 100.00 }, | |
| { name: 'TWENTY', val: 20.00 }, | |
| { name: 'TEN', val: 10.00 }, | |
| { name: 'FIVE', val: 5.00 }, | |
| { name: 'ONE', val: 1.00 }, | |
| { name: 'QUARTER', val: 0.25 }, |
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
| obfuscate |
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 | |
| echo -e "# Don't add passphrase" | |
| ssh-keygen -t rsa -b 4096 -m PEM -E SHA512 -f jwtRS512.key | |
| # Don't add passphrase | |
| openssl rsa -in jwtRS512.key -pubout -outform PEM -out jwtRS512.key.pub | |
| cat jwtRS512.key | |
| cat jwtRS512.key.pub |
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
| ssh-keygen -t rsa -b 4096 -e SHA512 -f jwtRS512.key | |
| # Don't add passphrase | |
| openssl rsa -in jwtRS512.key -pubout -outform PEM -out jwtRS512.key.pub | |
| cat jwtRS512.key | |
| cat jwtRS512.key.pub |
NewerOlder
