Skip to content

Instantly share code, notes, and snippets.

# 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 / usa_gov_redirects_to_weightloss_page.sh
Last active March 16, 2016 12:57
usa.gov redirects to weightloss page
› 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

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 / applescript_force_internal_microphone.scpt
Last active November 7, 2022 19:25
AppleScript - Switch to hardware mic
-- 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"
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 / Foo.js
Last active May 6, 2021 17:18 — forked from tadjohnston/Foo.js
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import Baz from 'baz'
class Foo extends Component {
static propTypes = {
baz: PropTypes.bool,
list: PropTypes.array,
}
@lfender6445
lfender6445 / renames.md
Created January 3, 2020 14:38
renames.md
for f in foo.replace; do
  mv -- "$f" "${f%.ts}.tsx"
done

find . -name "*.txt" -exec rename 's/.txt$/.newext/' {} \;
#! /bin/bash
function runCheck() {
while :; do
curl 'https://ww8.ikea.com/clickandcollect/us/receive/' \
-H 'authority: ww8.ikea.com' \
-H 'pragma: no-cache' \
-H 'cache-control: no-cache' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36' \
-H 'dnt: 1' \

== bin/development.ts (4 issues) == 20-106: Function startServer has 56 lines of code (exceeds 25 allowed). Consider refactoring. [structure] 40-50: Similar blocks of code found in 3 locations. Consider refactoring. [duplication] 52-62: Similar blocks of code found in 3 locations. Consider refactoring. [duplication] 64-74: Similar blocks of code found in 3 locations. Consider refactoring. [duplication]

== coverage/lcov-report/block-navigation.js (2 issues) == 2-78: Function init has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. [structure] 2-78: Function init has 57 lines of code (exceeds 25 allowed). Consider refactoring. [structure]