Skip to content

Instantly share code, notes, and snippets.

View Tethik's full-sized avatar
👾
Up to no good

Joakim Uddholm Tethik

👾
Up to no good
View GitHub Profile
@miry
miry / set-hostname.tf
Last active June 21, 2019 14:00
Change ubuntu hostname with Terraform. `terraform apply -target=null_resource.set-hostname`
variable "server_ip" {
default = "10.0.0.2"
}
variable "server_hostname" {
default = "node01"
}
# Ubuntu reference for hostnamectl: http://manpages.ubuntu.com/manpages/trusty/man1/hostnamectl.1.html
resource "null_resource" "set-hostname" {
@ibeex
ibeex / foo.log
Created August 4, 2012 13:46
Flask logging example
A warning occurred (42 apples)
An error occurred
@jesperhj
jesperhj / git howto
Last active December 1, 2015 16:39
Git
List remote and local branches
git branch -a
List only remote branches
git branch -r
Create new branch
git checkout -b newbranch
Create a local test branch which is tracking the remote test branch.
@pklaus
pklaus / ping.py
Created March 5, 2011 09:50
A pure python ping implementation using raw socket.
#!/usr/bin/env python2
"""
Other Repositories of python-ping
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* https://github.com/l4m3rx/python-ping supports Python2 and Python3
* https://bitbucket.org/delroth/python-ping