Skip to content

Instantly share code, notes, and snippets.

View parkr's full-sized avatar
📡
E.T. Phone Home

Parker Moore parkr

📡
E.T. Phone Home
View GitHub Profile
@parkr
parkr / overcast_export_recommended_episodes.sql
Last active February 10, 2023 06:52
SQL query to export recommended/starred/favorited Overcast episodes
@parkr
parkr / # bazel - 2017-11-11_19-35-51.txt
Created November 12, 2017 00:39
bazel on macOS 10.13.1 - Homebrew build logs
Homebrew build logs for bazel on macOS 10.13.1
Build date: 2017-11-11 19:35:51
# This is a possible alternate solution to Jekyll #6364.
# All of these procs are translations of methods from Jekyll::Filters.
# Only item_property has been modified.
require "liquid"
input = { "government" => ["one post", "two post"], "tech" => ["three post"], "lol" => [1,2,3] }
as_liquid = -> (item) {
case item
@parkr
parkr / # hub - 2017-02-16_18-34-35.txt
Created February 16, 2017 23:41
hub on macOS 10.12.3 - Homebrew build logs
Homebrew build logs for hub on macOS 10.12.3
Build date: 2017-02-16 18:34:35
require 'benchmark/ips'
def alter(obj)
return obj if obj.respond_to?(:strftime)
obj.downcase! if obj.is_a?(String)
case obj
when 'now'.freeze, 'today'.freeze
Time.now
@parkr
parkr / in-your-console.js
Last active August 22, 2024 16:26
delete your tweets and un-retweet tweets
// go to https://twitter.com/your-username, and enter the following into the developer console:
for(var i = 1; i < 500; i++){ // just do it a bunch
// Un retweet
document.getElementsByClassName("ProfileTweet-actionButtonUndo")[i].click();
document.getElementsByClassName("js-close")[0].click();
// Delete tweets
document.getElementsByClassName("js-actionDelete")[i].childNodes[1].click();
document.getElementsByClassName("delete-action")[0].click()
}
**************************
Prosody was unable to find luaexpat
This package can be obtained in the following ways:
luarocks: luarocks install luaexpat
Debian/Ubuntu: sudo apt-get install liblua5.1-expat0
Source: http://www.keplerproject.org/luaexpat/
luaexpat is required for Prosody to run, so we will now exit.
/usr/local/lib/python2.7/site-packages/numpy/core/_methods.py:55: RuntimeWarning: Mean of empty slice.
warnings.warn("Mean of empty slice.", RuntimeWarning)
/usr/local/lib/python2.7/site-packages/numpy/core/_methods.py:67: RuntimeWarning: invalid value encountered in double_scalars
ret = ret.dtype.type(ret / rcount)
Aug 9 23:38:03 Parkers-MacBook-Pro.local Python[75776] <Error>: void CGPathCloseSubpath(CGMutablePathRef): no current point.
Aug 9 23:38:03 Parkers-MacBook-Pro.local Python[75776] <Error>: void CGPathCloseSubpath(CGMutablePathRef): no current point.
Aug 9 23:38:03 Parkers-MacBook-Pro.local Python[75776] <Error>: void CGPathCloseSubpath(CGMutablePathRef): no current point.
Aug 9 23:38:03 Parkers-MacBook-Pro.local Python[75776] <Error>: void CGPathCloseSubpath(CGMutablePathRef): no current point.
Aug 9 23:38:03 Parkers-MacBook-Pro.local Python[75776] <Error>: void CGPathCloseSubpath(CGMutablePathRef): no current point.
Aug 9 23:38:03 Parkers-MacBook-Pro.local Python[75776] <Error>: void CG
#!/usr/bin/env bash
DEFINITION_PATH="2.1.1-github"
RUBY_BUILD_DEFINITIONS="$HOME/code/rbenv-custom-definitions/support"
RUBY_BUILD_DEFINITIONS="/usr/local/share/ruby-build:${RUBY_BUILD_DEFINITIONS}"
echo "$RUBY_BUILD_DEFINITIONS" | tr ":" "\n" | sed '/^$/d' | while read DEFINITION_DIRECTORY; do
echo "Testing ${DEFINITION_DIRECTORY}/${DEFINITION_PATH}"
if [ -e "${DEFINITION_DIRECTORY}/${DEFINITION_PATH}" ]; then
echo "It worked!"
@parkr
parkr / test.md
Last active August 29, 2015 14:02

Test

This is a test gist.