Skip to content

Instantly share code, notes, and snippets.

@stokito
stokito / onion-svc-v3-client-auth.sh
Last active April 22, 2024 07:26 — forked from mtigas/onion-svc-v3-client-auth.sh
experiments with using v3 onions with client auth (as of tor 0.3.5.X)
#!/bin/sh
# needs openssl 1.1+
# needs base64 and base32 utilities.
# On OpenWrt you may install coreutils-base64 and coreutils-base32.
# BusyBox can be compiled with them.
# On other systems try basenc or basez https://manpages.debian.org/testing/basez/base32hex.1.en.html
##### generate a key
@kiler129
kiler129 / README.md
Last active June 6, 2024 00:37 — forked from seeker2921/ilo-console.sh
Run iLO remote console from shell

iLO Remote Console

This small script lets you start iLO Java-based console from shell.

But why not HTML5?

  • iLO 2/3 doesn't have HTML5 console
  • Mounting local (from the client computer) ISOs is PAINFULLY slow via HTML5 client

TL;DR

If you just start it, it will ask you for everything:

@stettberger
stettberger / gdb_trace.py
Created April 9, 2018 13:43
GDB Function Call Trace
# Example Invocation:
#
# gcc test.c -o test -g
# TRACE_FUNCTIONS=fib TRACE_FILE=log gdb -x gdb_trace.py test
# cat log
#
# Log File Format:
#
# ('call', Parent Call ID, Call ID, Breakpoint Name, Symbol Name, Arguments)
# ('return', Call Id, Breakpoint Name, Return Value)
@nstarke
nstarke / release-android-debuggable.md
Last active June 26, 2024 15:20
How to make a Release Android App debuggable

How to make a Release Android App debuggable

Let's say you want to access the application shared preferences in /data/data/com.mypackage.
You could try to run adb shell and then run-as com.mypackage ( or adb shell run-as com.mypackge ls /data/data/com.mypackage/shared_prefs), but on a production release app downloaded from an app store you're most likely to see:

run-as: Package 'com.mypackage' is not debuggable
#!/usr/bin/env python3
# Export your Google Maps starred places from https://www.google.com/bookmarks/
# Then pipe them through this script to get GeoJSON:
# ./gmaps_stars_to_geojson.py < GoogleBookmarks.html > features.json
# You could import the resulting GeoJSON file to a PostGIS database with:
# ogr2ogr -f PostgreSQL PG:"dbname=DBNAME user=USER password=PASSWORD host=HOST" features.json -nln TABLENAME -append
# Depends on 'geojson', 'lxml' and 'requests' from PyPI.
@movitto
movitto / lvm-parser.rb
Created March 30, 2016 01:30
LVM Parser & Block Reader
# LVM Parser & Block Reader
#
# Copyright (C) 2016 Red Hat Inc
require 'optparse'
require 'ostruct'
require 'binary_struct'
### constants