Skip to content

Instantly share code, notes, and snippets.

View insipx's full-sized avatar
🏠
Working from home

Andrew Plaza insipx

🏠
Working from home
View GitHub Profile
export PATH="$HOME/.rvm/gems/ruby-2.4.1/bin:$PATH"
# Editor
export EDITOR=vim
# Path to your oh-my-zsh installation.
export ZSH=/home/insi/.oh-my-zsh
# ssh
export SSH_KEY_PATH="~/.ssh/rsa_id"
# npm
export NPM_PACKAGES="${HOME}/.npm-packages"
# use C-a, since it's on the home row and easier to hit than C-b set -g default-terminal "screen-256color"
set -g set-titles on
set -g set-titles-string '#(whoami)::#h::#(curl ipecho.net/plain;echo)'
set-option -g prefix C-a
unbind-key C-a
bind-key C-a send-prefix
set -g base-index 1
# Easy config reload
bind-key R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded."
# use C-a, since it's on the home row and easier to hit than C-b set -g default-terminal "screen-256color"
set -g set-titles on
set -g set-titles-string '#(whoami)::#h::#(curl ipecho.net/plain;echo)'
set-option -g prefix C-a
unbind-key C-a
bind-key C-a send-prefix
set -g base-index 1
# Easy config reload
bind-key R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded."
[options]
clickable_url = true
padding = 20
font = Hack 8
[colors]
# special
foreground = #ffeefc
foreground_bold = #ffeefc
# use C-a, since it's on the home row and easier to hit than C-b set -g default-terminal "screen-256color"
set -g set-titles on
set -g set-titles-string '#(whoami)::#h::#(curl ipecho.net/plain;echo)'
set-option -g prefix C-a
unbind-key C-a
bind-key C-a send-prefix
set -g base-index 1
# Easy config reload
bind-key R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded."
set nocompatible " be iMproved
filetype off " required!
set exrc
set secure
" Specify a directory for plugins
" " - For Neovim: ~/.local/share/nvim/plugged
" " - Avoid using standard Vim directory names like 'plugin'
" My Bundles here:
call plug#begin('~/.local/share/nvim/plugged')
##
## i3 config
##
##
## Autostart
##
exec --no-startup-id "feh --bg-fill ~/pictures/wallpapers/wallpaper.jpg"
exec --no-startup-id "i3-msg 'workspace 0:::ArchLinux'"
exec --no-startup-id "nm-applet"
@insipx
insipx / index.html
Created June 10, 2018 23:44
Space Invaders HTML5 Canvas
<link href='https://fonts.googleapis.com/css?family=Play:400,700' rel='stylesheet' type='text/css'>
<canvas id="game-canvas" width="640" height="640"></canvas>

Keybase proof

I hereby claim:

  • I am insipx on github.
  • I am insi (https://keybase.io/insi) on keybase.
  • I have a public key whose fingerprint is 56E2 B165 E9F4 EFF4 4EBB 5034 D598 5E06 B8CF DFE6

To claim this, I am signing this object:

@insipx
insipx / main.rs
Created May 10, 2019 06:24
Image Reading/Writing
use std::io::{Read, Write};
use std::fs::File;
fn main() {
let mut image = File::open("./image.jpg").unwrap();
let mut buffer = Vec::new();
let bytes = image.read_to_end(&mut buffer);
let mut out = File::open("./output.jpg").unwrap();
out.write(buffer.as_slice()).unwrap();