Skip to content

Instantly share code, notes, and snippets.

View psyrendust's full-sized avatar

Larry Gordon psyrendust

View GitHub Profile
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
</template>
<script>
@psyrendust
psyrendust / demobranch
Last active August 29, 2015 14:02
`demobranch` - Pushes a demo-friendly version of your current branch to a 'gh-pages` branch.
#!/bin/bash -e
#
# Pushes a demo-friendly version of your current branch to a 'gh-pages`
# branch. This is useful for depolying to a `gh-pages` style branch
# that doesn't need to keep track of history.
#
#
# Usage:
#
# Default: Create a branch called `gh-pages`
#!/usr/bin/env zsh
if [[ -f /var/db/receipts/org.nodejs.pkg.bom ]]; then
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read i; do
[[ -a "/usr/local/${i}" ]] && echo "removing: /usr/local/${i}" && sudo rm "/usr/local/${i}"
done
[[ -a /usr/local/lib/node ]] && echo "removing: /usr/local/lib/node" && sudo rm -rf /usr/local/lib/node
[[ -a /usr/local/lib/node_modules ]] && echo "removing: /usr/local/lib/node_modules" && sudo rm -rf /usr/local/lib/node_modules
for i in $(ls /var/db/receipts/org.nodejs.*); do
echo "removing: ${i}"
@psyrendust
psyrendust / node.rb
Created April 20, 2014 03:31
homebrew-versions node 0.10.26 with npm 1.4.7
require 'formula'
# Note that x.even are stable releases, x.odd are devel releases
class Node < Formula
homepage 'http://nodejs.org/'
url 'http://nodejs.org/dist/v0.10.26/node-v0.10.26.tar.gz'
sha1 '2340ec2dce1794f1ca1c685b56840dd515a271b2'
bottle do
sha1 "0db92b18d10cb7505d7c885058e337aeb5e9741c" => :mavericks
@psyrendust
psyrendust / xg-description.html
Created April 15, 2014 02:58
knockout-templates
<dl data-bind="foreach: terms">
<dt>{{term}}</dt>
<dd>{{definition}}</dd>
</dl>
@psyrendust
psyrendust / remove-homebrew.zsh
Created February 26, 2014 18:44
Remove Homebrew and clean out the Cellar
# Remove Homebrew and clean out the Cellar
# ------------------------------------------------------------------------------
rmbrewlog() {
echo "Removing: $1" >> ~/.remove-homebrew.log
}
if [[ -z $(which brew 2>&1 | grep "not found") ]]; then
printf '\033[0;32m%s\033[0m\n' 'We will attempt to remove Homebrew and clean out the Cellar.'
printf '\033[0;32m%s\033[0m' 'Would you like to continue [y/n]: '
read should_continue
if [[ $should_continue = [Yy] ]]; then
@psyrendust
psyrendust / mac-smb-config.sh
Last active January 4, 2016 07:48
git-pull-hangs-on-smb-shared-repository
~/
❯ cat ~/Library/Preferences/nsmb.conf
[default]
smb_neg=smb1_only
~/
❯ cat /etc/auto_master
#
# Automounter master map
@ECHO OFF
REM -- Automates cygwin installation
SETLOCAL
REM -- Change to the directory of the executing batch file
CD %~dp0
REM -- Configure our paths
SET SITE=http://cygwin.mirrors.pair.com/