Skip to content

Instantly share code, notes, and snippets.

View MarcL's full-sized avatar
🎉
Doing exciting things @netlify! 🎉

Marc Littlemore MarcL

🎉
Doing exciting things @netlify! 🎉
View GitHub Profile
@tobi
tobi / kindle.rb
Last active September 25, 2022 02:37
Download your Kindle Highlights to local markdown files. Great for Obsidian.md.
#!/usr/bin/env ruby
# gem install active_support
require 'active_support/inflector'
require 'active_support/core_ext/string'
# gem install webrick (only ruby3)
require 'webrick'
# gem install mechanize
@joshuap
joshuap / tag.js
Created August 5, 2019 21:21
Netlify function to tag subscribers in ConvertKit
// Netlify function to tag subscribers in ConvertKit
// https://www.netlify.com/products/functions/
// POST to /.netlify/functions/tag?id={subscriberId} with JSON array of tag ids: `[{tagId}, {tagId}, ...]`
const request = require("request-promise");
const apiKey = process.env.CONVERTKIT_API_KEY;
const apiSecret = process.env.CONVERTKIT_API_SECRET;
exports.handler = function(event, context, callback) {
@MarcL
MarcL / README.md
Last active January 15, 2019 16:30
Move a BitBucket repository to GitHub
@knowbody
knowbody / circle.yml
Created May 23, 2017 17:09
now.sh deployment CircleCI
deployment:
development:
branch: master
commands:
- URL=$(now -t ${NOW_TOKEN})
- now -t ${NOW_TOKEN} alias set ${URL} eedi-dev.now.sh
production:
branch: production
commands:
- URL=$(now -t ${NOW_TOKEN})
@gazjoy
gazjoy / css-names.md
Last active June 25, 2022 13:53
Good Wholesome Names Used in CSS
@alexeygrigorev
alexeygrigorev / vimeo-download.py
Created September 17, 2016 09:09
Downloading segmented video from vimeo
import requests
import base64
from tqdm import tqdm
master_json_url = 'https://178skyfiregce-a.akamaihd.net/exp=1474107106~acl=%2F142089577%2F%2A~hmac=0d9becc441fc5385462d53bf59cf019c0184690862f49b414e9a2f1c5bafbe0d/142089577/video/426274424,426274425,426274423,426274422/master.json?base64_init=1'
base_url = master_json_url[:master_json_url.rfind('/', 0, -26) + 1]
resp = requests.get(master_json_url)
content = resp.json()
* what it's like to not be technical in the industry
* what you do in tech that people forget is needed
* the most interesting thing you've worked on recently
* what your day-to-day is like
* must-have gifs for every techie
* horrible code from the past that shows I'm much better now
* the best music for hacking
* mistakes you've made that make you groan
* how you've made it at well-known companies
* self-care in the tech bubble
@sindresorhus
sindresorhus / .profile
Created April 6, 2016 11:10 — forked from bmhatfield/.profile
Automatic Git commit signing with GPG on OSX
# In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env
# variable pointing GPG to the gpg-agent socket. This little script, which must be sourced
# in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start
# gpg-agent or set up the GPG_AGENT_INFO variable if it's already running.
# Add the following to your shell init to set up gpg-agent automatically for every shell
if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then
source ~/.gnupg/.gpg-agent-info
export GPG_AGENT_INFO
else
@mandiwise
mandiwise / Update remote repo
Last active April 17, 2024 07:41
Transfer repo from Bitbucket to Github
// Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/
// See also: http://www.paulund.co.uk/change-url-of-git-repository
$ cd $HOME/Code/repo-directory
$ git remote rename origin bitbucket
$ git remote add origin https://github.com/mandiwise/awesome-new-repo.git
$ git push origin master
$ git remote rm bitbucket
@goodfeel
goodfeel / ga.rb
Last active August 16, 2017 04:06
Ruby class for Download Aggregrated Data from GameAnalytics.com
# Communicate with GameAnalytics.com to download aggragrated data.
# Author: Jesdakorn S. (@thet0ny / http://www.ton.in.th / http://zaqqle.com)
require 'rubygems'
require 'active_support/core_ext/date'
require 'active_support/core_ext/numeric/time' # Date time helper (when use outside Rails)
require 'HTTParty' # gem install httparty
require 'JWT' # gem install jwt