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.

@ProfessorTom
ProfessorTom / multiple_ssh_setting.md
Created April 14, 2022 18:22 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@ProfessorTom
ProfessorTom / ultimate-ut-cheat-sheet.md
Created December 23, 2021 18:38 — forked from yoavniran/ultimate-ut-cheat-sheet.md
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai, Sinon, and Jest
@ProfessorTom
ProfessorTom / xcode-downloader.rb
Created November 17, 2021 08:16 — forked from iandundas/xcode-downloader.rb
Script for reliably downloading binaries (e.g. Xcode) from Apple's CDN
#!/usr/bin/env ruby
print "What is the URL of your Apple Downloads resource?\nURL:"
url = gets.strip
print "What is the ADCDownloadAuth cookie token:\nADCDownloadAuth: "
token = gets.strip
command = "aria2c --header \"Host: adcdownload.apple.com\" --header \"Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\" --header \"Upgrade-Insecure-Requests: 1\" --header \"Cookie: ADCDownloadAuth=#{token}\" --header \"User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_1 like Mac OS X) AppleWebKit/602.2.14 (KHTML, like Gecko) Version/10.0 Mobile/14B72 Safari/602.1\" --header \"Accept-Language: en-us\" -x 16 -s 16 #{url} -d ~/Downloads"

Keybase proof

I hereby claim:

  • I am professortom on github.
  • I am professortom (https://keybase.io/professortom) on keybase.
  • I have a public key ASC9OtLbSrIzMYq904YO1ygn3TfTLwW3tfbe9vniVa3sego

To claim this, I am signing this object:

@ProfessorTom
ProfessorTom / emojis.json
Created June 16, 2021 22:06 — forked from noirbizarre/emojis.json
Slack emojis
{
"ok": true,
"emoji": {
"bowtie": "https:\/\/emoji.slack-edge.com\/T04C2PSNY\/bowtie\/f3ec6f2bb0.png",
"squirrel": "https:\/\/emoji.slack-edge.com\/T04C2PSNY\/squirrel\/465f40c0e0.png",
"glitch_crab": "https:\/\/emoji.slack-edge.com\/T04C2PSNY\/glitch_crab\/db049f1f9c.png",
"piggy": "https:\/\/emoji.slack-edge.com\/T04C2PSNY\/piggy\/b7762ee8cd.png",
"cubimal_chick": "https:\/\/emoji.slack-edge.com\/T04C2PSNY\/cubimal_chick\/85961c43d7.png",
"dusty_stick": "https:\/\/emoji.slack-edge.com\/T04C2PSNY\/dusty_stick\/6177a62312.png",
"slack": "https:\/\/emoji.slack-edge.com\/T04C2PSNY\/slack\/5ee0c9bea3.png",
@ProfessorTom
ProfessorTom / Selenium Cheat Sheet.md
Last active April 6, 2021 17:19 — forked from kenrett/Selenium Cheat Sheet.md
Selenium Cheat Sheet - Ruby

Getting Started

Webpage:

<html>
<head>
    <title>Testing with Ruby and Selenium WebDriver</title>
</head>
 
<body bgcolor="antiquewhite">
@ProfessorTom
ProfessorTom / README.MD
Created March 4, 2021 17:22 — forked from lmarkus/README.MD
Extracting / Exporting custom emoji from Slack

Extracting Emoji From Slack!

Slack doesn't provide an easy way to extract custom emoji from a team. (Especially teams with thousands of custom emoji) This Gist walks you through a relatively simple approach to get your emoji out.

If you're an admin of your own team, you can get the list of emoji directly using this API: https://api.slack.com/methods/emoji.list. Once you have it, skip to Step 3

HOWEVER! This gist is intended for people who don't have admin access, nor access tokens for using that list.

Follow along...

@ProfessorTom
ProfessorTom / struct_vs_inheritance.swift
Created February 3, 2021 18:42 — forked from AliSoftware/struct_vs_inheritance.swift
Swift, Struct & Inheritance: How to balance the will of using Struct & Value Types and the need for Inheritance?
// #!Swift-1.1
import Foundation
// MARK: - (1) classes
// Solution 1:
// - Use classes instead of struct
// Issue: Violate the concept of moving model to the value layer
// http://realm.io/news/andy-matuschak-controlling-complexity/
@ProfessorTom
ProfessorTom / falsehoods-programming-time-list.md
Created December 2, 2020 15:39 — forked from timvisee/falsehoods-programming-time-list.md
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).