Skip to content

Instantly share code, notes, and snippets.

Nick Janetakis nickjj

Block or report user

Report or block nickjj

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
nickjj /
Last active Jul 20, 2019 — forked from geerlingguy/
Ansible Role Test Shim Script
# Ansible role test shim.
# Taken from this gist by Jeff Geerling on May 10th 2018:
# Usage: [OPTIONS] ./tests/
# - distro: a supported Docker distro version (default = "ubuntu1804")
# - playbook: a playbook in the tests directory (default = "test.yml")
View GitGutter.sublime-settings
// This would go in $sublime_dir/Packages/User/GitGutter.sublime-settings
"live_mode": false,
"focus_change_mode": false
`debops.subnetwork` is an Ansible role that creates and manages a local                                                                          
network behind a bridge interface. It could also manage internal router                                                                         
interfaces to a LAN. You can specify an IPv4 subnet and one or more                                                                    
IPv6 subnets to configure it, the role will automatically configure basic                                                                             
forwarding in any firewall and NAT for the IPv4 network.                                                                                       
This role requires the `ipaddr()` filter plugin which is available in                                                             
nickjj /
Last active Aug 29, 2015
Proper way to handle multiple lines and passing items to other commands
# foo
packages="a b c d e cool
please make it stop"
# bar
# It is important not to quote this variable because then it transforms the packages list
nickjj /
Created Jul 22, 2014
An example readme and meta file that was automatically generated by Ansigenome v0.1.1.


What is ginas.nginx

It is an ansible role that ...


Ansible v1.6+ ansible-galaxy install ginas.nginx

View monit_ex.yml
- check process {{ rails_deploy_app_name }} with pidfile {{ rails_deploy_path }}/tmp/{{ pumacorn_server }}.pid
- start program = "/etc/init.d/{{ rails_deploy_app_name }} start"
- stop program = "/etc/init.d/{{ rails_deploy_app_name }} stop"
- check process sidekiq with pidfile {{ rails_deploy_path }}/tmp/
- start program = "/etc/init.d/sidekiq start"
- stop program = "/etc/init.d/sidekiq stop"
nickjj / dev_box
Last active Dec 24, 2015
Setup git on your server so you can deploy to it.
View dev_box
$ cd /path/to/local/repo/project_name
$ git remote add production ssh://
$ git push production +master:refs/heads/master
# for future deploys:
$ git push production master
nickjj / convert-ssh-key-format
Last active Dec 24, 2015
Convert a private Putty ssh key into something compatible with Ubuntu.
View convert-ssh-key-format
$ sudo apt-get install putty-tools
$ puttygen id_rsa.ppk ‐O private-openssh ‐o my-openssh‐key.sec
$ ssh-add my-openssh-key.sec
You can’t perform that action at this time.