Skip to content

Instantly share code, notes, and snippets.

View rawsh's full-sized avatar

Robert Washbourne rawsh

View GitHub Profile
@rawsh
rawsh / tint2rc
Created January 17, 2017 01:16
My tint2rc
#---- Generated by tint2conf cdb5 ----
# See https://gitlab.com/o9000/tint2/wikis/Configure for
# full documentation of the configuration options.
#-------------------------------------
# Backgrounds
# Background 1: Active taskbar, Iconified task, Inactive taskbar, Panel
rounded = 0
border_width = 0
border_sides = TBLR
background_color = #151520 100
@rawsh
rawsh / recolor.sh
Created January 18, 2017 05:03
Recolor Paper Icons
#!/bin/bash
# From https://forums.bunsenlabs.org/viewtopic.php?id=1200 used on DevPy
# Requires Imagemagick
#Colorize, preserves alpha and white elements
# mogrify -fill 'rgb(x,y,z)' -tint 100 icon.png
# Imgs to convert: folder*.png user-home.png inode-directory.png
#
# cd to ~/.local/share/icons/Paper/ and run script
@rawsh
rawsh / firefoxstyles.css
Created January 18, 2017 05:25
Firefox dark red addition to Arc-Darker
.tabbrowser-tab[first-visible-tab="true"] > .tab-stack > .tab-background > .tab-background-start {
display: none;
}
textarea, input {
color: black;
background-color: white;
border: white;
}
#TabsToolbar:not(:-moz-lwtheme) {
import sys
known = {0:1,1:1,2:1}
def sequence(n):
if n in known:
return known[n]
else:
x = 2*sequence(n-1) + 2*sequence(n-2) + 2*sequence(n-3)
known[n] = x
return x
from collections import Counter
def primes(n):
if n==2: return [2]
elif n<2: return []
s=range(3,n+1,2)
mroot = n ** 0.5
half=(n+1)/2-1
i=0
m=3
@rawsh
rawsh / oldsearch.html
Created February 4, 2017 18:45
old tapir search
<script type="text/javascript">
function search() {
document.getElementById("searchres").innerHTML = "";
var searchval = document.getElementById("searchinp").value;
console.log(searchval);
var script = document.createElement("script");
script.setAttribute("src", "//www.tapirgo.com/api/1/search.json?token=583b773814ad665aca356f24&callback=parseres&query=" + searchval);
document.body.appendChild(script);
script.outerHTML = "";
script.delete;
@rawsh
rawsh / readme.md
Last active March 22, 2017 21:22
find files using rofi and the "find" command

Use file:"./Scripts/rofi-file-browser.sh" in your modi.

Keybase proof

I hereby claim:

  • I am rawsh on github.
  • I am rawsh (https://keybase.io/rawsh) on keybase.
  • I have a public key ASC6BfTlO3iRqUj9pRvTZSw4t9SgYcsvVxoc4oWMUSFcCgo

To claim this, I am signing this object:

@rawsh
rawsh / what.md
Created May 23, 2017 21:36
gpu passthrough *notes*

pci-stub.ids=10de:139a,8086:9d10,8086:9d14,1217:8621

@rawsh
rawsh / ROCKS.md
Last active June 19, 2017 22:24
"Rocks" Todo app, currently in private beta

Rocks todo list app

I have been working on this app with Inturact for a few months. Our goal is to make a simple to use task list app where users can make sharable "guides". These guides can be exported to other task managers.

Homepage with "bucket" staging areas