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 android.content.SharedPreferences; | |
import android.provider.Settings.Secure; | |
import android.telephony.TelephonyManager; | |
import java.io.UnsupportedEncodingException; | |
import java.util.UUID; | |
public class DeviceUuidFactory { |
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 to a server | |
ssh user@host | |
#copy ssh key | |
ssh-copy-id [email protected] |
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
/* | |
* 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 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
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 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
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 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 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 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
-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 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
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 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
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 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
# Global | |
-verbose | |
-dontpreverify | |
-repackageclasses | |
-allowaccessmodification | |
-optimizations !code/simplification/arithmetic, !field/*, !class/merging/* | |
-optimizationpasses 5 | |
## -dontobfuscate | |