Skip to content

Instantly share code, notes, and snippets.

View b-ggs's full-sized avatar

boggs 🌊 b-ggs

View GitHub Profile
I'm at a point in life where the time I have to do things I want to do is greatly overshadowed by the things I have to do. ... I feel pressured to succeed so I can have more time to do what I want to do. ... Don't wait to do what you love.
@b-ggs
b-ggs / Contract Killer 3.md
Created March 12, 2017 09:31
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

@b-ggs
b-ggs / setup.md
Created January 26, 2017 02:02 — forked from dayvough/setup.md
Fresh Server Setup

Vars

app_dir = /home/deploy/app_name

Users, permissions, and services

https://www.codelitt.com/blog/my-first-10-minutes-on-a-server-primer-for-securing-ubuntu/
UniBeast 7.0.1 "Selected Mac OS X Installer is Incomplete" fix for Sierra. (self.hackintosh)
submitted 2 months ago * by [deleted]
Open Terminal
Type: cd Desktop
Type: mkdir -p "_MASReceipt"
Type: echo -e '\000com.apple.InstallAssistant.Sierra' > _MASReceipt/receipt
Go to your Desktop and copy the "_MASReceipt" folder.
Open Finder, right click your Installation application, and click "Show Package Contents"
Open Contents
Copy the "_MASReceipt" folder into the Contents directory.
module DateHelper
# Reference: http://www.foragoodstrftime.com/
def date_from_string(date_string)
begin
Date.strptime(date_string, "%m-%d-%Y")
rescue ArgumentError => e
nil
end
end
@b-ggs
b-ggs / istat.sh
Created December 2, 2016 20:31 — forked from jasonkolb/gist:9211384
istat
rm ~/Library/Preferences/com.bjango.istatmenus.plist
# SQLite version 3.x
# gem install sqlite3
#
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
#
default: &default
adapter: sqlite3
pool: 5
timeout: 5000
# Change these
server '128.199.91.252', port: 22, roles: [:web, :app, :db], primary: true
set :repo_url, '[email protected]:viros111/viros.git'
set :application, 'viros'
set :user, 'deploy'
set :puma_threads, [4, 16]
set :puma_workers, 0
# Don't change these unless you know what you're doing
# Be sure to restart your server when you modify this file.
# Version of your assets, change this if you want to expire all your assets.
Rails.application.config.assets.version = '1.0'
%w( clients ).each do |controller|
Rails.application.config.assets.precompile += ["#{controller}.coffee", "#{controller}.scss"]
end
# Add additional assets to the asset load path
# Rails.application.config.assets.paths << Emoji.images_path
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
$.ajax
url: "api/v1/boxes"
dataType: "json"
error: (jqXHR, textStatus, errorThrown) ->
$('.ajax-test').append "AJAX Error: #{textStatus}"
success: (data, textStatus, jqXHR) ->