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 / 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 | | |
+----------------+-----------+-----------+------+
" -----
" VIMRC
" -----
scriptencoding utf-8
" Setup Vundle
call plug#begin('~/.vim/plugged')
" Manage Plugins
Plug 'gmarik/Vundle.vim'
" -----
" VIMRC
" -----
set nocompatible
" Setup Vundle
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
body {
background-color: #205081;
}
table, form, input, td, th, p, textarea, select {
font-family: Arial, sans-serif;
font-size: 12px;
}
h1, h2, h3, h4, h5, h6 {
@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;