Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

var app = require('app'),
BrowserWindow = require('browser-window'),
fs = require('fs'),
sprintf = require('sprintf'),
ipc = require('ipc'),
spawn = require('child_process').spawn;
require('crash-reporter').start();
var mainWindow = null;
#!/bin/bash
# Anh Nguyen <anh.ng8@gmail.com>
# 2016-04-30
# MIT License
# This script takes in images from a folder and make a crossfade video from the images using ffmpeg.
# Make sure you have ffmpeg installed before running.
# The output command looks something like the below, but for as many images as you have in the folder.
@eugeneware
eugeneware / mmap.c
Created June 27, 2016 01:36
test mmaping file
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/mman.h>
int main (int argc, char *argv[])
{
struct stat sb;
did you know that the average adult spends more than three years have been
life in the kitchen
with so much time spent in this country workshop expected to function like a
well-oiled machine
however with most kitchens being so poorly optimized
the reality for most people is the preparing a meal can feel more like a
tie some game of Tetris
as you juggle pots and pans appliances and groceries that who's from every
cabinet
so in this video will show you five incredibly simple kitchen hex
5 incredibly simple kitchen hacks you can apply in your house to better use the space you have, and transform your kitchen from a place you dread, into a well organised creative studio fit for a chef...
FROM ubuntu
RUN apt-get update
RUN apt-get install -qqy x11-apps
# Replace 1000 with your user / group id
RUN export uid=1000 gid=1000 && \
mkdir -p /home/developer && \
echo "developer:x:${uid}:${gid}:Developer,,,:/home/developer:/bin/bash" >> /etc/passwd && \
echo "developer:x:${uid}:" >> /etc/group && \
echo "developer ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/developer && \
chmod 0440 /etc/sudoers.d/developer && \
ubuntu@dokku:~$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
29e9e4680697 dokku/tfidf-multilevel-server:latest "/bin/bash -c '/star 3 days ago Up 3 days 0.0.0.0:9000->9000/tcp, 0.0.0.0:49156->5000/tcp jovial_elion
@eugeneware
eugeneware / -
Created November 20, 2014 04:13
npm WARN package.json keyword-planner@0.1.0 No repository field.
> keyword-planner@0.1.0 install /Users/eugeneware/Dropbox/work/node-keyword-planner
> webdriver-manager update
selenium standalone is up to date.
chromedriver is up to date.
/Users/eugeneware/Dropbox/work/node-keyword-planner/node_modules/webdriver-manager/node_modules/adm-zip/zipFile.js:66
throw Utils.Errors.INVALID_FORMAT;
@eugeneware
eugeneware / -
Created November 18, 2014 06:30
Process: adl [40612]
Path: /Users/USER/*/adl
Identifier: adl
Version: ???
Code Type: X86 (Native)
Parent Process: make [40564]
Responsible: iTerm [98820]
User ID: 501
Date/Time: 2014-11-18 17:30:07.878 +1100
@eugeneware
eugeneware / -
Created November 17, 2014 21:49
commit 09c51d5e40aa0f9084fdee5b73a18cb8e864985c
Author: Ben Noordhuis <info@bnoordhuis.nl>
Date: Sat Nov 9 23:46:05 2013 +0100
crypto: update root certificates
Update the list of root certificates in src/node_root_certs.h with
tools/mk-ca-bundle.pl and update src/node_crypto.cc to make use of
the new format.