Skip to content

Instantly share code, notes, and snippets.

View hedefalk's full-sized avatar

Viktor Hedefalk hedefalk

View GitHub Profile
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 12,
// font family with optional fallbacks
fontFamily: 'Menlo, "DejaVu Sans Mono", "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
@hedefalk
hedefalk / git-init-gitlab.sh
Created December 3, 2016 21:54
push a new repo to gitlab
#!/bin/sh
repo_name=$1
token=`pass show gitlab/access-token`
test -z $repo_name && echo "Repo name required." 1>&2 && exit 1
curl -H "Content-Type:application/json" https://gitlab.com/api/v3/projects?private_token=$token -d "{ \"name\": \"$repo_name\" }"
git remote add origin "git@gitlab.com:hedefalk/$repo_name.git"
git push --set-upstream origin master
Siri,
Universal clipboard
Auto unlock
Apple Pay
Photos
Messages
iCloud Drive
Optimized Storage
@hedefalk
hedefalk / jumptooffset.js
Last active October 31, 2016 16:17
atom jump to buffer offset
var te = atom.workspace.getActiveTextEditor();
te.setCursorBufferPosition(te.getBuffer().positionForCharacterIndex(123123));
Oct 25, 2016 11:49:22.665 [0x7f640abfe700] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.
Oct 25, 2016 11:49:22.665 [0x7f640abfe700] DEBUG - Auth: Came in with the master token, authorization succeeded.
Oct 25, 2016 11:49:22.671 [0x7f640a3fd700] DEBUG - Request: [127.0.0.1:42773 (Loopback)] PUT /video/:/transcode/session/g80mt2948thofnfg4owtawcdi/progress?progress=81.0&size=151623800&remaining=-1 (17 live) Signed-in Token (hedefalk)
Oct 25, 2016 11:49:22.672 [0x7f640a3fd700] DEBUG - It took 0.0 sec to serialize a list with 0 elements.
Oct 25, 2016 11:49:22.672 [0x7f640abfe700] DEBUG - Completed: [127.0.0.1:42773] 206 PUT /video/:/transcode/session/g80mt2948thofnfg4owtawcdi/progress?progress=81.0&size=151623800&remaining=-1 (16 live) 0ms 305 bytes
Oct 25, 2016 11:49:23.157 [0x7f64053ff700] DEBUG - Shutting down idle session g80mt2948thofnfg4owtawcdi (idle time is 180 seconds)
Oct 25, 2016 11:49:23.157 [0x7f64053ff700] DEBUG - Killing job.
Oct 25, 2016 11:49:23.15
@hedefalk
hedefalk / out.log
Created August 29, 2016 08:43
nvm fail
[DRONE] starting job #1
[DRONE] export NODE_VERSION=5.0
$ export NVM_DIR="$HOME/.nvm"
$ git clone https://github.com/creationix/nvm.git $NVM_DIR
Cloning into '/root/.nvm'...
$ cd $NVM_DIR
$ git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" origin`
Note: checking out 'v0.31.6'.
You are in 'detached HEAD' state. You can look around, make experimental
#!/bin/bash
JAVA_HOME=${1-text}
[ $# -eq 0 ] && { echo "Usage: sudo $0 \$(/usr/libexec/java_home -v '1.8*')" ; exit 1; }
KEYSTORE=$JAVA_HOME/jre/lib/security/cacerts
wget https://letsencrypt.org/certs/isrgrootx1.pem
wget https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.der
wget https://letsencrypt.org/certs/lets-encrypt-x4-cross-signed.der
~/d/p/drone-wall ❯❯❯ npm install ⏎ master ✱
WARN engine grunt-istanbul@0.6.2: wanted: {"node":"~0.12.0"} (current: {"node":"4.2.6","npm":"2.14.12"})
npm WARN deprecated lodash@1.3.1: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
npm WARN deprecated lodash@0.9.2: Grunt needs your help! See https://github.com/gruntjs/grunt/issues/1403.
npm WARN peerDependencies The peer dependency grunt-protractor-coverage@github:mdasberg/grunt-protractor-coverage#ef6a8fb included from dominatr-grunt will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency grunt-svg-sprite@github:vokal/grunt-svg-sprite.git#8200979a0e included from dominatr-grunt will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm
gaze = require 'gaze'
temp = (require 'temp').track()
path = require 'path'
fs = require 'fs'
describe 'gaze', ->
tempDir = undefined
beforeEach ->
tempDir = temp.mkdirSync('gaze-test')
13:02:05.800 ERROR akka://ENSIME/user/ensime-main/tcp-server/con1 o.e.s.t.TCPConnectionActor - Error seen during message processing, closing client connection
java.lang.StackOverflowError: null
at org.ensime.jerk.JerkConversions$fresh$macro$604$1.inst$macro$601(JerkFormats.scala:40) ~[jerk_2.11.jar:0.9.10-SNAPSHOT]
at org.ensime.jerk.JerkConversions$fresh$macro$604$1.inst$macro$601$lzycompute(JerkFormats.scala:40) ~[jerk_2.11.jar:0.9.10-SNAPSHOT]
at org.ensime.jerk.JerkConversions$fresh$macro$604$1.inst$macro$601(JerkFormats.scala:40) ~[jerk_2.11.jar:0.9.10-SNAPSHOT]
at org.ensime.jerk.JerkConversions$fresh$macro$604$1.inst$macro$601$lzycompute(JerkFormats.scala:40) ~[jerk_2.11.jar:0.9.10-SNAPSHOT]
at org.ensime.jerk.JerkConversions$fresh$macro$604$1.inst$macro$601(JerkFormats.scala:40) ~[jerk_2.11.jar:0.9.10-SNAPSHOT]
at org.ensime.jerk.JerkConversions$fresh$macro$604$1.inst$macro$601$lzycompute(JerkFormats.scala:40) ~[jerk_2.11.jar:0.9.10-SNAPSHOT]
at org.ensime.jerk.JerkConversions$fresh$macro$604$1