Skip to content

Instantly share code, notes, and snippets.

Avatar

Alex Taujenis alextaujenis

View GitHub Profile
@vicendominguez
vicendominguez / playbook.yaml
Created May 19, 2014
Ansible:plauing with pub keys
View playbook.yaml
#this is a part of the original playbook:
- name: Creating pub SSH keys
command: ssh-keygen -N '' -f /root/.ssh/id_rsa
- name: Downloading pub key
fetch: src=/root/.ssh/id_rsa.pub dest=/tmp/id_rsa.tmp flat=yes
- name: Coping local key to other.server.net
local_action: shell cat /tmp/id_rsa.tmp | ssh -p 2244 root@other.server.net "cat >> /root/.ssh/authorized_keys"
@kyledrake
kyledrake / ferengi-plan.txt
Last active Jul 12, 2021
How to throttle the FCC to dial up modem speeds on your website using Nginx
View ferengi-plan.txt
# The blog post that started it all: https://neocities.org/blog/the-fcc-is-now-rate-limited
#
# Current known FCC address ranges:
# https://news.ycombinator.com/item?id=7716915
#
# Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft
#
# In your nginx.conf:
location / {
@garethrees
garethrees / gist:5591027
Last active Oct 14, 2020
Ansible set timezone on Ubuntu host
View gist:5591027
- name: Group by Distribution
hosts: all
tasks:
- group_by: key=${ansible_distribution}
- name: Set Time Zone
hosts: Ubuntu
gather_facts: False
tasks:
- name: Set timezone variables
@coolaj86
coolaj86 / how-to-publish-to-npm.md
Last active Nov 17, 2021
How to publish packages to NPM
View how-to-publish-to-npm.md

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "https:/yourblog.com"

npm adduser