Skip to content

Instantly share code, notes, and snippets.

View gregimba's full-sized avatar

Grant Regimbal gregimba

View GitHub Profile
require 'daemons'
require 'cinch'
bot = Cinch::Bot.new do
configure do |c|
c.nick = "gregimba_bot"
c.server = "irc.oftc.net"
c.channels = ["#gregimba"]
end
#!/bin/sh
rm ~/Applications/Atom.app #delete app
rm -rf ~/.atom #delete dotfiles
rm /usr/local/bin/atom
rm /usr/local/bin/apm
rm ~/Library/Preferences/com.github.atom.plist
git checkout master
git pull
git checkout <branch name>
git rebase master
---
- hosts: webservers
become: yes
gather_facts: no
tasks:
- name: ensure apt cache is up to date
apt: update_cache=yes
- name: ensure packages are installed
apt: name={{item}}
if is_valid(email):
print('valid email')
if True:
print('runs')
if False:
print("doesn't run")
var _ = require('underscore');
// function sayHello() {
// console.log('Hello, World');
// }
// _.times(5, sayHello);
// -- Start -- //
const employees_input = [