Skip to content

Instantly share code, notes, and snippets.

View drobati's full-sized avatar
💻
coding

Derek Robati drobati

💻
coding
View GitHub Profile
@drobati
drobati / custom-set-faces.el
Created September 18, 2010 05:39
Custom-set-faces gives you my emacs faces.
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(default ((t (:inherit nil :stipple nil :background "#111111" :foreground "White" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight light :height 105 :width normal :foundry "apple" :family "Anonymous"))))
'(erc-action-face ((t (:foreground "#ff9999" :weight bold))))
'(erc-default-face ((t (:weight light :family "Anonymous"))))
'(erc-error-face ((t (:foreground "#eeee99"))))
'(erc-header-line ((t (:background "#FF0000" :foreground "#000000"))))
@drobati
drobati / reclaimWindows10.ps1
Created January 7, 2017 20:12 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Fork via https://github.com/Disassembler0 (different defaults)
##########
# Win10 Initial Setup Script
# Author: Disassembler <disassembler@dasm.cz>
# Version: 1.7, 2016-08-15
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/
# THIS IS A PERSONALIZED VERSION
# This script leaves more MS defaults on, including MS security features.
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1

Keybase proof

I hereby claim:

  • I am drobati on github.
  • I am drobati (https://keybase.io/drobati) on keybase.
  • I have a public key whose fingerprint is F96B 2312 330B EC80 A336 3ED8 12F5 7024 391B 4EB2

To claim this, I am signing this object:

@drobati
drobati / sublist.py
Created February 22, 2016 15:56
Return list until match is found
list(gen)
# ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
items = list()
try:
while gen:
item = next(gen)
items.append(item)
if item == '4': break
except StopIteration:
@drobati
drobati / makeitrain.vim
Created January 14, 2016 09:16
Strip trailing whitespace
" Strip trailing whitespace (,ss)
function! StripWhitespace()
let save_cursor = getpos(".")
let old_query = getreg('/')
:%s/\s\+$//e
call setpos('.', save_cursor)
call setreg('/', old_query)
endfunction
noremap <leader>ss :call StripWhitespace()<CR>
@drobati
drobati / gist:db29a79356742f4ab68a
Created January 14, 2016 09:08
zsh load order
+----------------+-----------+-----------+------+
| |Interactive|Interactive|Script|
| |login |non-login | |
+----------------+-----------+-----------+------+
|/etc/zshenv | A | A | A |
+----------------+-----------+-----------+------+
|~/.zshenv | B | B | B |
+----------------+-----------+-----------+------+
|/etc/zprofile | C | | |
+----------------+-----------+-----------+------+
@drobati
drobati / us-zipcodes-ga.geojson
Last active December 25, 2015 06:59
Delicious geojson data. Zipcodes of Georgia, US.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@drobati
drobati / dots.js
Last active December 21, 2015 13:38
Fun with raphael.js. My project called Connect.
Raphael.fn.highlightline = function(pathstring) {
p = this.path(pathstring).attr({stroke: "#DDD", "stroke-width": 4}).click(function () {
if (this.played != true) {
if (turn == true) {
this.attr({stroke: "#F55"});
this.played = true;
turn = false;
} else {
this.attr({stroke: "#5C5"});
this.played = true;

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@drobati
drobati / .vimrc
Created August 2, 2012 20:52
Current Windows dot vimrc.
set nocompatible
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin
call pathogen#infect()
syntax on
filetype plugin indent on
set guioptions-=T