Skip to content

Instantly share code, notes, and snippets.

@jamescmartinez
jamescmartinez / .gitignore
Created May 30, 2020
Modern Xcode .gitignore
View .gitignore
xcuserdata/
Pods/
View .eslintrc.json
{
"extends": [
"airbnb",
"plugin:prettier/recommended",
"prettier/react"
]
}
@jamescmartinez
jamescmartinez / disable-retweets.js
Last active Mar 7, 2018
Want to disable retweets for everyone you're following? Run this script on the Twitter following page. https://twitter.com/following --- Inspired by this post: https://www.theatlantic.com/magazine/archive/2018/04/the-case-against-retweets/554078/
View disable-retweets.js
document.querySelectorAll("div.ProfileCard-content div.dropdown").forEach(function(element){
element.querySelector("button").click();
element.querySelector("li.retweet-off-text button").click();
});
@jamescmartinez
jamescmartinez / ruby-on-raspbian.md
Last active Nov 8, 2018
Script to Install Latest Ruby on Raspberry Pi (Raspbian)
View ruby-on-raspbian.md
# Install asdf, our Ruby version manager
git clone https://github.com/asdf-vm/asdf.git ~/.asdf
echo -e '\n. $HOME/.asdf/asdf.sh' >> ~/.bashrc
echo -e '\n. $HOME/.asdf/completions/asdf.bash' >> ~/.bashrc

# Install dependencies (source: https://github.com/asdf-vm/asdf/blob/master/README.md)
sudo apt-get update
sudo apt-get install automake autoconf libreadline-dev libncurses-dev libssl-dev libyaml-dev libxslt-dev libffi-dev libtool unixodbc-dev
@jamescmartinez
jamescmartinez / trackday_checklist.md
Last active Aug 13, 2019
My checklist for trackdays and races
View trackday_checklist.md

Week Before

  • Inspect Motorcycle
  • Purchase Track Day / Register for Race

Motorcycle

  • Motorcycle
  • Motorcycle Key
  • Tools
  • Oil Funnel
  • Zip Ties
@jamescmartinez
jamescmartinez / .gitignore
Created Apr 14, 2017
.gitignore for iOS projects
View .gitignore
.DS_Store
*.xcuserstate
xcuserdata
Pods
@jamescmartinez
jamescmartinez / .gitignore
Last active Jan 11, 2017
New Node Project .gitignore and package.json
View .gitignore
.DS_Store
node_modules
npm-debug.log
@jamescmartinez
jamescmartinez / slack_emails.rb
Created Nov 10, 2016
This Ruby script will fetch email addresses for all of your members. Just add your API token from https://api.slack.com/web#authentication into the token quotes at the top of the file.
View slack_emails.rb
require 'csv'
require 'json'
require 'net/http'
token = ''
uri = URI("https://slack.com/api/users.list?token=#{token}")
response = Net::HTTP.get(uri)
members = JSON.parse(response)['members']
@jamescmartinez
jamescmartinez / githubssh.sh
Created Mar 25, 2016
Because setting up SSH on GitHub shouldn't take 10 pages of tutorials...
View githubssh.sh
ssh-keygen -t rsa -b 4096 -C "YOUR_EMAIL_HERE@EXAMPLE.COM"
pbcopy < ~/.ssh/id_rsa.pub
@jamescmartinez
jamescmartinez / html5boilerplate.html
Created Mar 17, 2016
Super simple, no frills HTML5 boilerplate!
View html5boilerplate.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello, World!</title>
<link rel="stylesheet" href="stylesheet.css">
</head>
<body>
Hello, World!
<script src="javascript.js"></script>
You can’t perform that action at this time.