Skip to content

Instantly share code, notes, and snippets.

Nikita Abdullin 0xABD

  • Planet Earth
Block or report user

Report or block 0xABD

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
0xABD / python_bat_test.bat
Created Aug 28, 2015
Make *.BAT files with python code in Windows
View python_bat_test.bat
@echo off & python -x %~f0 %* & goto :eof
# 1) goto :eof makes CMD jump to the end of file after the 1st line
# 2) -x makes python (must be in the %PATH%) to skip the first line of the script
# 3) %~f0 is the fully qualified file name of the script
import sys
print("Hello! " + sys.argv[0])
0xABD /
Last active Sep 30, 2015 — forked from AKosterin/
JEB Plugin for decrypt DexGuard encrypted Strings.
import jeb.api.IScript;
import jeb.api.JebInstance;
import jeb.api.ast.*;
import jeb.api.ast.Class;
import jeb.api.dex.Dex;
import jeb.api.dex.DexCodeItem;
import jeb.api.dex.DexFieldData;
import jeb.api.dex.DexMethod;
import jeb.api.ui.JavaView;
import jeb.api.ui.View;
0xABD /
Created Apr 14, 2015
py2exe config single exe file without
# py2exe config single exe file without
from distutils.core import setup
import py2exe
console = [''],
zipfile = None,
options = {'py2exe' : {
'ascii' : True,
'bundle_files' : 1,

Keybase proof

I hereby claim:

  • I am 0xABD on github.
  • I am nabdullin ( on keybase.
  • I have a public key whose fingerprint is FF62 278E 5176 8E90 DABE 8EF6 E89C 49B2 2A20 0E13

To claim this, I am signing this object:

#!/usr/bin/env python
# usage:
# some-vm.ovf
# ref:
import sys
fn = sys.argv[1]
0xABD / paul.html
Created Jun 12, 2014
A tribute to Paul the octopus 2014
View paul.html
<head><title>OW Paul 2014</title></head>
<p>... and he uttered his oracle:</p>
<p style="font-size:50px">
var scores2010 = [
[170, "1:0"],
[110, "2:1"],
[70, "1:1"],
0xABD /
Created Jun 12, 2014
A tribute to Paul the octopus 2014
#!/usr/bin/env python
import random
class paul:
scores2010 = [
(170, '1:0'),
(110, '2:1'),
(70, '1:1'),
(70, '0:0'),
(60, '2:0'),
0xABD /
Created Nov 24, 2013
android: fix photo and video timestamps from their filenames
# android - fix photo and video timestamps from their filenames
cd /sdcard/DCIM/Camera/
for i in IMG*.jpg; do touch -t ${i:4:8}.${i:13:6} $i; done;
0xABD /
Last active Dec 14, 2015
print a random filename inside the current directory
#!/usr/bin/env python
import os
import random
dirList = os.listdir('.')
print random.choice(dirList)
0xABD / file_change_notify_to_ftp.ps1
Created Jan 28, 2012
windows: PowerShell: watch for file changes and upload them to FTP
View file_change_notify_to_ftp.ps1
# Watch for files in $watchDir that a match a filer $watchFilter
# and upload them to FTP $ftpUrl when they are changed (modified)
$ftpUrl = ""
$watchDir = "C:\temp"
$watchFilter = "*.txt"
function uploadFile($fullFileName)
You can’t perform that action at this time.