Skip to content

Instantly share code, notes, and snippets.

@JeremyOttley
JeremyOttley / 0_reuse_code.js
Created July 13, 2017 17:51
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
sp="/-\|"
sc=0
spin() {
printf "\b${sp:sc++:1}"
((sc==${#sp})) && sc=0
}
endspin() {
printf "\r%s\n" "$@"
}
@JeremyOttley
JeremyOttley / arch-fonts.sh
Created August 6, 2017 18:34
Great fonts for a fresh arch installation
adobe-source-code-pro-fonts
adobe-source-sans-pro-fonts \
adobe-source-serif-pro-fonts \
otf-texgyre \
ttf-chromeos-fonts \
ttf-clear-sans \
ttf-liberation \
ttf-linux-libertine \
ttf-noto \
ttf-roboto \
# increase volume
"pamixer --increase 5"
XF86AudioRaiseVolume
# decrease volume
"pamixer --decrease 5"
XF86AudioLowerVolume
# screenshot Bash script lifted from Manjaro-i3
"i3-scrot"
!Xft.antialias: true
!Xft.hinting: true
!Xft.hintstyle: hintfull
!Xft.rgba: rgb
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
# #
# Fedora SpaceOS #
# #
git config --global user.name "Gazaunga"
git config --global user.email "jeremy.ottley@gmail.com"
git config --global core.autocrlf input
git config --global core.safecrlf true
cd ~
#!/bin/bash
sudo dnf group install "Legacy Fonts"
sudo dnf -y install overpass-fonts fontawesome-fonts fontforge
# Apple Fonts
cd ~/.local/share/fonts
wget https://github.com/supermarin/YosemiteSanFranciscoFont/archive/master.zip
unzip master -d ~/.local/share/fonts
git config --global user.name "Gazaunga"
git config --global user.email "jeremy.ottley@gmail.com"
git config --global core.autocrlf input
git config --global core.safecrlf true
git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d
wget https://raw.githubusercontent.com/Gazaunga/SpaceOS/master/.spacemacs
sudo dnf -y update
sudo dnf -y install xorg-x11-apps
sudo dnf copr enable rabiny/albert
sudo dnf -y install albert
#!/bin/bash
# Basic Fedora Setup
sudo dnf -y update
sudo rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo rpm -Uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
sudo dnf group install "C Development Tools and Libraries"
sudo dnf group install "base-x"
sudo dnf group install "Legacy Fonts"