Skip to content

Instantly share code, notes, and snippets.

View bionix's full-sized avatar

Markus Baumann bionix

View GitHub Profile
@bionix
bionix / ansible-dynamic-to-static.py
Created February 6, 2018 19:14 — forked from zkendall/ansible-dynamic-to-static.py
Script to convert the output of Ansible's ec2 dynamic inventory to a flat static inventory.
#!/usr/bin/env python
'''
This script converts the output of Ansible's dynamic ec2.py to a flatly formmated static inventory file.
Before running this script run `python ./ec2.py --refresh-cache > ec2-dynamic.json`
See: http://docs.ansible.com/ansible/ec2_module.html
'''
@bionix
bionix / git-standup
Created November 28, 2017 12:23 — forked from mrliptontea/git-standup
Git Daily Scrum helper
#!/bin/bash
# ------------------------------------------------------------------
# Git Daily Scrum (stand-up meeting) helper.
#
# The script helps you remember what you did last time and facilitates
# writing daily log for remote teams. Be aware that it assumes that
# meetings are conducted at the same time every day.
#
# Installation:
# 1. Place the script in some folder, e.g. your home:
@bionix
bionix / get_oracle_jdk_linux_x64.sh
Created June 12, 2017 08:37 — forked from n0ts/get_oracle_jdk_x64.sh
Get latest Oracle JDK package bash shell script
#!/bin/bash
# You must accept the Oracle Binary Code License
# http://www.oracle.com/technetwork/java/javase/terms/license/index.html
# usage: get_jdk.sh <ext> <jdk_version>
# ext: rpm
# jdk_version: default 8
ext=rpm
jdk_version=8
@bionix
bionix / wget-jdk-oracle-install-example.txt
Created June 12, 2017 08:37 — forked from sr75/wget-jdk-oracle-install-example.txt
wget command to install Oracle JAVA JDK from stupid oracle website for centos and ubuntu
http://d.stavrovski.net/blog/post/how-to-install-and-setup-oracle-java-jdk-in-centos-6
# rpm
wget --no-cookies \
--no-check-certificate \
--header "Cookie: oraclelicense=accept-securebackup-cookie" \
"http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.rpm" \
-O jdk-7-linux-x64.rpm
# ubuntu
@bionix
bionix / rules-ipv4.iptables
Last active August 29, 2015 14:26 — forked from BlackChar/rules-ipv4.iptables
Basic iptables template for ordinary servers (both IPv4 and IPv6)
###############################################################################
# Copyright 2012 Jakub Jirutka. All rights reserved.
#
# "THE KOFOLA-WARE LICENSE" (Revision 1):
# Jakub Jirutka originally wrote this file. As long as you retain this notice you
# can do whatever you want with this stuff. If we meet some day, and you think
# this stuff is worth it, you can buy me a Kofola in return. <jakub@jirutka.cz>
#
###############################################################################
@bionix
bionix / find-https-debian-archives.py
Last active August 29, 2015 14:25 — forked from eighthave/find-https-debian-archives.py
Script to find official Debian mirrors that support HTTPS
#!/usr/bin/python
import urllib2
import re
import ssl
import sys
# # find generic mirrors
mirrors = urllib2.urlopen('http://www.debian.org/mirror/list')
https = []
@bionix
bionix / customize-grml.md
Last active January 16, 2019 09:50 — forked from psi-4ward/customize-grml.md
Customize Grml LiveCD (remaster)

Customize Grml LiveCD (remaster)

This little bash script helps you to build your own customized grml.iso

Features

  • Include your .ssh/*.pub files into authorized_keys
  • Inject Grml Cheats
  • Auto download all necessary files (the ISO and grml2usb)
@bionix
bionix / muttrc
Last active August 29, 2015 14:21 — forked from xnyhps/muttrc
set imap_pass = `security find-internet-password -g -a "johndoe" -s "example.com" -r "imap" -w`
set smtp_pass = `security find-internet-password -g -a "johndoe" -s "example.com" -r "smtp" -w`
@bionix
bionix / redis_
Last active August 29, 2015 14:16
#!/usr/bin/perl -w
#
## Copyright (C) 2009 Gleb Voronich <http://stanly.net.ua/>
##
## This program is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License
## as published by the Free Software Foundation; version 2 dated June,
## 1991.
##
#! /bin/bash
### BEGIN INIT INFO
# Provides: redis-server
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Should-Start: $local_fs
# Should-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: redis-server - Persistent key-value db