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 / in-your-console.js
Last active April 4, 2024 20:19
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()
}
@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 / generator_scss.rb
Created June 5, 2012 13:19
Jekyll Plugin to output SCSS without requiring the "---" YAML Front Matter
#
# Jekyll Generator for SCSS
#
# (File paths in this description relative to jekyll project root directory)
# Place this file in ./_plugins
# Place .scss files in ./_scss
# Compiles .scss files in ./_scss to .css files in whatever directory you indicated in your config
# Config file placed in ./_sass/config.rb
#
@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
# LIST MAPPING
curl -s private:9200/users/_mapping | js
# CREATE MAPPING
curl -XPUT 'private:9200/zo/zo/_mapping' -d '
{
"zo_mapping" : {
"properties" : {
"curationCount" : {"type" : "long" },
"featuredCount" : {"type" : "long" },
@parkr
parkr / error-report.txt
Created November 22, 2013 05:02
BugHub Error (at launch, won't start)
Process: BugHub [1557]
Path: /Applications/BugHub.app/Contents/MacOS/BugHub
Identifier: com.rclconcepts.BugHub.mac
Version: 1.0.1 (2)
App Item ID: 633342015
App External ID: 15225369
Code Type: X86-64 (Native)
Parent Process: launchd [233]
Responsible: BugHub [1557]
User ID: 501
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.raise_delivery_errors = true
ActionMailer::Base.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,
:domain => "gmail.com",
:user_name => ENV["SMTP_USERNAME"], # <-- this line
:password => ENV["SMTP_PASSWORD"], # <-- this line
@parkr
parkr / wp-add-upload-capabilities-to-contributor.php
Created November 12, 2013 04:45
WordPress: Add photo/video upload capabilities to contributors.
<?php
function wpc_contributor_uploads() {
$contributor = get_role('contributor');
$contributor->add_cap('upload_files');
}
if ( current_user_can('contributor') && !current_user_can('upload_files') ){
add_action('admin_init', 'wpc_contributor_uploads');
}
?>