Skip to content

Instantly share code, notes, and snippets.

View rawsh's full-sized avatar

Robert Washbourne rawsh

View GitHub Profile
#---- By Robert Washbourne www.devpy.me ----
#-------------------------------------------
# Backgrounds
# Background 1: Active taskbar, Iconified task, Inactive taskbar, Panel
rounded = 0
border_width = 0
border_sides = TBLR
background_color = #COLOR0 100
border_color = #ffffff 100
@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 / .Xresources
Last active February 11, 2024 11:56
.Xresources theme for rofi and terminal
! *----------------------------*
! | Dotfiles - .Xresources |
! *----------------------------*
! This files contains configuration for:
! * terminal colours
! * urxvt
! * rofi
@rawsh
rawsh / tint2rc
Last active May 19, 2018 01:46
tint2rc
#---- Generated by tint2conf 9757 ----
# See https://gitlab.com/o9000/tint2/wikis/Configure for
# full documentation of the configuration options.
#-------------------------------------
# Backgrounds
# Background 1: Panel, Tooltip
rounded = 0
border_width = 0
border_sides = TBLR
background_color = #16161d 63
@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 / music.sh
Last active April 11, 2023 05:09
Print out the currently playing spotify song. Great with tint2
{ echo "$(spotify-now -i " <b>%title" -e "" -p " paused" | awk -v len=40 '{ if (length($0) > len) print substr($0, 1, len-3) "..."; else print; }' | tr -d '&' | awk '{print $0 "</b>"}')"; echo "$(spotify-now -i '%artist' -p ' ' -e ' ')"; } | tr "\n" " "