Skip to content

Instantly share code, notes, and snippets.

@yoyokko
yoyokko / packageAndroid.sh
Created August 19, 2024 07:36 — forked from aveuiller/packageAndroid.sh
Extract the Android .odex files and package a new android.jar with the retrieved classes
#!/bin/sh
##
# Usage:
# ./convert.sh /path/to/framework /path/to/out $apiVersion $arch
#
# $arch is mandatory only in case of an ART system and defines the boot folder to use (arm, x86, x86_64).
##
frameworkDir=$1
# Final output directory
@yoyokko
yoyokko / adb-dns.bat
Created August 19, 2024 07:19 — forked from sharunkumar/adb-dns.bat
Enabling / Disabling private DNS in android via ADB
rem to disable private dns
adb shell settings put global private_dns_mode off
rem to enable private dns with hostname (example with dns.adguard.com)
adb shell settings put global private_dns_mode hostname
adb shell settings put global private_dns_specifier dns.adguard.com
@yoyokko
yoyokko / podforceupdate.sh
Created May 21, 2016 07:42 — forked from mbinna/podforceupdate.sh
Clear CocoaPods cache, re-download and re-install all pods
#!/usr/bin/env bash
rm -rf "${HOME}/Library/Caches/CocoaPods"
rm -rf "`pwd`/Pods/"
pod update
@yoyokko
yoyokko / Makefile
Last active August 29, 2015 14:18 — forked from polesen/Makefile
CC = clang
CFLAGS =
DEPS =
OBJ = modexp2pubkey.o
LIBS = -lssl -lcrypto
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
modexp2pubkey: $(OBJ)
#
# uncrustify config file for objective-c and objective-c++
#
indent_with_tabs = 0 # 1=indent to level only, 2=indent with tabs
output_tab_size = 4 # new tab size
indent_columns = output_tab_size
indent_label = 2 # pos: absolute col, neg: relative column
indent_align_assign = FALSE
#!/usr/bin/python
import os
import sys
import getopt
template = '''
# This file is NOT licensed under the GPLv3, which is the license for the rest
# of YouCompleteMe.
#