I hereby claim:
- I am llekn on github.
- I am llekn (https://keybase.io/llekn) on keybase.
- I have a public key ASDd9gnza_r1_3CgJE5Sl8ISTG0jJYfCFmTjzhL38bckjQo
To claim this, I am signing this object:
#!/usr/bin/env python3 | |
'''Receives a command as argument and executes it on | |
every sub-folder of current folder. | |
Useful for commands that should be run multiple times, | |
like doing a git fetch on a bunch of repos. | |
Usage: ./for-each-dir.py "command" | |
Example: ./for-each-dir.py "git fetch" | |
''' |
require 'em-websocket' | |
EM.run do | |
EM::WebSocket.run(host: '0.0.0.0', port: 8080) do |ws| | |
ws.onopen do |handshake| | |
puts 'WebSocket connection open' | |
# Access properties on the EM::WebSocket::Handshake object, e.g. | |
# path, query_string, origin, headers |
# http://blog.honeybadger.io/building-a-simple-websockets-server-from-scratch-in-ruby/ | |
require 'socket' # Provides TCPServer and TCPSocket classes | |
require 'digest/sha1' | |
server = TCPServer.new('localhost', 2345) | |
loop do | |
# Wait for a connection |
{ | |
"env": { | |
"es6": false, | |
"browser": true | |
}, | |
"parserOptions": { | |
"ecmaVersion": 5 | |
}, | |
"plugins": [], | |
"globals": { |
import { Injectable } from '@angular/core'; | |
import { | |
HttpRequest, | |
HttpHandler, | |
HttpEvent, | |
HttpInterceptor, | |
HttpErrorResponse, | |
} from '@angular/common/http'; | |
import { EnvConfigurationProvider } from 'gl-ionic2-env-configuration'; |
const actionMap: any = { | |
[gateAccess.REWIND_REGISTRATION]: (state, action) => { | |
switch (state.step) { | |
case 'vehicle': | |
return resetState(state); | |
case 'driver': | |
return updateObject(state, { lastAccess: null, step: 'vehicle' }); | |
case 'confirmation': | |
return updateObject(state, { | |
lastAccess: null, |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# Run Debian live on macos using hw acceleration | |
qemu-system-x86_64 \ | |
-m 512 -vga std -accel hvf -smp 2 -cpu host \ | |
debian-live-10.1.0-amd64-gnome.iso \ | |
-device nec-usb-xhci,id=xhci \ | |
-device usb-host,vendorid=0x054c,productid=0x09c3 \ |
Overcommit is a gem that makes easy to add, configure and run tasks on git hooks (script that are run when manipulating a git repo, for example, before making a commit).
overcommit
to development environment, or install it globally on you machine with gem install overcommit
overcommit
, install the git hooks provided by overcommit
: overcommit --install