Skip to content

Instantly share code, notes, and snippets.

View fvoges's full-sized avatar
:octocat:

Federico Voges fvoges

:octocat:
View GitHub Profile
@fvoges
fvoges / debian_install.sh
Last active February 22, 2025 17:38
Quick & Dirty rcfiles install
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
sudo apt-get update
sudo apt-get update && sudo apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade -y && sudo apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" dist-upgrade -y && sudo apt-get autoclean && sudo apt-get autoremove -y;sudo update-grub2
sudo apt-get install -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" ack-grep apt-file bash-completion bsdmainutils ccze colordiff curl git htop jq lftp lynx make mc mutt net-tools psmisc rsync sysstat telnet tree wget vim-nox && \
curl -q https://gist.githubusercontent.com/fvoges/741de3b432e19c11c9bb/raw/rcinstall.sh|sudo -i bash
curl -q https://gist.githubusercontent.com/fvoges/741de3b432e19c11c9bb/raw/rcinstall.sh|bash
Node.js
add-apt-repository -y ppa:chris-lea/node.js
Nginx
add-apt-repository -y ppa:nginx/stable
@fvoges
fvoges / gist:8365069
Created January 11, 2014 00:04
stuff I use...
yum install -y vim-enhanced bash-completion ccze colordiff curl git htop lftp lynx mc mutt psmisc rsync sysstat telnet wget
@fvoges
fvoges / .duptoolsrc
Last active August 29, 2015 14:04 — forked from tsileo/duptools.sh
duptools.sh - frontend shell script for duplicity
export AWS_ACCESS_KEY_ID="YOUR_KEY"
export AWS_SECRET_ACCESS_KEY="YOUR_SECRET"
# See below duplicity options, uses same key for encryption and signing
export PASSPHRASE="YOUR_GPG_KEY_PASSPHRASE"
PURGE_AGE="65D"
# directories, space separated
SOURCE=""

I just had to set up Jenkins to use GitHub. My notes (to myself, mostly):

Detailed Instructions

For setting up Jenkins to build GitHub projects. This assumes some ability to manage Jenkins, use the command line, set up a utility LDAP account, etc. Please share or improve this Gist as needed.

Install Jenkins Plugins

Puppet with Jenkins

Setup Jenkins

With Puppet:

puppet module install rtyler-jenkins

puppet apply -v -e "include jenkins"

@fvoges
fvoges / change_passwords.sh
Last active August 29, 2015 14:09
Script to generate random passwords for the PE answer files
#!/bin/bash
# Created: Tue Nov 11 09:45:31 2014
# Author: Federico Voges <[email protected]>
#
# Simple script to change all the passwords in the PE answer files.
# It should run from a directory containing the answer files.
# It will scan all .txt files looking for "q_.*password", generate a new
# password for each unique answer and replace the password on all files
# The console admin user password is hardcoded to "puppetlabs"
# -*- coding: utf-8 -*-
"""
Go to Google Bookmarks: https://www.google.com/bookmarks/
On the bottom left, click "Export bookmarks": https://www.google.com/bookmarks/bookmarks.html?hl=en
After downloading the html file, run this script on it to generate a KML.
"""
<?php
$retina = true;
$key = 'kokenwtf'; //ENTER YOUR OWN KEY
if ($_GET['key'] != $key) die;
$ds = DIRECTORY_SEPARATOR;
$root = dirname(__FILE__);
$content = $root . $ds . 'storage';
@fvoges
fvoges / request.php
Last active August 29, 2015 14:17 — forked from zllovesuki/request.php
<?php
$website = 'http://yourwebsite.com'; //no trailing slash
$key = 'kokenwtf';
/*
*
* RUNNING ON A MACHINE THAT HAS UNLIMITED EXECUTION TIME IS HIGHLY ENCOURAGED