Skip to content

Instantly share code, notes, and snippets.


Damien Rajon pyrho

View GitHub Profile
View gist:9316787
var Promise = require('bluebird');
function testFailReject(){
return Promise.reject(new Error('An error happened'));

Keybase proof

I hereby claim:

  • I am pyrho on github.
  • I am pyrho ( on keybase.
  • I have a public key whose fingerprint is 5713 1F64 2829 BC4C 20EE 44F2 643C 9F9C E508

To claim this, I am signing this object:

pyrho / gulpfile.js
Last active Jun 17, 2017
Simple gulpfile for a typescript project, including sourcemaps support and mocha (support material for
View gulpfile.js
const gulp = require('gulp');
const ts = require('gulp-typescript');
const sourcemaps = require('gulp-sourcemaps');
const mocha = require('gulp-mocha');
const del = require('del');
const gutil = require('gulp-util');
const config = {
outputDirectory: './build',
inputSourceFiles: [
View kitty.conf
# vim:fileencoding=utf-8:ft=conf
# You can include secondary config files via the "include" directive.
# If you use a relative path for include, it is resolved with respect to the
# location of the current config file. Note that environment variables
# are expanded, so ${USER}.conf becomes name.conf if USER=name
# For example:
# include other.conf
# Fonts {{{
pyrho / kitty.applescript
Created Mar 23, 2020
Alfred Kitty custom terminal integration
View kitty.applescript
on alfred_script(q)
do shell script "/Applications/ @ --to unix:/tmp/mykitty new-window --new-tab"
tell application "kitty" to activate
tell application "System Events" to keystroke q
tell application "System Events"
key code 36 -- enter key
end tell
end alfred_script
pyrho / gist:296e957645a2e5472c6368d6e9fb5fb0
Created Jan 25, 2021
VSCode launch.json for Typescript AVA unit tests
View gist:296e957645a2e5472c6368d6e9fb5fb0
"version": "0.2.0",
"configurations": [
"type": "node",
"request": "launch",
"name": "Run AVA test",
"program": "${workspaceRoot}/node_modules/.bin/ava",
"args": [