Skip to content

Instantly share code, notes, and snippets.

View willyaranda's full-sized avatar
🏠
Working from home

Guillermo López willyaranda

🏠
Working from home
View GitHub Profile
@andystanton
andystanton / Start up local Docker Machine on OSX automatically.md
Last active April 3, 2024 00:50
Start up local Docker Machine on OSX automatically.

Notice

This script is no longer required with Docker for Mac which includes an option to run Docker at startup and doesn't use docker-machine to administer the local Docker engine.

Requirements

  • Docker Machine + Docker
  • curl
  • A Virtualbox-driven Docker Machine called "default" docker-machine create --driver virtualbox default (this is the default with Docker toolkit).
@frsela
frsela / split.sh
Created January 18, 2013 11:28
[WIP] Splitting notification server repository
git clone ../notification_server/
cd notification_server
git filter-branch --prune-empty --index-filter 'git rm --cached --ignore-unmatch node_modules/* test/jmeter/* test/jMeter/*' HEAD
cd ..
git clone notification_server notification_server_base
rm -rf notification_server
git clone ../notification_server/
cd notification_server
git filter-branch --prune-empty --subdirectory-filter node_modules/
@willyaranda
willyaranda / flood-push-server.js
Created October 15, 2012 14:34
Flood for websocket - push server
/**
* |||||||| Flooding time! |||||||||||
* Let's create a lot of websockets connections
* and try to flood the server.
* Invocation:
* $ node script.js <IP> <Port> <Number of conn> <Interval between starts> <Number of chars> <Interval> <Time to kill>
* both intervals are in milliseconds
*/
var wsClient = require('websocket').client;