Skip to content

Instantly share code, notes, and snippets.

View tooshel's full-sized avatar
🏈
Hello! This status seems silly.

Sheldon McGee tooshel

🏈
Hello! This status seems silly.
View GitHub Profile
#!/usr/bin/env bash
# Abort sign off on any error
set -e
# Start the benchmark timer
SECONDS=0
# Repository introspection
OWNER=$(gh repo view --json owner --jq .owner.login)
@Spencer-Easton
Spencer-Easton / exportSpreadsheet.gs
Last active August 9, 2024 07:45
Example on how to export a Google sheet to various formats, includes most PDF options
function exportSpreadsheet() {
//All requests must include id in the path and a format parameter
//https://docs.google.com/spreadsheets/d/{SpreadsheetId}/export
//FORMATS WITH NO ADDITIONAL OPTIONS
//format=xlsx //excel
//format=ods //Open Document Spreadsheet
//format=zip //html zipped
@wolever
wolever / shim.js
Last active November 5, 2015 21:39
My Webpack config
// Used to define the asset prefix at runtime
__webpack_require__.p = window.WEBPACK_ASSET_PREFIX || "ERROR-WEBPACK_ASSET_PREFIX-NOT-SET/";
@wolever
wolever / .babelrc
Last active November 5, 2015 21:40
Adding Babel (ES6) to a legacy project being built with webpack
{
// Enable all the features, including `::`-binding (ex, `setTimeout(::this.foo, 1000)`)
"stage": 0
}
@NickCraver
NickCraver / Windows10-Setup.ps1
Last active August 1, 2024 16:19
(In Progress) PowerShell Script I use to customize my machines in the same way for privacy, search, UI, etc.
##################
# Privacy Settings
##################
# Privacy: Let apps use my advertising ID: Disable
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0
# To Restore:
#Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 1
# Privacy: SmartScreen Filter for Store Apps: Disable
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 0
@WanderingHogan
WanderingHogan / gist:635951b5cbceb6c98120
Last active August 29, 2015 14:03
centos postgres9.3 postgis node git
#I went with a centos 6.5 64 bit server
##follow these instructions for postgis: http://www.postgresonline.com/journal/archives/329-An-almost-idiots-guide-to-install-PostgreSQL-9.3,-PostGIS-2.1-and-pgRouting-with-Yum.html
#First
sudo rpm -ivh http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-centos93-9.3-1.noarch.rpm
#then install all the postgres libs
sudo yum -y update
sudo yum -y install postgresql93 postgresql93-server postgresql93-libs postgresql93-contrib postgresql93-devel nano
@donnfelker
donnfelker / .gitconfig
Last active August 15, 2021 10:05
My .gitconfig
[user]
name = FirstName LastName
email = you@yourdomain.com
[alias]
A = add -A
a = add
aa = add --all
ae = add --edit
ai = add --interactive
amend = commit --amend -C HEAD
@pamelafox-coursera
pamelafox-coursera / AWidgetView.js
Last active December 16, 2015 22:28
jQuery BBQ Backbone Widget
define([
"backbone",
"jquery",
"underscore",
"js/lib/util",
"js/lib/jquery.bbq"
],
function(Backbone, $, _, util, bbq) {
var WIDGET_INFIX = '-state-';