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
# Linux / Windows WSL: | |
# echo $LS_COLORS and paste in double-quotes below | |
# BSDs or MACOS: | |
# echo $LSCOLORS and convert to gnu/linux format with https://github.com/ggreer/lscolors | |
export LS_COLORS="no=00:fi=00:di=34:ow=34;40:ln=35:pi=30;44:so=35;44:do=35;44:bd=33;44:cd=37;44:or=05;37;41:mi=05;37;41:ex=01;31:*.cmd=01;31:*.exe=01;31:*.com=01;31:*.bat=01;31:*.reg=01;31:*.app=01;31:*.txt=32:*.org=32:*.md=32:*.mkd=32:*.h=32:*.hpp=32:*.c=32:*.C=32:*.cc=32:*.cpp=32:*.cxx=32:*.objc=32:*.cl=32:*.sh=32:*.bash=32:*.csh=32:*.zsh=32:*.el=32:*.vim=32:*.java=32:*.pl=32:*.pm=32:*.py=32:*.rb=32:*.hs=32:*.php=32:*.htm=32:*.html=32:*.shtml=32:*.erb=32:*.haml=32:*.xml=32:*.rdf=32:*.css=32:*.sass=32:*.scss=32:*.less=32:*.js=32:*.coffee=32:*.man=32:*.0=32:*.1=32:*.2=32:*.3=32:*.4=32:*.5=32:*.6=32:*.7=32:*.8=32:*.9=32:*.l=32:*.n=32:*.p=32:*.pod=32:*.tex=32:*.go=32:*.sql=32:*.csv=32:*.bmp=33:*.cgm=33:*.dl=33:*.dvi=33:*.emf=33:*.eps=33:*.gif=33:*.jpeg=33:*.jpg=33:*.JPG=33:*.mng=33:*.pbm=33:*.pcx=33:*.pdf=33:*.pgm=33:*.png=33:*.PNG=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
#!/usr/bin/env python | |
import sys, os, time | |
# add the path for virtual env for running via cron | |
os.chdir(os.path.dirname(os.path.realpath(__file__))) | |
sys.path.append(os.path.dirname(os.path.realpath(__file__)) + '/lib/python3.4/site-packages/') | |
import tweepy | |
#visit http://dev.twitter.com to create an application and get your keys |
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
<html> | |
<head> | |
<title>REAPER ACTIONS</title> | |
<style type="text/css"> | |
body { | |
background-color: #fff; | |
color: #424242; | |
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; | |
} |
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
$dir = $env:USERPROFILE + "\Music\Podcasts" | |
$episodes = 5 | |
$urls = @( "http://theblacktapes.libsyn.com/rss", | |
"http://www.theblackdogma.com/tbd/?feed=podcast", | |
"http://impulseproject.info/feed/podcast/", | |
"http://spkmdl.libsyn.com/rss", | |
"http://www.ultimathule.info/xml/Ultima_Thule_Ambient_Music_Radio.xml", | |
"http://rwm.macba.cat/api/en/all_podcast/80.xml", | |
"http://alifewellwasted.com/feed/atom/", | |
"http://nightvale.libsyn.com/rss", |
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
NETSH WLAN show drivers | |
# Check for: Hosted network supported : Yes | |
NETSH WLAN set hostednetwork mode=allow ssid=Your_SSID key=Your_Passphrase | |
NETSH WLAN start hostednetwork | |
# NETSH WLAN stop hostednetwork | |
# Other settings: | |
# https://www.windowscentral.com/how-turn-your-windows-10-pc-wireless-hotspot |
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
Android setup tips | |
( Blocking spam from "Whats New" app & Chrome suggestions ) |
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
[1, 2, 3, 4, 5].map {|i| i * 2 }.find_all {|i| i > 5 } | |
# I have started monkey-patching `alias_method :filter, :find_all` in Array. |
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 | |
# | |
# DESCRIPTION: | |
# | |
# Set the bash prompt according to: | |
# * the active virtualenv | |
# * the branch/status of the current Git, Mercurial or Subversion repository | |
# * the return value of the previous command | |
# * the fact you just came from Windows and are used to having newlines in | |
# your prompts. [Are you!? - r4dian] |
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
tinyfont = lambda s: s.lower().translate("".maketrans("abcdefghijklmnopqrstuvwxyz", "ᵃᵇᶜᵈᵉᶠᵍʰⁱʲᵏˡᵐⁿᵒᵖᶲʳˢᵗᵘᵛʷˣʸᶻ")) |
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
var d = new Date('2013-03-14') | |
var n = new Date() | |
var year = Math.floor( Math.ceil( Math.abs( n.getTime()-d.getTime() ) / (1000 * 60 * 60 * 24) ) / 365 +1 ) | |
function nth(n){return["st","nd","rd"][((n+90)%100-10)%10-1]||"th"} | |
console.log("It is the " + year + nth(year) + " Year of Luigi") |