This little bash script helps you to build your own customized grml.iso
- Include your
.ssh/*.pubfiles intoauthorized_keys - Inject Grml Cheats
- Auto download all necessary files (the ISO and grml2usb)
This little bash script helps you to build your own customized grml.iso
.ssh/*.pub files into authorized_keys| #!/usr/bin/python | |
| import urllib2 | |
| import re | |
| import ssl | |
| import sys | |
| # # find generic mirrors | |
| mirrors = urllib2.urlopen('http://www.debian.org/mirror/list') | |
| https = [] |
| ############################################################################### | |
| # 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> | |
| # | |
| ############################################################################### |
| #!/bin/bash | |
| # Set color output | |
| red=`tput setaf 1` | |
| green=`tput setaf 2` | |
| reset=`tput sgr0` | |
| for i in `ls -1` ; do echo "${green}-- Update git folder${reset} ${red}$i ${reset}${green}--${reset}" ; cd $i ; git checkout master ; git pull ; git checkout develop ; git pull ; git checkout master ; git repack -ad ; cd .. ; done | |
| # EOF |
| # gitconfig | |
| # git alias | |
| # Remove branches that have already been merged with master | |
| # a.k.a. ‘delete merged’ | |
| dm = "!git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d" |
| # To install the required vagrant plugin use the following command: | |
| # $ export http_proxy ; vagrant plugin install vagrant-proxyconf --plugin-source http://rubygems.org | |
| # | |
| # Add or edit your file generic Vagrantfile (in place: ~/.vagrant.d/Vagrantfile) | |
| # To apply for all your vagrant projects the HTTP-Proxy stuff | |
| # | |
| # Note: vagrant needs vagrant plugin vagrant-proxyconf | |
| # | |
| Vagrant.configure("2") do |config| | |
| puts "proxyconf..." |
| #!/bin/sh | |
| # script: awslsa | |
| aws ec2 describe-instances --query 'Reservations[*].Instances[*].[InstanceId,State.Name,InstanceType,PrivateIpAddress,PublicIpAddress,PrivateDnsName,PublicDnsName,Tags[?Key==`Name`].Value[]]' --output json | tr -d '\n[] "' | perl -pe 's/i-/\ni-/g' | tr ',' '\t' | sed -e 's/null/None/g' | grep '^i-' | column -t | |
| # EOF |
| 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 |
| #!/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 |
| #!/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: |