Skip to content

Instantly share code, notes, and snippets.

@theschles
theschles / my_pmset_configuration.sh
Last active July 17, 2022 20:17 — forked from Miigon/my_pmset_configuration.sh
My pmset configuration on my MacBook Pro 13'' Early 2015
#!/bin/bash
# macOS power management settings optimized for longer battery life
# Tested on MacBook Pro 13'' Early 2015
# Miigon 2020-01-28
echo " "
echo "######################## DISCLAIMER ########################"
echo "Although this script can be run, it's more intended to show"
$ ./configure
checking build system type... x86_64-apple-darwin18.6.0
checking host system type... x86_64-apple-darwin18.6.0
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
@theschles
theschles / blah.js
Created January 26, 2017 17:22
Searching for Instapaper entries where referrer is 'email'
var blah = $(".js_domain_linkout");
blah.filter(function(){return $(this).text() == "\n\nemail\n\n";});