Skip to content

Instantly share code, notes, and snippets.

View ChristopherA's full-sized avatar

Christopher Allen ChristopherA

View GitHub Profile
@ChristopherA
ChristopherA / apple_install_dates.md
Created September 19, 2023 00:22 — forked from pjobson/apple_install_dates.md
OSX Install Dates

Various Versions of macOS/OSX will fail on install for various reasons. You can fix them by disconnecting from your wifi or network or resetting your NVRAM. Booting from your USB stick, opening terminal and doing: date ########## where the # nubers are below. Format is: MMDDhhmmYY

10.16 - 0.5 Leopard   - date 0101010121 <- Currently not needed
10.15 - Catalina      - date 0101010120 <- Currently not needed
10.14 - Mojave        - date 0101010119 <- Currently not needed
10.13 - High Sierra   - date 0101010118

10.12 - Sierra - date 0101010117

@ChristopherA
ChristopherA / gist_to_github_repo.md
Created December 31, 2021 19:25 — forked from ishu3101/gist_to_github_repo.md
Transfer a gist to a GitHub repository

Transfer a gist to a GitHub repository

clone the gist

git clone https://gist.github.com/ishu3101/6fb35afd237e42ef25f9

rename the directory

mv 6fb35afd237e42ef25f9 ConvertTo-Markdown

change the working directory to the newly renamed directory

cd ConvertTo-Markdown

@ChristopherA
ChristopherA / gitcheats.txt
Created December 12, 2020 00:32 — forked from chrismccoy/gitcheats.txt
git cheats
# shortform git commands
alias g='git'
# push all branches to all remotes
git remote | xargs -L1 git push --all
# count lines of .js code in a repo
git ls-files | grep \\.js$ | xargs wc -l
# pretty tab'd git log
@ChristopherA
ChristopherA / mark-it-down.md
Last active March 18, 2022 18:02 — forked from martent/mark-it-down.md
Web page to Markdown Style #markdown #bookmarklet

Web Page to Markdown Style

Tags: #markdown #bookmarklet

This bookmarklet removes a web page’s current styling and applies markdown style to it. No conversion, just style.

1. Create a bookmarklet with the following javascript as the URL.

javascript:(function(){var s=document.createElement('script');s.src='https://dl.dropbox.com/s/5tyy4xskrda9r28/markdownify.js?token_hash=AAE5s_WBThN9O1mx6AfsPqSY6xjNvD47n6-24vn-ourX_w&amp;dl=1';document.body.appendChild(s);})();
@ChristopherA
ChristopherA / README.md
Last active May 26, 2022 11:03 — forked from idelem/titleUrlMarkdownClip.js
Copy current page title and url in Markdown format

Copy current page title and url in Markdown format

Tags: #bookmarklet #curation #markdown

Bookmarklet to copy current page title and url in Markdown format to clipboard, like title - Usual for posting links to resources in README.md files #bookmarklet #safari #markdown #tool

Originally from: https://gist.github.com/jbrown123/84839a5abe763e5b117a321510cb9de7

@ChristopherA
ChristopherA / FFmpeg.sh
Created November 30, 2019 03:01 — forked from AffanIndo/FFmpeg.sh
FFmpeg Cheat Sheet
# batch convert
for i in *.mp4; do ffmpeg -i "$i" "${i%.mp4}.webm"; done
# convert from one format to another
ffmpeg -i input.mp3 output.wav
# convert from one video format to another ("-qscale" value are 0-10, 0 is the best)
ffmpeg -i input.mp4 -qscale 0 output.webm
# convert video to audio (sometimes this one is better than the custom one below)
@ChristopherA
ChristopherA / git_helpers.zsh
Created August 12, 2019 23:05 — forked from singajeet/git_helpers.zsh
Contains function to work with github repo and gists
#! env zsh
########################################
# git_helper.zsh
# Author: Ajeet Singh
# provides functions as commands for git
########################################
#variables
export GIST_UPLOAD_URL="https://api.github.com/gists"
export GIST_DOWNLOAD_URL="https://gist.github.com"
@ChristopherA
ChristopherA / get_friends.js
Created June 11, 2018 06:23
grab facebook friend URLs
var friends = document.querySelectorAll('._698 > div > a');
urls = [];
for (var i = 0, len = friends.length; i < len; i++) {
urls.push(friends[i].href);
}
JSON.stringify(urls);
@ChristopherA
ChristopherA / mas_macos.txt
Created April 5, 2018 13:51 — forked from patrickgill/macos_appstore.txt
macOS App Store IDs
444303913 macOS 10.7 Lion
537386512 macOS 10.8 Mountain Lion
675248567 macOS 10.9 Mavericks
915041082 macOS 10.10 Yosemite
1147835434 macOS 10.11 El Capitan
1018109117 macOS 10.11 El Capitan (new)
1127487414 macOS 10.12 Sierra
1246284741 macOS 10.13 High Sierra