Clone Mastodon's repository.
# Clone mastodon to ~/live directory
git clone https://github.com/tootsuite/mastodon.git live
# Change directory to ~/live
cd ~/live
// ==UserScript== | |
// @name Add Saved Items to Cart | |
// @namespace https://gist.github.com/beporter/ce76204bcba35d9edb66b395bb5e9305 | |
// @version 0.5 | |
// @description Repeatedly refresh a given "saved items" page (Amazon, Walmart, BestBuy), look for specific "Add to Cart" buttons, click them if present, and make a lot of noise on success. | |
// @author https://github.com/beporter | |
// @match https://www.amazon.com/gp/registry/wishlist/* | |
// @match https://www.amazon.com/hz/wishlist/ls/* | |
// @match https://www.bestbuy.com/cart | |
// @match https://www.bestbuy.com/site/customer/lists/manage/saveditems |
/** | |
* NOTE: this specifically works if the house is for sale since it renders differently. | |
* This will download the highest resolution available per image. | |
*/ | |
/** | |
* STEP 1: Make sure to *SCROLL* through all images so they appear on DOM. | |
* No need to click any images. |
#!/bin/sh | |
basename=`basename $0` | |
if [ -z "$*" ]; then | |
echo "usage: ${basename} <dot> [ -o | -r | <file> | - ]" | |
echo "" | |
echo "options:" | |
echo " -o open dot in window with keyboard focus" | |
echo " -r read contents of dot" |
-- forked version of https://gist.github.com/charlietran/43639b0f4e0a01c7c20df8f1929b76f2 | |
on run {input, parameters} | |
set paths to "" | |
repeat with i from 1 to length of input | |
set cur to item i of input | |
set paths to paths & " " & quote & POSIX path of cur & quote | |
end repeat | |
set cmd to "vim -p" & paths | |
tell application "iTerm" |
// Base64 encoding of your credentials | |
let clientID = '<your client id>' | |
let clientSecret = '<your client secret>' | |
let cred = clientID + ':' + clientSecret | |
let credEncoded = Data.fromString(cred).toBase64String() | |
let auth = 'Basic ' + credEncoded | |
// Get token | |
let tokenURL = 'https://accounts.spotify.com/api/token' | |
var reqToken = new Request(tokenURL) |
property S : a reference to application "Safari" | |
global W | |
on run input -- input is a list of URLs | |
if (count input) is 0 then ¬ | |
set the input to {¬ | |
"alfredapp.com", ¬ | |
"stackoverflow", ¬ | |
"google.co.uk"} |
Stable enough for my initial use-case, light-duty laptop for travel and presentations, running Linux all the time but retain a small ChromeOS volume for firmware updates and restoring settings.
1st attempt I wiped the drive and then found that when the machine attempted to suspect when the lid closed it wiped the NVRAM with no other option to boot into legacy mode than to restore ChromeOS and enable it again.
CREATE EXTENSION IF NOT EXISTS "unaccent"; | |
CREATE OR REPLACE FUNCTION slugify("value" TEXT) | |
RETURNS TEXT AS $$ | |
-- removes accents (diacritic signs) from a given string -- | |
WITH "unaccented" AS ( | |
SELECT unaccent("value") AS "value" | |
), | |
-- lowercases the string | |
"lowercase" AS ( |
-- TerminalVim.app | |
-- This creates a shim Application that will enable you to open files from the Finder in vim using iTerm | |
-- To use this script: | |
-- 1. Open Automator and create a new Application | |
-- 2. Add the "Run Applescript" action | |
-- 3. Paste this script into the Run Applescript section | |
-- 4. Save the application as TerminalVim.app in your Applications folder | |
-- 5. In the Finder, right click on a file and select "Open With". In that window you can set TerminalVim as a default |