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
## INSTRUCTION | |
## Add these lines at the end of your ~/.bash_profile | |
## If the file is not there, create it with: | |
## touch ~/.bash_profile | |
PS1='\[\033[0;93m\]\u\[\033[0;97m\]@\[\033[0;96m\]\h\[\033[00m\]:\[\033[0;91m\]\w\[\033[00m\]\$ ' | |
alias grep='grep --color=auto' | |
alias fgrep='fgrep --color=auto' | |
alias egrep='egrep --color=auto' | |
alias ll='ls -alF' |
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
# Global | |
-verbose | |
-dontpreverify | |
-repackageclasses | |
-allowaccessmodification | |
-optimizations !code/simplification/arithmetic, !field/*, !class/merging/* | |
-optimizationpasses 5 | |
## -dontobfuscate | |
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
Enter this code in URL bar, then Google Chrome will become an simple text editor. | |
We can even use Ctrl+B, Ctrl+I, Ctrl+U for formating | |
data:text/html,<html contenteditable> |
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
public class PinAlgorithm { | |
public static void main (String[] args) throws java.lang.Exception | |
{ | |
String bssid = "48:F8:B3:97:7A:A8"; | |
int[] allPins = calculePin(bssid); | |
for (int pin : allPins) { | |
System.out.println(String.format("%d", pin)); | |
} | |
} |
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
-assumenosideeffects class android.util.Log { | |
public static *** d(...); | |
public static *** e(...); | |
} | |
from | |
http://stackoverflow.com/questions/12390466/android-proguard-not-removing-all-log-messages |
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
import java.util.Arrays; | |
import java.util.List; | |
public class IpRange { | |
//region BlackListIpRanges | |
public static final List<IpRange> blacklistIpRanges = Arrays.asList( | |
new IpRange("104.132.0.0 - 104.135.255.255"), | |
new IpRange("104.154.0.0 - 104.155.255.255"), | |
new IpRange("104.196.0.0 - 104.199.255.255"), |
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
var url = ''; | |
if (location.href.indexOf('p=fb_subscribe') > 0) { | |
url = 'http://hacklike.vn/phan-loai-cnang/modules/fb_subscribe/process.php'; | |
} | |
if (location.href.indexOf('p=facebook') > 0) { | |
url = 'http://hacklike.vn/phan-loai-cnang/modules/facebook/process.php'; | |
} |
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
var express = require('express'); | |
var app = express(); | |
app.enable('trust proxy'); | |
app.get('/', function (req, res) { | |
var ip = req.ip || req.connection.remoteAddress; | |
res.send('Hello World!' + ip + ' ' + req.connection.remoteAddress); | |
}); |
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
/* | |
* http://www.lazada.vn/le-hoi-mua-sam-tet-nguyen-dan-vong-quay | |
* voucher sector: 3, 7, 9, 14 | |
*/ | |
var mar_timeout; | |
var mar_count = 0; |
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
#ssh to a server | |
ssh user@host | |
#copy ssh key | |
ssh-copy-id [email protected] |
OlderNewer