Skip to content

Instantly share code, notes, and snippets.

Luke Fender lfender6445

Block or report user

Report or block lfender6445

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Foo.js
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import Baz from 'baz'
class Foo extends Component {
static propTypes = {
list: PropTypes.array,
}
static defaultProps = {
View gist:a727fcef39cceb938104d7fedfc092e5
body {
background-color: #262626 !important;
}
body > center > table, input, textarea {
background-color: #222 !important;
}
body > center > table > tbody > tr:first-child > td {
background-color: #ff6600 !important;
@lfender6445
lfender6445 / applescript_force_internal_microphone.scpt
Last active Feb 8, 2018
AppleScript - Switch to hardware mic
View applescript_force_internal_microphone.scpt
-- Force mac book pro 10.13.3 to switch audio input to hardware mic
tell application "System Preferences" to activate
tell application "System Preferences"
reveal anchor "input" of pane id "com.apple.preference.sound"
end tell
tell application "System Events" to tell process "System Preferences"
select (row 1 of table 1 of scroll area 1 of tab group 1 of window "Sound" whose value of text field 1 is "Internal Microphone")
end tell
quit application "System Preferences"
View spacemacs-cheat-sheet.md

running spacemacs in vim-mode

S is SPACE, C is CTRL

  • S h d f (help define function)
  • S h d v (help define variable)

fuzzy file search

  • SPC p f (project finder) (type your filename)
    • C-c o
@lfender6445
lfender6445 / usa_gov_redirects_to_weightloss_page.sh
Last active Mar 16, 2016
usa.gov redirects to weightloss page
View usa_gov_redirects_to_weightloss_page.sh
› curl -I 'http://1.usa.gov/1WpPxtr'
HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Wed, 16 Mar 2016 12:51:12 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 222
Connection: keep-alive
Cache-Control: private, max-age=90
Location: http://www.vacanteen.va.gov/exit.php?VAURL=http://zjvycjxu.beboletj.tegutonal.jxucjxine.strikenx.bid/site/page/?12144jzopusuh83342seqjq
View profile.txt
# AG profile srp /apartments/Georgia/Atlanta
retained memory by gem
-----------------------------------
910832 drawbridge-0.5.0
745144 tilt-2.0.1
430393 ../app
306934 temple-0.7.6
146312 virtus-1.0.5
137565 ag/app
@lfender6445
lfender6445 / redis-graphite
Last active May 4, 2016 — forked from somebox/redis-graphite.sh
graphite-redis : monitor redis statistics with graphite across several hosts
View redis-graphite
#!/usr/bin/env ruby
require 'socket'
# graphite/carbon settings
GRAPHITE_HOST="graphite.intra.local.ch"
GRAPHITE_PORT=8125
def instrument_redis(redis_host)
namespace = "#{redis_host}"
redis = {}
View gist:5f581a24059811894b85
SHELL = /bin/sh
# V=0 quiet, V=1 verbose. other values don't work.
V = 0
Q1 = $(V:1=)
Q = $(Q1:0=@)
ECHO1 = $(V:1=@:)
ECHO = $(ECHO1:0=@echo)
@lfender6445
lfender6445 / this.rb
Created Feb 5, 2015
util class for pulling basic project info
View this.rb
require 'pathname'
# Public: A Class containing all the metadata and utilities needed to manage a
# ruby project.
class ThisProject
# The name of this project
attr_accessor :name
# The author's name
attr_accessor :author
View gist:45abbafbbed339e82eda
class A
SOMETHING = 'hello'
class B
class A
class D
constructor: ->
console.log(A::SOMETHING)
new D()
You can’t perform that action at this time.