This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
############# | |
# n8henrie's Raspberry Pi CrashPlan installer script | |
# v0.1.0 :: 20160530 | |
############# | |
set -e | |
CP_VERSION="4.8.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--taken from http://benguild.com/2012/04/11/how-to-import-tasks-to-do-items-into-ios-reminders/#comment-1346894559 | |
--set theFileContents to (read file "Users:n8henrie:Desktop:Reminders.txt") -- Change this to the path to your downloaded text file with your tasks in it! (Note the : instead of a / between folders) Or, just name them Reminders.txt and put them in your downloads folder | |
--set theLines to paragraphs of theFileContents | |
set theLines to {"task name 1", "task name 2"} | |
repeat with eachLine in theLines | |
tell application "Reminders" | |
set mylist to list "Your List Name" | |
tell mylist | |
make new reminder at end with properties {name:eachLine, due date:date "7/10/2014 3:00 PM"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/osascript -l JavaScript | |
// For use in Hammerspoon via hs.osascript.javascriptFromFile | |
// | |
// Debugging: | |
// 1. Add a `delay` to the beginning | |
// 2. Add some `console.log`s | |
// 3. Run from console as `osascript Open\ in\ MacVim.js` | |
// 4. Switch to a Finder window before the sleep is done | |
'use strict'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This sample demonstrates a simple skill built with the Amazon Alexa Skills Kit. | |
The Intent Schema, Custom Slots, and Sample Utterances for this skill, as well | |
as testing instructions are located at http://amzn.to/1LzFrj6 | |
For additional samples, visit the Alexa Skills Kit Getting Started guide at | |
http://amzn.to/1LGWsLG | |
""" | |
from __future__ import print_function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""chrome_se_export.py | |
Export your Chrome search engines to JSON. | |
""" | |
import os.path | |
import sqlite3 | |
import re | |
import json | |
import click |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
description = "Example use of nixpkgs#darwin-builder"; | |
# First, read through https://github.com/NixOS/nixpkgs/blob/master/doc/builders/special/darwin-builder.section.md#sec-darwin-builder-example-flake | |
# and add yourself to `extra-trusted-users`, verify with `nix show-config | grep -i trusted-users` | |
# | |
# Copy this flake somewhere and run: | |
# | |
# ```console | |
# $ nix build --builders '' .#packages.aarch64-darwin.default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
"""cheat_downloader.py | |
Loads Chrome's cookies into Python Requests for bulk downloading. | |
http://n8henrie.com/2013/11/use-chromes-cookies-for-easier-downloading-with-python-requests/ | |
Working with: | |
- Python 3.3.2 | |
- BeautifulSoup 4.3.1 | |
- Requests 2.0.0 | |
- Chrome 30.0.1599.101 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/osascript -l JavaScript | |
function click_ok() { | |
const sys = Application('System Events') | |
const finder = sys.processes["Finder"] | |
try { | |
let sheets = finder.windows.whose({name: "NatePhone"}).sheets().flat() | |
let message = "cannot be played on this iPhone." | |
let error_sheet = sheets.filter(sheet => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
go*.linux-armv6l.tar.gz |
NewerOlder