Skip to content

Instantly share code, notes, and snippets.

@r4dian
r4dian / monokai.ini
Created September 15, 2014 18:11
Monokai style theme for adiIRC
#AdiIRC Theme
#v1.0
CONF_color_1=255,255,255
CONF_color_2=0,0,0
CONF_color_3=0,0,127
CONF_color_4=0,147,0
CONF_color_5=255,0,0
CONF_color_6=127,0,0
CONF_color_7=156,0,156
@r4dian
r4dian / config-highlight.cfg
Last active August 29, 2015 14:12 — forked from jaimergp/config-highlight.cfg
Monokai for idle
# Place this file inside your .idlerc folder
# or paste its contents inside config-highlight.def
# Use 'locate' to find their locations
# Adapted from SublimeText's Monokai
[monokai]
normal-foreground= #F8F8F2
normal-background= #272822
keyword-foreground= #F92672
keyword-background= #272822
@r4dian
r4dian / music.c
Last active August 29, 2015 14:24 — forked from scazon/music.c
/* Here's a look at how I created a quick music player for use with GBDK.
It basically defines how to play a note, and then stores an array of notes
to be played as a timer interates through the beats */
//Define note names
typedef enum {
C3, Cd3, D3, Dd3, E3, F3, Fd3, G3, Gd3, A3, Ad3, B3,
C4, Cd4, D4, Dd4, E4, F4, Fd4, G4, Gd4, A4, Ad4, B4,
C5, Cd5, D5, Dd5, E5, F5, Fd5, G5, Gd5, A5, Ad5, B5,
C6, Cd6, D6, Dd6, E6, F6, Fd6, G6, Gd6, A6, Ad6, B6,
@r4dian
r4dian / Unfavinator.py
Last active October 16, 2017 12:05
Delete all your (visible) twitter favs
#!/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
@r4dian
r4dian / Tinyfont.py
Last active February 21, 2017 14:29
tinyfont = lambda s: s.lower().translate("".maketrans("abcdefghijklmnopqrstuvwxyz", "ᵃᵇᶜᵈᵉᶠᵍʰⁱʲᵏˡᵐⁿᵒᵖᶲʳˢᵗᵘᵛʷˣʸᶻ"))
$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",
@r4dian
r4dian / transfer.sh.ps1
Last active March 16, 2024 14:26
Upload to transfer.sh from Powershell
function transfer ($filename)
{
$file = Get-Item $filename;
invoke-webrequest -method put -infile $file.FullName https://transfer.sh
}
"Test" | Set-Content .\test.txt
transfer(".\test.txt")
@r4dian
r4dian / mattermost-monokai.txt
Last active August 4, 2016 11:25 — forked from ojdon/mattermost-monokai.txt
A rough Monokai theme for Mattermost.
#333333,#fefefe,#f92672,#FFFFFF,#fff,#f92672,#66d9ef,#FFFFFF,#a6e22e,#f92672,#bfcde8,#272822,#444444,#fefefe,#66d9ef,#66d9ef,#272822,#f92672,#FEFEFE,#000000,monokai
@r4dian
r4dian / taks.json
Last active September 25, 2016 19:53
Pico-8 task runner for VSCode
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"command": "C:/Path/To/Your/pico8.exe",
"isShellCommand": false,
"echoCommand": true,
"args": ["-windowed", "1", "-run", "${file}"],
"showOutput": "always"
}
@r4dian
r4dian / bash_prompt.sh
Last active March 28, 2017 14:48 — forked from bradsokol/bash_prompt.sh
Set colour bash prompt according to active virtualenv, Git, Mercurial or Subversion branch and return status of last command.
#!/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]