Skip to content

Instantly share code, notes, and snippets.

View csssuf's full-sized avatar

James Forcier csssuf

  • Brooklyn
  • 15:59 (UTC -04:00)
View GitHub Profile
#!/bin/bash
set +x
versions="1618.0.0 1688.4.0 1632.3.0"
versions="$(curl https://coreos.com/releases/releases.json 2>/dev/null | jq keys | jq .[] | tr -d '\"' | tr '\n' ' ')"
mkdir -p ~/grub-info/
LINUX_MOD='usr/lib/grub/i386-pc/linux.module'
LINUX_DEBUG="/usr/lib/debug/${LINUX_MOD}.debug"
@acolyer
acolyer / jessfraz.md
Created November 19, 2017 13:39
Containers, operating systems and other fun things from The Morning Paper
@VladimirPal
VladimirPal / neomuttrc
Last active March 30, 2024 11:59
Minimal neomutt config for gmail imap
set imap_user="mail.vpal@gmail.com"
set imap_pass=`/usr/bin/security find-generic-password -w -a 'mail.vpal@gmail.com' -s 'Gmail'`
set folder=imaps://imap.gmail.com/
set spoolfile=+INBOX
set record="+[Gmail]/Sent Mail"
set postponed="+[Gmail]/Drafts"
# https://www.neomutt.org/guide/reference search sleep_time for additional info
set sleep_time=0 # be faster
@csssuf
csssuf / glfw-i3-floating-window.patch
Created September 20, 2017 20:36
GLFW patch to fix GLFW_FLOATING windows in i3
diff --git a/src/x11_init.c b/src/x11_init.c
index f7a06c1..5be293f 100644
--- a/src/x11_init.c
+++ b/src/x11_init.c
@@ -436,6 +436,8 @@ static void detectEWMH(void)
getSupportedAtom(supportedAtoms, atomCount, "_NET_WM_STATE");
_glfw.x11.NET_WM_STATE_ABOVE =
getSupportedAtom(supportedAtoms, atomCount, "_NET_WM_STATE_ABOVE");
+ _glfw.x11.NET_WM_STATE_MODAL =
+ getSupportedAtom(supportedAtoms, atomCount, "_NET_WM_STATE_MODAL");
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import os
import re
from glob import glob
from requests import head
def main():
@pefoley2
pefoley2 / bashrc
Last active August 29, 2015 14:22
Pia
alias pia="sudo ip netns exec pia sudo -u peter"
@csssuf
csssuf / bar.sh
Last active April 19, 2023 10:52
Adds now playing indicator from spotify or MPD to i3status
#!/bin/bash
i3status | while :
do
read line
dir=$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)
spotify_status=$(dbus-send --print-reply --session --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'PlaybackStatus' | tail -n1 | cut -d'"' -f2)
spotify_artist=$(dbus-send --print-reply --session --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata' | awk -f ${dir}/spotify_song.awk | head -n 1 | cut -d':' -f2)
spotify_song=$(dbus-send --print-reply --session --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata' | awk -f ${dir}/spotify_song.awk | tail -n 1 | cut -d':' -f2)
@eimajtrebor
eimajtrebor / darktable-workflow.md
Last active June 12, 2024 13:57
My Darktable Workflow

My Darktable Workflow

Basic workflow

  • Copy a film roll (a directory of RAW images) into a directory on the machine running Darktable.
  • Import the film roll into Darktable.
  • Review the images using lighttable mode and remove any images that are beyond repair.
  • Take a snapshot of the image so we can do a before and after comparison.
  • Adjust the white balance.
  • Exposure compensation and recovery.
@lahwran
lahwran / programmingresources.md
Last active November 19, 2018 19:46
Programming learning resources

This list was originally authored by a friend who has been learning programming for some time (tuningmind)

Programming learning resources

Note: Many books may be available from a nearby public library. Check there as well!

These two are about the best I've seen for starting from scratch: