Skip to content

Instantly share code, notes, and snippets.

@julionc
julionc / slideshare-dl.py
Created September 17, 2011 16:11
slideshare-dl is a small command-line program for downloading slides from SlideShare.net
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
slideshare-dl.py
~~~~~~~~~~~~~~~~
slideshare-dl is a small command-line program
for downloading slides from SlideShare.net
@brandonb927
brandonb927 / osx-for-hackers.sh
Last active May 14, 2024 18:00
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx
@cbaltzer
cbaltzer / InvokeWithParameters.cs
Last active April 29, 2024 17:49
Invoke with parameters!
using UnityEngine;
using System;
using System.Reflection;
using System.Collections;
namespace UnityEngine {
public static class ExtensionMethods {
public static void Invoke(this MonoBehaviour behaviour, string method, object options, float delay) {
@odrobnik
odrobnik / gist:6724806
Created September 27, 2013 06:25
Power Assertion Crash
Incident Identifier: 605BD9B1-2F5E-4728-8093-3E7DBCF67560
CrashReporter Key: 10d06614c22e25053f76586bd110cdfa0ced43f0
Date: 2013-09-27 07:44:32 +0200
OS Version: iPhone OS 7.0 (11A465)
mediaserverd: com.apple.audio.AudioSession-769(com.apple.podcasts).isplaying NoIdleSleepAssertion == 255, held for 00:14:12
mediaserverd: com.apple.audio.VAD Aggregate Device UID 16.isrunning NoIdleSleepAssertion == 255, held for 00:14:23
SpringBoard: com.apple.springboard.idle NoIdleSleepAssertion == 255, held for 00:01:26
backboardd: MobileSafari[783]-com.apple.mobilesafari.TabDocumentResourceLoadTask [0x16eb1f00]/com.apple.mobilesafari.TabDocumentResourceLoadTask [0x16ea8ac0]/com.apple.mobilesafari.TabDocumentResourceLoadTask [0x16db9280] NoIdleSleepAssertion == 255, held for 00:00:13
backboardd: Podcasts[769]-769 [0x16e84860] NoIdleSleepAssertion == 255, held for 00:14:26
Incident Identifier: D5FFF38F-7B82-4545-AA06-5A25F2411801
CrashReporter Key: 3c892d901eba49956f927e0ee3cbf520ebfad207
Date: 2013-12-10 21:38:52 +0000
OS Version: iPhone OS 6.1.1 (10B145)
apsd: com.apple.apsd-connectionestablish-push.apple.com NoIdleSleepAssertion == 255, held for 00:00:09
backboardd: Instapaper[2989]-UIKitBackgroundCompletionTask [0x1ed4da60]/UIKitBackgroundCompletionTask [0x1ed52ae0]/UIKitBackgroundCompletionTask [0x1ed5a3c0] NoIdleSleepAssertion == 255, held for 00:00:41
SpringBoard: com.apple.springboard.idle NoIdleSleepAssertion == 255, held for 00:13:59
Hardware Model: N94AP
@consti
consti / hosts
Last active May 13, 2024 03:23
/etc/hosts to block shock sites etc.
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.
#<localhost>
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
255.255.255.255 broadcasthost
::1 localhost
# Place in the folder where all the libdrc dependencies are.
#
# Remove the mac80211 module and load the patched one
# For this to work we need to first unload all the wifi modules, load
# the patched mac80211 stack and then load back the wifi modules.
# After this hostappd and netboot are started. One can connect to both of them via sudo screen.
WLAN=wlan1 # Interface Name
BSSID=34:af:2c:4d:a7:65 # BSSID of the WiiU pad
DOMAIN=AT # The regulatory domain for WiFi
@hlung
hlung / How to connect PS3 controller to a Mac or PC.md
Last active May 13, 2024 03:39
How to connect PS3 controller to a Mac or PC

How to connect PS3 controller to a Mac or PC

This is how you connect PS3 controller to Mac OSX, PC, etc. when previously connected to a PS3. You will need a Mini USB cable. Overcome your laziness, get up of your chair, and go get one!

A big misconception is that keep holding PS button will reset the controller's pairing. It DOES NOT! From my testings, the controller keeps paring with the last machine it was CONNECTED VIA A USB CABLE.

Here are the steps:

@joernchen
joernchen / bounty.txt
Created February 22, 2014 16:17
Bounty writeup
GitHub RCE by Environment variable injection Bug Bounty writeup
Disclaimer: I'll keep this really short but I hope you'll get the key points.
GitHub blogged a while ago about some internal tool called gerve:
https://github.com/blog/530-how-we-made-github-fast
Upon git+sshing to github.com gerve basically looks up your permission
on the repo you want to interact with. Then it bounces you further in
another forced SSH session to the back end where the repo actually is.

OpenCart Issue #1286

This is the full version of the thread for opencart#1286, archived from notification emails.
The discussion has since been deleted almost entirely by OpenCart's developer.
Everyone who posted in it has also been blocked from the OpenCart repo.


Damian Bushong