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
@echo off | |
rem Windows version of http://gist.github.com/320272 | |
if "%1" == "" goto noargs | |
set MODULE_LOCATION= | |
for /f %%f in ('python -c "import %1; print %1.__file__.rstrip('c')"') do set MODULE_LOCATION=%%f > NUL 2>&1 | |
if "%MODULE_LOCATION%" == "" goto nomodule |
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
#!python.exe | |
"""which command substitute with partial matching search""" | |
import glob | |
import os | |
import sys | |
try: | |
partial_fname = sys.argv[1] | |
except IndexError: | |
print "which.py <filename>" |
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
./boost/wave/grammars/cpp_expression_value.hpp: In member function ‘typename boost::spirit::classic::match_result<ScannerT, ContextResultT>::type boost::spirit::classic::impl::concrete_parser<ParserT, ScannerT, AttrT>::do_parse_virtual(const ScannerT&) const [with ParserT = boost::spirit::classic::alternative<boost::spirit::classic::action<boost::spirit::classic::rule<boost::spirit::classic::scanner<std::_List_const_iterator<boost::wave::cpplexer::lex_token<boost::wave::util::file_position<boost::wave::util::flex_string<char, std::char_traits<char>, std::allocator<char>, boost::wave::util::CowString<boost::wave::util::AllocatorStringStorage<char, std::allocator<char> >, char*> > > > >, boost::spirit::classic::scanner_policies<boost::spirit::classic::skip_parser_iteration_policy<boost::spirit::classic::alternative<boost::spirit::classic::alternative<boost::spirit::classic::chlit<boost::wave::token_id>, boost::spirit::classic::chlit<boost::wave::token_id> >, boost::spirit::classic::chlit<boost::wave::token_id> |
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
caption always "%{+b gk}%c %{rk}%d/%m/%Y | %?%{yk}%-Lw%?%{wb}%n*%f %t%?(%u)%?%?%{yk}%+Lw%?" | |
bind f eval "caption splitonly" | |
bind F eval "caption always" | |
hardstatus string "%{.kc}%-w%{.kw}%n*%t%{-}%+w %= %2` %3`/%4` %6`/%7` %5`/%9` %c%a %m/%d/%Y" #black+cyan+normal+white selected | |
bindkey "\033\060" select 0 | |
bindkey "\033\302\272" select 0 | |
bindkey "\033\061" select 1 | |
bindkey "\033\062" select 2 |
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/sh | |
xwit -focus -names /home/username/path/to/passwordfile.kdb | |
if [ "$?" != "0" ] | |
then | |
exec keepassx /home/username/path/to/passwordfile.kdb | |
fi |
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 | |
# Quick and dirty Minecraft 1.7 -> 1.8 skin converter | |
# skinconvert.py oldskin.png newskin.png | |
from __future__ import print_function | |
import os | |
import sys | |
from PIL import Image | |
if len(sys.argv) != 3: |
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
import ds18x20 | |
import gc | |
from machine import Timer, Pin | |
import network | |
import onewire | |
from time import sleep_ms | |
from umqtt.simple import MQTTClient | |
import urandom | |
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
import __main__ | |
import os | |
import tempfile | |
import paho.mqtt.client as mqtt | |
import rrdtool | |
import telegram | |
import telegram.ext | |
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
import dht | |
import machine | |
import network | |
import utime | |
from umqtt.simple import MQTTClient | |
NODEMCU_PINS = (16, 5, 4, 0, 2, 14, 12, 13, 15, 3, 1, 9, 10) | |
d = dht.DHT11(machine.Pin(NODEMCU_PINS[4])) | |
sta_if = network.WLAN(network.STA_IF) |
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 dotmain | |
// @namespace http://enlavin.com/ | |
// @version 0.1 | |
// @description Adds a dot at the end of the url domains to mess up with ads | |
// @author enlavin | |
// @match http*://*/* | |
// ==/UserScript== | |
(function() { |
OlderNewer