Skip to content

Instantly share code, notes, and snippets.

@pklaus
pklaus / tunnelbroker-net.linux.etc-network-interfaces.sh
Created May 9, 2011 12:05
tunnelbroker.net : tunnel setup on Linux using "ip" from the iproute suite (iproute2)
#!/bin/bash
# IPv6 Tunnel setup of an tunnelbroker.net tunnel on Linux using the configuration file `/etc/network/interfaces`
# (needs the `ip` tool from the iproute suite, Ubuntu package: <http://packages.ubuntu.com/iproute>)
#
# Run like this:
# ./tunnelbroker-net.linux.etc-network-interfaces.sh
#
# 2011 by Philipp Klaus
# Published on <http://blog.philippklaus.de/2011/05/ipv6-6in4-tunnel-via-hurricane-electric-tunnelbroker-net-tunnel-setup-on-ubuntu-11-04/>
@chrisguitarguy
chrisguitarguy / cpt-permalinks.php
Created October 10, 2011 17:28
How to add fields to the WordPress permalinks page
@natyusha
natyusha / ptplyr_guide.txt
Last active May 27, 2023 18:40
potplayer guide DEPRECATED
PotPlayer guide: [OUTDATED]
Installers:
PotPlayer(x86): http://www.dvbsupport.net/download/index.php?act=view&id=230
madVR: http://madshi.net/madVR.zip
LAV Filters: http://files.1f0.de/lavf/LAVFilters-0.52.exe
Haali Media Splitter: http://haali.su/mkv/MatroskaSplitter.exe
xy-VSFilter: http://xy-vsfilter.googlecode.com/files/xy-VSFilter_3.0.0.65_Installer.exe
Installation:
@cb372
cb372 / hide-promoted-tweets.user.js
Created March 24, 2012 08:06
A simple userscript to hide promoted tweets on twitter.com
// ==UserScript==
// @match http://twitter.com/*
// @match https://twitter.com/*
// ==/UserScript==
elems = document.getElementsByClassName('tweet')
for (var i=0; i<elems.length; i++) {
e = elems[i];
if (e.nodeName.toLowerCase() == 'div' &&
e.attributes['data-promoted'] &&
e.attributes['data-promoted'].value == "true") {
@Fuzion24
Fuzion24 / Description
Created May 6, 2012 17:00
Android Reversing - Showing an uber basic conditional patch
Running apktool d APKNAME.apk will result in output that can be modified and later repackaged and ran.
isRegistered() is hardcoded to return false.
Changing
const/4 v0, 0x0
to
const/4 v0, 0x1
will cause isRegistered to ALWAYS return true. Thus always telling the application that it is registered.
@rolandinsh
rolandinsh / gist:3097506
Created July 12, 2012 11:14
WordPress remove_action wp_head
/*
via wordpress.org/support/topic/remove-feed-from-wp_head?replies=7#post-1338292
for: http://simplemediacode.com/wordpress/
*/
remove_action( 'wp_head', 'feed_links_extra', 3 ); // Display the links to the extra feeds such as category feeds
remove_action( 'wp_head', 'feed_links', 2 ); // Display the links to the general feeds: Post and Comment Feed
remove_action( 'wp_head', 'rsd_link' ); // Display the link to the Really Simple Discovery service endpoint, EditURI link
remove_action( 'wp_head', 'wlwmanifest_link' ); // Display the link to the Windows Live Writer manifest file.
remove_action( 'wp_head', 'index_rel_link' ); // index link
remove_action( 'wp_head', 'parent_post_rel_link', 10, 0 ); // prev link
@leekelleher
leekelleher / remove-wp-meta.php
Created January 22, 2013 10:30
WordPress plugin to remove the auto-generated meta tags.
<?php
/*
Plugin Name: Remove WP Meta
Plugin URI: http://leekelleher.com/
Description: This plugin removes the auto-generated WP meta tags from each webpage.
Author: Lee Kelleher
Version: 0.1.0
Author URI: http://leekelleher.com/
*/
@jdevalk
jdevalk / .htaccess
Last active November 28, 2023 20:28
These three files together form an affiliate link redirect script.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^index\.php$ - [L]
RewriteRule (.*) ./index.php?id=$1 [L]
</IfModule>
@tsohr
tsohr / gist:5711945
Created June 5, 2013 06:15
Android activity manager "am" command help
adb shell am
usage: am [subcommand] [options]
usage: am start [-D] [-W] [-P <FILE>] [--start-profiler <FILE>]
[--R COUNT] [-S] [--opengl-trace] <INTENT>
am startservice <INTENT>
am force-stop <PACKAGE>
am kill <PACKAGE>
am kill-all
am broadcast <INTENT>
am instrument [-r] [-e <NAME> <VALUE>] [-p <FILE>] [-w]