Skip to content

Instantly share code, notes, and snippets.

View wamoyo's full-sized avatar
😜
Codin' on

Costa Michailidis wamoyo

😜
Codin' on
View GitHub Profile
@wamoyo
wamoyo / staging.js
Created January 24, 2015 02:49
A quick way to stage and application to nodejitsu (doesn't yet copy environment variables)
/*
* Use this file to deploy an app to the staging server on nodejitsu.
*/
var fs = require('fs');
var package = '';
var bash = require('child_process');
var jitsu;
@wamoyo
wamoyo / blue-green.js
Created January 24, 2015 07:03
Doing a Blue-Green (zero downtime) deployment for node.js apps on Bluemix (not finished yet)
/*
* Use this to do a blue-green (zero downtime) deployment on Bluemix for Node.js apps.
*/
var bash = require('child_process');
var util = require('util');
var routesBash;
var events = require('events');
var emitter = new events.EventEmitter();
@wamoyo
wamoyo / init.vim
Last active August 19, 2024 15:26
nvimrc
filetype plugin indent on
" Setting up vim plug
call plug#begin('~/.config/nvim/plugged')
Plug 'MarcWeber/vim-addon-mw-utils'
Plug 'tomtom/tlib_vim'
Plug 'scrooloose/nerdtree'
Plug 'garbas/vim-snipmate'
Plug 'tpope/vim-surround'

Git Quick Reference

Git is awesome, but a lot of the time, I just need a quick reference for which commands to use in which situations. Here Goes!


Basics

git init

var style = {
base: {
fontFamily: 'Helvetica Neue, Helvetica, Arial, sans-serif',
fontSize: '16px',
lineHeight: '24px'
}
}
var card = elements.create('card', {style: style})
@wamoyo
wamoyo / world-map.html
Created February 13, 2019 22:20
A clickable map of the world
This file has been truncated, but you can view the full file.
<!doctype html>
<html lang="en">
<head>
</a>
<meta charset="utf-8">
<title>World Map</title>
<meta name="viewport" content="width=device-width">
<style id="style_css_sheet" type="text/css">
/*
* Below are Cascading Style Sheet (CSS) definitions in use in this file,
// on hashchange
window.addEventListener('hashchange', function (event) {
// grab the hash
var hash = location.hash.split('#')[1]
// grab the links with selectable class
var links = document.querySelectorAll('a.selectable')
// loop through the links
for (var i = 0; i < links.length; i++) {
// if the hash matches the href of the link
var href = links[i].href.split('#')[1]
Verifying my Blockstack ID is secured with the address 1Lg9oxTJ9C3hFwSv26gKQ75ED3vzW6PcQu https://explorer.blockstack.org/address/1Lg9oxTJ9C3hFwSv26gKQ75ED3vzW6PcQu
$ sudo apt install neovim
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
ctags vim-scripts
The following NEW packages will be installed:
neovim
0 upgraded, 1 newly installed, 0 to remove and 19 not upgraded.
Need to get 1,056 kB of archives.
[user]
email =
name =
[core]
editor = nvim
[merge]
tool = vimdiff
[color]
ui = auto
[alias]