Skip to content

Instantly share code, notes, and snippets.

View Mearman's full-sized avatar

Joseph Mearman Mearman

View GitHub Profile
@ed-cooper
ed-cooper / json-lang.tex
Created February 20, 2018 14:25
Latex lstlisting json language style
\definecolor{delim}{RGB}{20,105,176}
\definecolor{numb}{RGB}{106, 109, 32}
\definecolor{string}{rgb}{0.64,0.08,0.08}
\lstdefinelanguage{json}{
numbers=left,
numberstyle=\small,
frame=single,
rulecolor=\color{black},
showspaces=false,
#!/bin/bash
function usage() {
(
echo "usage: $0 <auth-token> <group-address> <mbox-dir>"
echo "To generate an auth token go to https://developers.google.com/oauthplayground/ and get an access token for Google Groups migration"
) >&2
exit 5
}
@pmkay
pmkay / top-brew-packages.txt
Last active May 8, 2026 14:46 — forked from r5v9/top-brew-packages.txt
Top homebrew packages
node: Platform built on V8 to build network applications
git: Distributed revision control system
wget: Internet file retriever
yarn: JavaScript package manager
python3: Interpreted, interactive, object-oriented programming language
coreutils: GNU File, Shell, and Text utilities
pkg-config: Manage compile and link flags for libraries
chromedriver: Tool for automated testing of webapps across many browsers
awscli: Official Amazon AWS command-line interface
automake: Tool for generating GNU Standards-compliant Makefiles
@appkr
appkr / basic_command.md
Last active January 15, 2024 08:22
OpenAPI Generator (a.k.a. Swagger Codegen)
openapi-generator version
openapi-generator help
openapi-generator list
openapi-generator help generate
openapi-generator generate -g spring -i api.yml -o build/spring_server

openapi-generator generate -g php -i api.yml -o build/php_client
@aliselcuk
aliselcuk / configure-macos.sh
Created September 12, 2018 21:09 — forked from paulcalabro/configure-macos.sh
Script to install everything onto a new Mac
# Install command line developer tools
xcode-select --install
# Install Brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Reset brew
brew update && brew upgrade brew-cask && brew cleanup && brew cask cleanup
# Install HTTPIE
@edgardo001
edgardo001 / youtube-dl.md
Created June 21, 2019 20:47
Using youtube-dl to download courses from Pluralsight

Download courses from learning sites with youtube-dl

You can download whole courses from an array of tutorial sites with the CLI tool youtube-dl. In the example further down I'm using my Pluralsight account to get videos from a course at their site. Here is a list of all supported sites that you can download from with this tool

The flags you have to supply may vary depending on which site you make a request to.

You can get a free 3 month trial to Pluralsight by signing up for free to Visual Studio Dev Essentials

Installation

@dvf
dvf / change-codec.md
Last active April 22, 2026 11:10
Enable High Quality mode on your headphones (Updated for macOS Catalina)

If you're using a high-end bluetooth headset on your Macbook Pro it's likely your mac is using an audio codec which favors battery efficiency over high quality. This results in a drastic degradation of sound, the SBC codec is the likely culprit, read more about it here.

Find out what codec you're using

  1. Play a song on your headphones
  2. Option (⌥) click the Bluetooth button at the top of your screen Inspect the Bluetooth Coded
  3. If you're using AAC or aptX, you can stop here—those are the highest quality codecs.

Change your codec to AAC or aptX

@donaldpipowitch
donaldpipowitch / README.md
Last active December 11, 2025 14:28
Use GitLab Pages to deploy a Storybook per branch

It's quite straightforward to use GitLab Pages to deploy a Storybook instance per branch (and remove it whenever the branch will be removed). And yeah, it's irony to document this in a GitHub Gist 😅

You just need a .gitlab-ci.yml like this one:

stages:
  - setup
  - build-and-test
  - deployment
  - pages
@kelset
kelset / build-time-improvements.md
Last active June 23, 2025 14:22
This is kind of a blogpost about my experience of diving deep to improve some timings for an iOS React Native app

Improving times for both iOS build and CI for a React Native app

Intro

Hello there.

So, if you are here you probably saw my previous tweet where I asked for tips & tricks on improving the timing on an iOS/React Native app build time.

What will follow was how I mixed those suggestions + some good old GoogleSearch-fu + me deep diving on this for ~2 days.

@Mearman
Mearman / cros-install-resilio-sync.sh
Last active August 10, 2024 00:53
ChromeOS install scripts
#!/bin/bash
# source: https://www.linuxbabe.com/ubuntu/install-resilio-sync-ubuntu-16-04-16-10
# add resilio source
echo "deb http://linux-packages.resilio.com/resilio-sync/deb resilio-sync non-free" | sudo tee -a /etc/apt/sources.listdeb http://linux-packages.resilio.com/resilio-sync/deb resilio-sync non-free
# download public keys
wget https://linux-packages.resilio.com/resilio-sync/key.asc
# import key