Skip to content

Instantly share code, notes, and snippets.

View bonkey's full-sized avatar

Daniel Bauke bonkey

View GitHub Profile
@bonkey
bonkey / README.md
Last active August 7, 2023 09:11 — forked from ifyoumakeit/github-conventional-comments.js
GitHub Conventional Comments (instructions to install in comment below code)

GitHub Conventional Comments!

Conventional Comments is a standard for formatting comments of any kind of review/feedback process. GitHub Saved Replies are re-usable text snippets that you can use throughout GitHub comment fields. Combining the two gives you GitHub Conventional Comments!

How to install

  1. Go to github.com/settings/replies
  2. Open Developer Tools
  3. Paste and run above code in JavaScript console
#!/usr/bin/env ruby
require 'csv'
require 'ap'
require 'date'
input_file = 'transactions-lykke.csv'
output_file = 'transactions-lykke-for-cointracking.csv'
module LykkeConverter
#!/bin/bash
# DON'T FORGET TO UPDATE "device" in fastlane/Scanfile to same as $simulator_name
simulator_model="iPhone 7"
simulator_name="$simulator_model: Travis Test"
# --------------
find_latest_ios_runtime() {
#!/usr/bin/env zsh
# Usage: drop sys-update.sh somewhere and call it in your .zshrc or .bash_profile with "-c" argument to
# see a reminder after $check_time without running "sys-update.sh -a":
# ~/.zshrc:
# [... at the end...]
# ~/.sys-update.sh -c
local check_file=.sys-check-ts
brew install gfortran
==> Installing dependencies for gfortran: gmp, mpfr, libmpc, isl, cloog
==> Installing gfortran dependency: gmp
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/gmp-5.1.3.mavericks.bottle.2.tar.gz
Already downloaded: /Library/Caches/Homebrew/gmp-5.1.3.mavericks.bottle.2.tar.gz
==> Pouring gmp-5.1.3.mavericks.bottle.2.tar.gz
/usr/bin/install_name_tool: object: /usr/local/Cellar/gmp/5.1.3/lib/libgmpxx.4.dylib malformed object (unknown load command 4)
/usr/bin/install_name_tool: object: /usr/local/Cellar/gmp/5.1.3/lib/libgmpxx.4.dylib malformed object (unknown load command 4)
/usr/bin/install_name_tool: object: /usr/local/Cellar/gmp/5.1.3/lib/libgmp.10.dylib malformed object (unknown load command 4)
/usr/bin/install_name_tool: object: /usr/local/Cellar/gmp/5.1.3/lib/libgmpxx.4.dylib malformed object (unknown load command 4)
$ brew update
Error: undefined method `factory' for Formula:Class
Please report this bug:
https://github.com/mxcl/homebrew/wiki/troubleshooting
/usr/local/Library/Homebrew/cmd/update.rb:61:in `update'
/usr/local/Library/Homebrew/cmd/update.rb:60:in `each'
/usr/local/Library/Homebrew/cmd/update.rb:60:in `update'
/usr/local/Library/brew.rb:95:in `send'
/usr/local/Library/brew.rb:95
brew update 4.73s user 5.73s system 32% cpu 32.052 total
#!/bin/sh
if [ $UID -ne 0 ]; then
echo "Run with sudo and belive it doesn't break anything ;-)"
exit 1
fi
echo "Scripted procedure from http://support.microsoft.com/kb/2398768"
echo "Step 2: Remove the Microsoft Office 2011 folder"
Subject: testing plain/text
X-Mailer: sparrow 1.0beta5 (build 365)
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="4cf133a8_6dcac1bb_863c"
Content-Transfer-Encoding: 8bit
--4cf133a8_6dcac1bb_863c
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
<script src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"/>
<script type="text/javascript">
swfobject.embedSWF("1_promo.swf", "banner1", "811", "251",
"9.0.0", null, false,
{flashvars:'url=http://google.com'});
swfobject.embedSWF("2_inst.swf", "banner2", "811", "251",
"9.0.0", null, false
{flashvars:'url=http://yahoo.com'});
</script>
~ % python -vc "import MySQLdb" 2>&1|grep -i mysql #1 L:0.28 M:743M S:2599.05M D:69Gi 22:08:06
# zipimport: found 37 names in /Library/Python/2.6/site-packages/MySQL_python-1.2.3c1-py2.6-macosx-10.6-universal.egg
import MySQLdb.release # loaded from Zip /Library/Python/2.6/site-packages/MySQL_python-1.2.3c1-py2.6-macosx-10.6-universal.egg/MySQLdb/release.pyc
dlopen("/Users/bonkey/.python-eggs/MySQL_python-1.2.3c1-py2.6-macosx-10.6-universal.egg-tmp/_mysql.so", 2);
import _mysql_exceptions # loaded from Zip /Library/Python/2.6/site-packages/MySQL_python-1.2.3c1-py2.6-macosx-10.6-universal.egg/_mysql_exceptions.pyc
import _mysql # dynamically loaded from /Users/bonkey/.python-eggs/MySQL_python-1.2.3c1-py2.6-macosx-10.6-universal.egg-tmp/_mysql.so
import _mysql # loaded from Zip /Library/Python/2.6/site-packages/MySQL_python-1.2.3c1-py2.6-macosx-10.6-universal.egg/_mysql.pyc
import MySQLdb.constants # loaded from Zip /Library/Python/2.6/site-packages/MySQL_python-1