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
@n-belokopytov
n-belokopytov / copyDeps.gradle
Last active Aug 10, 2019
Gradle script that generates a task to copy all build variant's dependencies to a certain directory for use with Nexus IQ Server. It copies exploded AARs too, renaming the classes.jar file into "<aar_dependency_name>.jar".
View copyDeps.gradle
apply plugin: 'com.android.application'
android.applicationVariants.all { variant ->
task "copyDependencies${variant.name.capitalize()}"() {
outputs.upToDateWhen { false }
doLast {
println "Executing copyDependencies${variant.name.capitalize()}"
variant.getCompileClasspath().each { fileDependency ->
def sourcePath = fileDependency.absolutePath
def destinationPath = project.projectDir.path + "/build/dependencies/${variant.name}/"
@AKosterin
AKosterin / DexGuardStringDecoder.java
Created Aug 16, 2015
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;
@1mm0rt41PC
1mm0rt41PC / hexdump.py
Last active Dec 29, 2018 — forked from 7h3rAm/hexdump.py
hexdump with full support for python2.x and python 3.x
View hexdump.py
def hexdump( src, length=16, sep='.' ):
'''
@brief Return {src} in hex dump.
@param[in] length {Int} Nb Bytes by row.
@param[in] sep {Char} For the text part, {sep} will be used for non ASCII char.
@return {Str} The hexdump
@note Full support for python2 and python3 !
'''
result = [];
View simple-https-server.py
# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/
# generate server.xml with the following command:
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
# run as follows:
# python simple-https-server.py
# then in your browser, visit:
# https://localhost:4443
import BaseHTTPServer, SimpleHTTPServer
import ssl
@eshizhan
eshizhan / conv2vmx-ovf.py
Last active Apr 30, 2019
a script that can help import VMs into VMware ESXi from VirtualBox. tested vbox 4.2.18 and ESXi 5.1.
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]
View openssl.cnf.ini
# Generate Private Key
$ openssl genrsa -out server.key 2048
# Generate CSR
$ openssl req -new -out server.csr -key server.key -config openssl.cnf
# => Fill in info
# Check CSR
$ openssl req -text -noout -in server.csr
# Sign Cert
$ openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt -extensions v3_req -extfile openssl.cnf
@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)
@0xABD
0xABD / ifndef.py
Created Jan 10, 2012
c c++ include header #ifndef guard
View ifndef.py
import string, sys, os
tt = string.maketrans(string.punctuation,'_'*len(string.punctuation))
for fname in sys.argv[1:]:
hname = os.path.split(fname)[-1].upper().translate(tt)
head_str = '#ifndef ' + hname + '\n#define ' + hname+'\n'
tail_str = '\n#endif //' + hname + '\n'
dt = file(fname).read()
You can’t perform that action at this time.