This file contains 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 sys | |
import os | |
import zlib | |
import re | |
import gnupg | |
import subprocess | |
def verify_signature(gpg, signature, content): | |
"""This function exists because python-gnupg failed me.""" | |
# write signature to a file and get file stream 'rb' |
This file contains 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 http = require('http'); | |
var spawn = require('child_process').spawn; | |
var path = require('path'); | |
var backend = require('git-http-backend'); | |
var zlib = require('zlib'); | |
var server = http.createServer(function (req, res) { | |
var repo = req.url.split('/')[1]; | |
var dir = path.join(__dirname, 'repos', repo); | |
var reqStream = req.headers['content-encoding'] == 'gzip' ? req.pipe(zlib.createGunzip()) : req; |
This file contains 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 http = require('http'); | |
var spawn = require('child_process').spawn; | |
var path = require('path'); | |
var backend = require('git-http-backend'); | |
var zlib = require('zlib'); | |
var server = http.createServer(function (req, res) { | |
var repo = req.url.split('/')[1]; | |
var dir = path.join(__dirname, 'repos', repo); | |
var reqStream = req.headers['content-encoding'] == 'gzip' ? req.pipe(zlib.createGunzip()) : req; |
This file contains 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
#!/bin/bash | |
while [[ $# -gt 1 ]] | |
do | |
key="$1" | |
case $key in | |
-c| --commits) | |
COMMITS="$2" | |
shift |
This file contains 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
#!/bin/bash | |
WID=`xdotool search --title "Chromium" | head -1` | |
xdotool windowfocus $WID | |
for i in {1..600} | |
do | |
xdotool key Tab | |
xdotool key Enter | |
sleep 4 | |
done |
This file contains 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.io.*; | |
import java.util.*; | |
import java.math.*; | |
public class Solution { | |
private static final String TAG = Solution.class.getName(); | |
public static void main(String... args) { | |
for(String s : args) | |
System.out.println(s); | |
} |
This file contains 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
#include <stdio.h> | |
#include <string.h> | |
static unsigned char push_cert_sha1[20]; | |
int main() { | |
printf("Length = %d", strlen(push_cert_sha1)); | |
sprintf(push_cert_sha1, "Hello"); | |
printf("Length = %d", strlen(push_cert_sha1)); | |
} |
This file contains 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
# git clone https://github.com/ShikherVerma/ReverseEngineerAndroidLibraries.git ~/AndroidStudioProjects/SampleApplication | |
# cd ~/AndroidStudioProjects/SampleApplication | |
# git checkout lib/butterknife |
This file contains 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
SampleApplication/app/build/generated/source/apt/debug/com/shikherverma/sampleapplication/MainActivity_ViewBinding.java |
This file contains 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
private static Unbinder createBinding(@NonNull Object target, @NonNull View source) { | |
Class<?> targetClass = target.getClass(); | |
if (debug) Log.d(TAG, "Looking up binding for " + targetClass.getName()); | |
Constructor<? extends Unbinder> constructor = findBindingConstructorForClass(targetClass); | |
... |
OlderNewer