Skip to content

Instantly share code, notes, and snippets.

View dayvough's full-sized avatar
🚀
Loading...

David Marquez dayvough

🚀
Loading...
View GitHub Profile
@dayvough
dayvough / SketchSystems.spec
Last active January 30, 2019 09:20
Fetch Order via API
Fetch Order via API
Auth
200 -> xport
xport
200 -> xpost
xpost
404 -> Auth
@dayvough
dayvough / hello-ghost.rb
Last active October 20, 2018 09:13
Ghost Gist Test
def hello_world(name)
puts "Hello, #{name}!"
end
hello_world("ghost") # Hello, Ghost!
@dayvough
dayvough / pomodoro.sh
Created September 27, 2016 06:59
Pomodoro Timer in bash
#!/bin/bash
osascript -e "display notification with title \"Start Pomodoro!\" sound name \"Hero.aiff\"" && \
sleep 1500 && \
osascript -e "display notification with title \"Pomodoro Break!\" sound name \"Hero.aiff\"" && \
sleep 300 && \
# sleep 900 && \ # Uncomment for long breaks;
osascript -e "display notification with title \"Pomodoro Break Done!\" sound name \"Hero.aiff\""
@dayvough
dayvough / nginx.conf
Last active September 26, 2016 10:58
Unicorn + Rails + Nginx
upstream app_name {
server unix:///home/deploy/app_name/shared/pids/unicorn.sock;
}
server {
listen 80;
server_name example.com;
root /home/deploy/app_name/current/public;
@dayvough
dayvough / setup.md
Last active April 14, 2017 11:06
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/

Pimp My Terminal

We’ll move from bash to zsh.
Install iTerm2 instead of using Terminal for more configurability.
And try to install tmux and vim.

Installation

  1. Download iTerm2