Skip to content

Instantly share code, notes, and snippets.

View SwooshyCueb's full-sized avatar
🦇
If you stand still, don’t expect the Earth will slow

Markus Kitsinger SwooshyCueb

🦇
If you stand still, don’t expect the Earth will slow
View GitHub Profile
@pvieito
pvieito / gist:ee6d2c8934a8f84b9aeb467585277b8a
Last active April 13, 2024 05:39
Consumer keys of official Twitter clients

Twitter API Keys

Twitter for iPhone

Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Twitter for Android

Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for Google TV

Consumer key: iAtYJ4HpUVfIUoNnif1DA

@ELLIOTTCABLE
ELLIOTTCABLE / gist:7fac65d478a1ca56ac4c
Last active August 29, 2015 14:12
Smarter $0 for shell-scripts.
# Instead of ...
#
# SCRIPT=$0
# SCRIPTDIR=`dirname $0`
#
# ... use:
SCRIPT="$(
cd "$(dirname "${BASH_SOURCE[0]}")"
SCRIPT="$(basename "${BASH_SOURCE[0]}")"
<Multi_key> <O> <O> : "ಠ_ಠ" # FACE OF DISAPPROVAL
<Multi_key> <t> <f> : "(╯°□°)╯︵ ┻━┻" # TABLE FLIP
<Multi_key> <q> <b> : "/人◕ ‿‿ ◕人\" # SIGN A CONTRACT
<Multi_key> <w> <t> <f> : " (ノಠ益ಠ)ノ" # WHAT THE FUCK
http://review.cyanogenmod.org/#/c/61273/ e2fsprogs: blkid: Add Flash-Friendly File System (f2fs) support
http://review.cyanogenmod.org/#/c/61238/ vold: Add Flash-Friendly File System (f2fs) support.
http://review.cyanogenmod.org/#/c/61420/ fs_mgr: Add f2fs filesystem check
http://review.cyanogenmod.org/#/c/64942/ add f2fs option to format sdcard menu
http://review.cyanogenmod.org/#/c/67117/ build: updater-script: Fix mount and format commands on F2FS
@wandernauta
wandernauta / sp
Last active April 16, 2024 15:37
sp is a command-line client for Spotify's dbus interface. Play, pause, skip and search tracks from the comfort of your command line.
#!/usr/bin/env bash
#
# This is sp, the command-line Spotify controller. It talks to a running
# instance of the Spotify Linux client over dbus, providing an interface not
# unlike mpc.
#
# Put differently, it allows you to control Spotify without leaving the comfort
# of your command line, and without a custom client or Premium subscription.
#
@kode54
kode54 / numa_hack.patch
Created July 27, 2013 22:55
Patch against wine which adds basic implementations of the existing stubbed NUMA functions, which are required by the Concurrency::critical_section and other scheduling code used by std::mutex and std::thread in the MSVC 2012 and newer runtime libraries.
diff -ur wine-crossover.orig/sources/wine/dlls/kernel32/process.c wine-crossover/sources/wine/dlls/kernel32/process.c
--- wine-crossover.orig/sources/wine/dlls/kernel32/process.c 2013-05-13 12:06:06.000000000 -0700
+++ wine-crossover/sources/wine/dlls/kernel32/process.c 2013-07-27 15:52:34.000000000 -0700
@@ -3922,9 +3922,10 @@
*/
BOOL WINAPI GetNumaHighestNodeNumber(PULONG highestnode)
{
- FIXME("(%p): stub\n", highestnode);
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return FALSE;
@ELLIOTTCABLE
ELLIOTTCABLE / gist:5727461
Last active December 18, 2015 04:39
My answers to @caseorganic's excellent survey.

These are my answers to the more interesting (to me) parts of http://twitter.com/caseorganic's survey of programmers' past history with programming: https://docs.google.com/a/ell.io/forms/d/19yROPBmI2HRrTmyiPvjI49_c4_tAABH5YyORXf2n_7A/viewform


What did your parents do? Were they programmers? If you learned while living with your parents, what did they think of you learning to program? Father: doctor (hence family money for expensive things like computers. Yet another privileged-upbringing developers.), mother: sometimes-architect. Neither knew the slightest thing

@whitequark
whitequark / gist:2622705
Created May 6, 2012 14:48
a piece of modern art
(3995:lookup-switch 3523 [3307, 3307, 3307, 3337, 3337, 3337, 3337, 3337, 3491, 3491, 3491, 3491, 3491, 3491, 3491, 3523]
(ternary
(3560:===
(3558:bit-or
(3555:lshift
(3551:integer 46)
(3553:integer 16))
(3556:integer 14))
(3559:get-local 3))
(3564:integer 0)
@ELLIOTTCABLE
ELLIOTTCABLE / gist:257564
Created December 16, 2009 03:34
NginX no‐www
# Unfortunately, this is the ‘officially best and most efficient’ way to
# achieve no‐www under NginX. And yes, this had to be duplicated for each
# domain / virtual‐host.
server {
listen 80; server_name www.domain.tld;
access_log off;
rewrite ^ http://domain.tld$request_uri permanent;
}
Blinker Stone [Level 9]
*This small piece of clear glass (of a particularly geometric shape, such as
a regular cube, column, octahedron, icosahedron and so on, even if such is not
a common or practical shape for a formed piece of glass) floods with a strong,
saturated tincture and glows dimly when it touches the flesh of a living,
sentient creature*
**Wondrous Item** 3,730 gp
Power (At-Will) <http://tr.im/k83?graphicsmash>: Minor Action. The wielder of
a Stone can will it to ignite into a small fire, similar to that of a torch.