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
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
0xABD / DexGuardStringDecoder.java
Last active Sep 30, 2015 — forked from AKosterin/DexGuardStringDecoder.java
JEB Plugin for decrypt DexGuard encrypted Strings.
View DexGuardStringDecoder.java
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
0xABD / setup.py
Created Apr 14, 2015
py2exe config single exe file without library.zip
View setup.py
# py2exe config single exe file without library.zip
from distutils.core import setup
import py2exe
setup(
console = ['mytest1.py'],
zipfile = None,
options = {'py2exe' : {
'ascii' : True,
'bundle_files' : 1,
View keybase.md

Keybase proof

I hereby claim:

  • I am 0xABD on github.
  • I am nabdullin (https://keybase.io/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:

View conv2vmx-ovf.py
#!/usr/bin/env python
#
# usage:
# conv2vmx-ovf.py some-vm.ovf
#
# ref: http://www.cnblogs.com/eshizhan/p/3332020.html
#
import sys
fn = sys.argv[1]
@0xABD
0xABD / paul.html
Created Jun 12, 2014
A tribute to Paul the octopus 2014
View paul.html
<html>
<head><title>OW Paul 2014</title></head>
<body>
<p>... and he uttered his oracle:</p>
<p style="font-size:50px">
<script>
var scores2010 = [
[170, "1:0"],
[110, "2:1"],
[70, "1:1"],
@0xABD
0xABD / paul.py
Created Jun 12, 2014
A tribute to Paul the octopus 2014
View paul.py
#!/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
0xABD / android-fix-dcim-timestamp.sh
Created Nov 24, 2013
android: fix photo and video timestamps from their filenames
View android-fix-dcim-timestamp.sh
#!/bin/sh
#
# android - fix photo and video timestamps from their filenames
#
# IMG_YYYYMMDD_HHMMSS.jpg
# PANO_YYYYMMDD_HHMMSS.jpg
# VID_YYYYMMDD_HHMMSS.mp4
#
cd /sdcard/DCIM/Camera/
for i in IMG*.jpg; do touch -t ${i:4:8}.${i:13:6} $i; done;
@0xABD
0xABD / randfile.py
Last active Dec 14, 2015
print a random filename inside the current directory
View randfile.py
#!/usr/bin/env python
import os
import random
dirList = os.listdir('.')
print random.choice(dirList)
@0xABD
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 = "ftp://username:password@example.com/pub/incoming/"
$watchDir = "C:\temp"
$watchFilter = "*.txt"
function uploadFile($fullFileName)
You can’t perform that action at this time.