Skip to content

Instantly share code, notes, and snippets.

Brew Bundle Brewfile Tips

Copyright & License

Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.

Sponsor

If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.

@zuxfoucault
zuxfoucault / script-template.sh
Created December 19, 2020 07:24 — forked from m-radzikowski/script-template.sh
Minimal safe Bash script template - see the article with full description: https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zuxfoucault
zuxfoucault / fetch_stocks_price.py
Created March 4, 2017 12:00 — forked from dolphinsue319/fetch_stocks_price.py
Fetch Taiwan OTC stocks price.
# coding=utf-8
import StringIO
import csv
import requests
from bs4 import BeautifulSoup
import time
import random
from Models import *
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zuxfoucault
zuxfoucault / gist:2461e3561013334f3a663f6c20003222
Last active October 13, 2016 12:19
Latex costom template
<+ +> !comp! !exe!
% !TEX TS-program = pdflatexmk
\documentclass[paper=a4,fontsize=14pt]{scrreprt}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[sorting=nyt,style=apa,backend=biber]{biblatex}
\DeclareLanguageMapping{american}{american-apa}
%\addbibresource{~/bibtexData/MEG.bib}
@zuxfoucault
zuxfoucault / dedict.c
Created October 7, 2016 03:32 — forked from josephg/0dedict.py
Apple dictionaries
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "zlib.h"
#define CHUNK 16384
/*
40 Length of the zlib stream