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
nickjj / ansible-role-test.sh
Last active Jul 20, 2019 — forked from geerlingguy/ansible-role-test.sh
Ansible Role Test Shim Script
View ansible-role-test.sh
#!/bin/bash
#
# Ansible role test shim.
#
# Taken from this gist by Jeff Geerling on May 10th 2018:
# https://gist.github.com/geerlingguy/73ef1e5ee45d8694570f334be385e181
#
# Usage: [OPTIONS] ./tests/test.sh
# - 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
}
View fixed-to-be-normal-english.md
`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
nickjj / test.sh
Last active Aug 29, 2015
Proper way to handle multiple lines and passing items to other commands
View test.sh
#!/bin/bash
# foo
packages="a b c d e hello.world cool
please make it stop"
# bar
# It is important not to quote this variable because then it transforms the packages list
@nickjj
nickjj / README.md
Created Jul 22, 2014
An example readme and meta file that was automatically generated by Ansigenome v0.1.1.
View README.md

Build_Status

What is ginas.nginx

It is an ansible role that ...

Installation

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

View monit_ex.yml
monit_process_list:
"testproj":
- 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"
"sidekiq":
- check process sidekiq with pidfile {{ rails_deploy_path }}/tmp/sidekiq.pid
- start program = "/etc/init.d/sidekiq start"
- stop program = "/etc/init.d/sidekiq stop"
@nickjj
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://you@theserver.com/path/git/deploy/project_name.git
$ git push production +master:refs/heads/master
# for future deploys:
$ git push production master
@nickjj
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
# http://askubuntu.com/a/45236
You can’t perform that action at this time.