Skip to content

Instantly share code, notes, and snippets.

View beeman's full-sized avatar
🐝
Buzzin....

beeman beeman

🐝
Buzzin....
View GitHub Profile

fc-base-pen [ Angular - UI-Router - Bootstrap ]

This is a template with :

  • angular 1.5.3
  • ui-router 1.0.0-alpha.4
  • bootstrap-3.3.6
  • font-awesome-4.6.1

A couple of notes on this template:

# Clean up dependencies in packages
nps lerna clean
# Clean up local node_modules
rm -r node_modules
# Install local node_modules
npm install
# Install dependencies in packages
nps setup
@beeman
beeman / mac-windows-integration
Created March 19, 2014 16:39
AutoHotkey script to make Windows keyboard shortcuts feel more native when working in a VM on a Mac
; AutoHotkey script to make Windows keyboard shortcuts feel more native when working in a VM on a Mac
; Bram Borggreve (c) 2014
; ********************************************************************************
; Some defaults recommended by AutoHotkey. I never ignore recommendations ;-)
; The shortcuts start after the recommendations
; ********************************************************************************
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
a, p, h1, h2, h3 {
font-family: "Roboto","Helvetica Neue Light","Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;
color: #546E7A;
}
a {
color: #1976D2;
}
@beeman
beeman / dploy-user-data.sh
Last active February 11, 2017 07:36
Custom user data script for dply.co https://dply.co/b/FVl9WY5k
#!/bin/sh
# Create and activate swap
dd if=/dev/zero of=/swapfile bs=256M count=4
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
# Activate swapfile on boot
echo "" >> /etc/fstab
echo "/swapfile none swap sw 0 0" >> /etc/fstab
/tmp
❯ mkdir test-deprecation
/tmp
❯ cd test-deprecation
/tmp/test-deprecation
❯ npm init -y
Wrote to /private/tmp/test-deprecation/package.json:
root@test:~# git clone https://github.com/angular/angular-cli.git
Cloning into 'angular-cli'...
remote: Counting objects: 12248, done.
remote: Compressing objects: 100% (19/19), done.
remote: Total 12248 (delta 2), reused 0 (delta 0), pack-reused 12227
Receiving objects: 100% (12248/12248), 3.00 MiB | 0 bytes/s, done.
Resolving deltas: 100% (6249/6249), done.
Checking connectivity... done.
root@test:~# cd angular-cli/
root@test:~/angular-cli# npm i
Suggestion A
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ _ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Suggestion B
@beeman
beeman / dploy-colmena-cms.sh
Last active February 19, 2017 14:04
Install Colmena CMS on dply.co https://dply.co/b/JxCG6lY7
#!/bin/sh
# Create and activate swap
dd if=/dev/zero of=/swapfile bs=256M count=4
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
# Activate swapfile on boot
echo "" >> /etc/fstab
echo "/swapfile none swap sw 0 0" >> /etc/fstab