Skip to content

Instantly share code, notes, and snippets.

@Arinerron
Arinerron / root.sh
Last active June 10, 2024 17:35
"Root" via dirtyc0w privilege escalation exploit (automation script) / Android (32 bit)
#!/bin/bash
# Give the usual warning.
clear;
echo "[INFO] Automated Android root script started.\n\n[WARN] Exploit requires sdk module \"NDK\".\nFor more information, visit the installation guide @ https://goo.gl/E2nmLF\n[INFO] Press Ctrl+C to stop the script if you need to install the NDK module. Waiting 10 seconds...";
sleep 10;
clear;
# Download and extract exploit files.
echo "[INFO] Downloading exploit files from GitHub...";
@DrewML
DrewML / Theming-Slack-OSX.md
Last active January 25, 2022 00:53
Theming Slack for OSX

Theming Slack for OSX

So, you love Slack, but you hate applications with large white backgrounds? Why not use Dark Mode!

Unfortunately, Slack does not have a Dark Mode, although it's on their list of possibilities.

But, don't fret - there is a solution! Because the slack native desktop apps are just wrappers around a web app, we can inject our own CSS to customize the application to our liking.

How to (OSX Only)

@astraw38
astraw38 / gist:666938cadd643ed5f22b
Created April 27, 2015 18:32
in pytest_runtest_makereport() in pytest_plugin.py:
if rep.failed:
if hasattr(rep.longrepr, "sections"):
local_vars = call.excinfo.traceback[-1].locals
longest_name = max([len(str(item)) for item in local_vars.keys()])
local_list = []
for item, value in local_vars.items():
if str(value) not in repr(value):
single_local_str = "{:%s} = " % longest_name
single_local_str = single_local_str.format(item)
single_local_str += " {}".format(str(value).strip())
#!/bin/sh
#
# aixsetup.sh: Set up an AIX 6.1 server to have all the prerequisites to run Omnibus.
#
# Authors: Scott Hain (<shain@getchef.com>), Julian Dunn (<jdunn@getchef.com>)
#
# Notes:
# 1. /bin/sh is actually ksh. Your bashisms ain't gonna work here, sonny!
# 2. Run this script as superuser.
# 3. I've tried to be clear about what requires GNU Make and what requires BSD make
@joshbode
joshbode / ffi_test.c
Created April 5, 2014 13:24
Test FFI on Python
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "ffi_test.h"
const char greeting_format[] = "%s, %s, you old %s, you!";
/* get species name */