Skip to content

Instantly share code, notes, and snippets.

View KharmaScribbles's full-sized avatar

Kharma Scribbles KharmaScribbles

View GitHub Profile
@cking
cking / steamworkshopdownloader.user.js
Last active March 3, 2020 02:36
my edits for the steam workshop downloader
// ==UserScript==
// @author Sycam Inc (origionally Alvaro)
// @name Enhanced Steam Workshop Downloader
// @description Adds an extra button to download, supports collections and new workshop layout
// @include *steamcommunity.com/sharedfiles/filedetails/?id=*
// @include *steamcommunity.com/workshop/filedetails/?id=*
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js
// @grant GM_xmlhttpRequest
// @version 2.1
// @license MIT
@KharmaScribbles
KharmaScribbles / dabblet.css
Last active November 16, 2018 19:42
Leporidae Sidebar Code
/**
* Leporidae.org Sidebar Code
* © KharmaScribbles ||~2018
*/
background: #df80ff;
background: linear-gradient(#df80ff, #ccccff, #ff0066);
min-height: 100%;
@packetpilot
packetpilot / gnome_chromote.sh
Last active May 25, 2021 00:29
headless ubuntu|debian + gnome, accessible via Chrome Remote Desktop
#!/bin/bash
# gnome and chrome and chrome remote desktop access
# chrome itself is not required, but is included here.
# other desktops can be used w/ light script changes.
# tested on:
# - ubuntu xenial GCE instance
# - debian stretch crostini container on a Pixelbook (eve)
# running ChromeOS v67.0.3383.0 (dev channel)
# _without_ being in developer mode
@rexlow
rexlow / install.sh
Last active March 23, 2023 09:26
Enable zsh in Gcloud shell
##
# This is an adoption from Oh My Zsh for Google Cloud Shell
# author - bobvanluijt
# source - https://github.com/bobvanluijt/google-cloud-shell-pro-zsh
##
main() {
# Install zsh
sudo apt-get -qq update
@dm0-
dm0- / coreos-docker-update.sh
Last active April 6, 2020 17:12
Update Docker on CoreOS using torcx
#!/bin/bash -e
# Select which Docker version to use on CoreOS with torcx.
# Specify the available Docker version to enable.
version=17.09
# Create modifiable torcx paths if they don't exist already.
mkdir -p /etc/torcx/profiles /var/lib/torcx/store
# Download the torcx manifest file for the currently running OS version.
@stuartcarnie
stuartcarnie / tmux-reverse
Created April 7, 2017 23:04
One-liner to ensure italics are rendered as reverse when using tmux
mkdir $HOME/.terminfo/ && \
screen_terminfo="screen-256color" && \
infocmp "$screen_terminfo" | sed \
-e 's/^screen[^|]*|[^,]*,/screen-256color|screen with italics support,/' \
-e 's/%?%p1%t;3%/%?%p1%t;7%/' \
-e 's/smso=[^,]*,/smso=\\E[7m,/' \
-e 's/rmso=[^,]*,/rmso=\\E[27m,/' \
-e '$s/$/ sitm=\\E[3m, ritm=\\E[23m,/' > /tmp/screen.terminfo && \
tic /tmp/screen.terminfo && \
echo set -g default-terminal "screen-256color" | tee -a ~/.tmux.conf
@lightonphiri
lightonphiri / bash-install_google_fonts_on_ubuntu.md
Last active April 19, 2024 18:44
Install Google Fonts on Ubuntu

Install Google Fonts

Download desired fonts

https://fonts.google.com/?selection.family=Open+Sans

Install Google Fonts on Ubuntu

cd /usr/share/fonts
sudo mkdir googlefonts
cd googlefonts
sudo unzip -d . ~/Downloads/Open_Sans.zip

@iest
iest / README.md
Last active August 11, 2022 09:20
Setting up environment variables with various shells

What the hell are environment variables?

They're just variables you set on your system that various programs/processes can read. A fairly standard example in javascript circles would be setting your NODE_ENV variable to "production" or "development", altering how node code is executed on your system (for example showing more debug messaging when in development).

With most shells there's a way to set them for the current session, and a way to set them for all sessions. The following is meant to be a guide on how to set env vars in the various shells.

Bash (The default shell on OSX)

Setting for the session:

@RobertAudi
RobertAudi / moc-on-osx.md
Last active September 30, 2023 19:54
This is a walkthrough on how to install the MOC command-line music player on OS X. The procedure was tested in Mountain Lion.

MOC on OS X

I waited for years for a Homebrew formula for MOC. I finally found one today, but it didn't work for me. So I decided to try to compile it from source.

Requirements

Here is a list of requirements, taken directly from the MOC README:

@jussi-kalliokoski
jussi-kalliokoski / git-pick-file.sh
Last active July 11, 2022 10:08
Cherry-picks commits from master that have changes to specified files.
$!/usr/bin/env sh
branch=`git symbolic-ref --short HEAD`
git checkout master
commits=`git log --pretty="%H" --reverse -- $*`
git checkout $branch
for commit in $commits; do
git cherry-pick $commit
done