Skip to content

Instantly share code, notes, and snippets.

View nemanjan00's full-sized avatar

Nemanja Nedeljković nemanjan00

View GitHub Profile

#Privacy policy

  1. No user data will be ever shared

REGISTERS

AX = AH + AL

The accumulator register

INSTRUCTIONS

lea register, var == mov register, [var]

var n = 100000;
// Normal
var start = Date.now();
function prost(n){
for(var i = 2; i <= Math.sqrt(n); i++){
if(n % i == 0){
return false || n == 2;
function prost(n){
for(var i = 2; i <= math.Sqrt(n); i++){
if(n % i == 0){
return false || n == 2;
}
}
return true;
}
# Use PulseAudio by default
pcm.!default {
type pulse
fallback "sysdefault"
hint {
show on
description "Default ALSA Output (currently PulseAudio Sound Server)"
}
}

How to restore system from rooted phone to broken phone

This documentation is still not tested, so, use it only if you know what you are doing.

Requirements

  • They need to be same model

  • They need to be flashable using fastboot

Wiphy phy0
max # scan SSIDs: 20
max scan IEs length: 95 bytes
max # sched scan SSIDs: 0
max # match sets: 0
max # scan plans: 1
max scan plan interval: -1
max scan plan iterations: 0
Retry short limit: 7
Retry long limit: 4
@nemanjan00
nemanjan00 / tracking.js
Created January 28, 2017 06:43
Ebay to Cainiano
// Go to
// http://www.ebay.com/myb/PurchaseHistory
// Run this script
window.location = "http://global.cainiao.com/detail.htm?mailNoList="+encodeURIComponent(Array.from(new Set(Array.prototype.map.call(document.querySelectorAll("[title='Tracking number']"), function(element){return element.innerText.replace("Tracking number", "");}))).join(","));
var fun = function(a, b){
var fun1;
var fun2 = function(){
fun1 = function(a, b){
return a + b - a * 2 - b + a;
}
}
fun2();
#!/usr/bin/python
from datetime import datetime
from Crypto.Cipher import AES
import time
import random
import socket
def discover(timeout=None):
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)