Skip to content

Instantly share code, notes, and snippets.

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

beeman beeman

🐝
Buzzin....
View GitHub Profile
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
@beeman
beeman / dploy-colmena.sh
Last active August 20, 2017 18:52
Install Colmena on dply.co https://dply.co/b/q6aJuU0e
#!/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
@beeman
beeman / Dockerfile
Last active June 21, 2017 11:27
Install Colmena CMS + beeman/colmena-todo on dply.co https://dply.co/b/GnkpGivd
FROM ubuntu:16.04
RUN apt-get update && apt-get install curl -y
RUN curl "https://gist.githubusercontent.com/beeman/1570e49c70ded6ed2e80d4c7514f6e66/raw" | sh
@beeman
beeman / theme.component.ts
Created August 10, 2017 17:31
scratchpad: ngx-bootswatch
import { Component, ChangeDetectionStrategy, Input } from '@angular/core'
@Component({
selector: 'theme',
template: `
<div class="btn-group"
[class.show]="themeDropOpen">
<button type="button"
class="btn btn-outline-primary dropdown-toggle"
data-toggle="dropdown"
_____
╱ ╲
_____╱ ╲
╱ ╲ ╱ ╭──╮ ╭──╮ ╷ ╭─╮╭─╮ ╭── ╭─╮ ╷ ╭──╮
╱ ╲_____╱ │ │ │ │ │ ││ │ │ │ │ │ │ │
╲ ╱ ╲ │ │ │ │ │ ╰╯ │ ├─ │ │ │ ├──┤
╲_____╱ ╲ ╰──╯ ╰──╯ ╰── ╵ ╵ ╰── ╵ ╰─╯ ╵ ╵
╲ ╱
╲_____╱
________
╱ ╲
╱ ╲
________╱ ╲
╱ ╲ ╱
╱ ╲ ╱
╱ ╲________╱
╲ ╱ ╲
╲ ╱ ╲
╲________╱ ╲
import { TestBed, async } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { AppComponent } from './app.component';
describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
RouterTestingModule
],
declarations: [
@beeman
beeman / Shortcuts.json
Created February 3, 2018 22:00
~/Library/Application\ Support/Spectacle/Shortcuts.json
[
{
"shortcut_key_binding" : "alt+shift+cmd+z",
"shortcut_name" : "RedoLastMove"
},
{
"shortcut_key_binding" : null,
"shortcut_name" : "MakeSmaller"
},
{