Skip to content

Instantly share code, notes, and snippets.

The Tools I Use

General

  • craft - writing, note taking. I switch those often, but have been using this one for a while now, and love it
  • 1password - the best password manager
  • Noizio - white noise generator

Productivity

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.40000000596046448</real>
[tool.poetry]
name = "test"
version = "0.1.0"
description = ""
authors = []
[tool.poetry.dependencies]
python = "^2.7 || ^3.6"
botocore = [
@mcouthon
mcouthon / list-all-repos.py
Last active March 17, 2020 13:32 — forked from ralphbean/list-all-repos.py
Script to list all repos for a github organization
#!/usr/bin/env python
""" Print all of the clone-urls for a GitHub organization.
It requires the pygithub3 module, which you can install like this::
$ sudo yum -y install python-virtualenv
$ mkdir scratch
$ cd scratch
$ virtualenv my-virtualenv
@mcouthon
mcouthon / The Tools I use.md
Last active August 22, 2019 14:13
The tools I use in Mac + Bash

The Tools I Use

Alfred [+ Powerpack]

Link

Basic functionality

Web search

  • Customize your search engine (go DDG!)

Clipboard history

@mcouthon
mcouthon / Dockerfile
Created July 24, 2019 06:28
Simple Dockerfile to work with Terraform
# Use the light version of the image that contains just the latest binary
FROM hashicorp/terraform:light
# The app folder will contain all our files
WORKDIR /app
# Put all your configration files in the same folder as the Dockerfile
COPY . /app
# Initalize terraform with local settings and data
@mcouthon
mcouthon / markdown.md
Last active May 23, 2019 07:23
Basic Markdown

Headings

Create headings by adding #'s before the line.

# Heading 1
## Heading 2
### Heading 3

Heading 1

Heading 2

JetBrains Shortcuts

Prerequisites: install jetbrains toolbox - use it to install IntelliJ (need ultimate edition for remote debugging; requires a license)

IntelliJ Community vs Ultimate

Full comparison. The main advantages of Ultimate:

  • Has all the functionality of DataGrip (SQL)
  • Has plugins for Ruby, Go, PHP, Node.js, Angular, React, and more
  • Supports Coffee/Type/Javascript
<scheme name="One Monokai (PB)" version="142" parent_scheme="Darcula">
<metaInfo>
<property name="created">2019-04-22T17:54:05</property>
<property name="ide">idea</property>
<property name="ideVersion">2019.1.1.0.0</property>
<property name="modified">2019-04-22T17:54:35</property>
<property name="originalScheme">One Monokai (PB)</property>
</metaInfo>
<colors>
<option name="CARET_COLOR" value="f8f8f0" />
@mcouthon
mcouthon / Profile.sh
Last active December 30, 2018 12:44
A convenience function to profile a python script
# This is the path to snakeviz executable in a dedicated venv
alias snake='/Users/pavel/dev/venvs/snakeviz/bin/snakeviz'
profile() {
tmp_file=$(mktemp)
python -m cProfile -o $tmp_file "$@"
snake $tmp_file
rm $tmp_file
}