Skip to content

Instantly share code, notes, and snippets.

View ipetepete's full-sized avatar

Peter Peterson ipetepete

  • NOIRLab
  • Tucson, AZ
View GitHub Profile
@ipetepete
ipetepete / zshrc.basic
Last active May 17, 2019 17:03
Basic ZSH config for servers
# The following lines were added by compinstall
zstyle ':completion:*' completer _expand _complete _ignored
zstyle ':completion:*' matcher-list 'm:{[:lower:]}={[:upper:]}' 'r:|[._-]=* r:|=*' '' 'l:|=* r:|=*'
zstyle :compinstall filename '/home/peterson/.zshrc'
autoload -Uz compinit
@ipetepete
ipetepete / bookmarks.json
Created January 8, 2019 21:27
My bookmarks for browser homepage
{
"bookmarks":{
"Daily":[
{
"name":"Gmail",
"url":"https://mail.google.com/mail/u/0/#inbox"
},{
"name":"Hacker news",
"url":"https://news.ycombinator.com"
},{
@ipetepete
ipetepete / bash_template.sh
Created June 19, 2018 17:05
Bash script template
#!/bin/bash -e
usage="USAGE: $0 action [marsnat version]
ACTIONS:
start - starts the docker instance [takes optional masnat version]
stop - stops the docker instance
restart - restarts the docker instance [takes optional marsnat version]
bash - puts you in the docker environment's bash prompt
"
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
html, body {
margin: 0;
padding: 0;
@ipetepete
ipetepete / linux_command_index.md
Last active June 18, 2018 20:43
An index of useful linux commands to refer back to when you forget

Customization

Keyboard

Change the layout to suit. List available layouts and options:

more /usr/share/X11/xkb/rules/base.lst

Set the layout:

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@ipetepete
ipetepete / .gitignore
Created September 21, 2017 22:23
Gitignore base
# Byte-compiled / optimized / DLL files #
#########################################
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Locals #
@ipetepete
ipetepete / setup_shell.sh
Last active September 1, 2017 14:37
Base minimal installation of shell tools
# set the install command as an env var
# $ export INSTALL_CMD="sudo yum install"
${INSTALL_CMD} vim -y
${INSTALL_CMD} zsh -y
${INSTALL_CMD} git -y
${INSTALL_CMD} curl -y
curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh| zsh
cat <<EOT > ~/.zshrc
@ipetepete
ipetepete / .spacemacs
Last active July 25, 2017 22:49
my spacemacs config
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
;; gist id:
;; 55f9cbea0b36c26b2d14a5153f08fea1
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
@ipetepete
ipetepete / .tmux.conf
Last active November 21, 2016 15:19 — forked from anonymous/.tmux.conf
# Install reattach-to-user-namespace from
# https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard
set-option -g default-command "reattach-to-user-namespace -l zsh"
# remap prefix
set -g prefix C-a
unbind C-b
bind C-a send-prefix