This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Copyright 2013 Sabin Iacob <iacobs@gmail.com> | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
import requests | |
from requests_oauthlib import OAuth1 | |
if __name__ == '__main__': | |
consumer_key = '...' | |
consumer_secret = '...' | |
access_token_key = '...' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name FUScribd | |
// @namespace m0n5t3r | |
// @description Makes Scribd documents visible, gives Scribd the finger. | |
// @include http://www.scribd.com/doc/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
(function(){ | |
var docs = document.querySelectorAll('div.text_layer'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# percona repo | |
echo 'deb http://repo.percona.com/apt trusty main | |
deb-src http://repo.percona.com/apt trusty main | |
' > /etc/apt/sources.list.d/percona.list | |
apt-key adv --keyserver pool.sks-keyservers.net --recv-keys 1C4CBDCDCD2EFD2A |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Copyright: 2014 Sabin Iacob | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions | |
# are met: | |
# 1. Redistributions of source code must retain the above copyright | |
# notice, this list of conditions and the following disclaimer. | |
# 2. Redistributions in binary form must reproduce the above copyright | |
# notice, this list of conditions and the following disclaimer in the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @id www.flickr.com-3076e643-50f4-42bd-b472-0d5cefff426e@scriptish | |
// @name Fuck Yahoo Menu Bar | |
// @version 1.0 | |
// @namespace flickr | |
// @author m0n5t3r | |
// @description Remove purple yahoo bar fron flickr | |
// @include https://www.flickr.com/* | |
// @run-at document-load | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
proc=$(ps ax | awk '/flashplayer/{ if($5 != "awk") { print $1; }}') | |
[ -z "$proc" ] && exit 0 | |
for p in $proc; do | |
flash=$(ls -al /proc/$p/fd | grep FlashX) | |
if [ -n "$flash" ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
lifted from python's serial.serialposix.set_special_baudrate and made to look like C | |
compile with `g++ -o test_custom_baudrate test_custom_baudrate.cpp` | |
using 250000 to test because 3D printing people seem to love it | |
*/ | |
#include <stdio.h> | |
#include <unistd.h> | |
#include <fcntl.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
eval $(tr '\0' '\n' </proc/$(pidof gvfsd)/environ | grep DBUS_SESSION_BUS_ADDRESS) | |
eval $(tr '\0' '\n' </proc/$(pidof gvfsd)/environ | grep DISPLAY) | |
export DISPLAY DBUS_SESSION_BUS_ADDRESS | |
exec $* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef CONFIGURATION_H | |
#define CONFIGURATION_H | |
#include "boards.h" | |
#include "macros.h" | |
//=========================================================================== | |
//============================= Getting Started ============================= | |
//=========================================================================== | |
/* |