Skip to content

Instantly share code, notes, and snippets.

View VuokkoVuorinnen's full-sized avatar

Vuokko Vuorinnen VuokkoVuorinnen

View GitHub Profile
@VuokkoVuorinnen
VuokkoVuorinnen / soep.sh
Created December 19, 2023 07:44
soep.sh
#!/bin/bash
curl -s -H "Referer: https://partyline.be/_predefined_pages/prijslijst_NL.asp?M_LANGUAGE=NL&M_SITENAME=PARTYLINE" "https://partyline.be/_predefined_pages/prijslijst_NL.asp?M_CATEGORIE=25" | xmllint --format --html --xpath '//div[@class="row no-gutters mt-5"]' - | sed -e 's/<[^>]*>/ /g' | sed -e 's/&#13;//g' | sed '/^[[:space:]]*$/d' | sed -e 's/^[ \t]*//' | sed -e 's/ Koude suggestie.*//'
# list of severity levels
# ["emergency", "alert", "critical", "error", "warning", "notice", "informational", "debug"]
cron { 'Clean_debug_older_than_4_weeks_28_days':
command => '/usr/local/bin/purge_elasticsearch.sh -d 28 -l debug',
minute => '10',
hour => '5',
}
cron { 'Clean_informational_older_than_16_weeks_112_days':
@VuokkoVuorinnen
VuokkoVuorinnen / gist:c434ec6e5a65d0e469cf
Created December 3, 2014 09:38
Remove corrupt graphite carbon whisper files
#!/bin/bash
options=('find' 'delete')
PS3='state your wish: '
echo -e "\nfind/delete corrupt whisper-files"
select opt in "${options[@]}"; do
case $REPLY in
[12] ) option=$opt; break;;
* ) exit;;
### Keybase proof
I hereby claim:
* I am VuokkoVuorinnen on github.
* I am vuokko (https://keybase.io/vuokko) on keybase.
* I have a public key whose fingerprint is 429A 146A 2D23 E0A8 BBE8 6551 116B 1ECA 1A1B CD43
To claim this, I am signing this object:
require 'spec_helper'
# Install necessary packages: bind and bind-utils (the latter for testing with
# the host command)
describe package('bind') do
it { should be_installed }
end
describe package('bind-utils') do
it { should be_installed }
#!/bin/bash
# Generate a gource video, and upload it to YouTube
# If you have problems with the built in ffmpeg,
# you might want to try and compile it yourself:
#
# https://gist.github.com/taeram/4552318
# fail fast
@VuokkoVuorinnen
VuokkoVuorinnen / UGent.pcf
Created May 20, 2014 20:38
Ubuntu 14.04 config file for UGent VPN
# You also need the following packages: vpnc vpnc-network-manager, vpnc-network-manager-gnome
#install using: sudo apt-get install vpnc vpnc-network-manager, vpnc-network-manager-gnome
# Then import the following configuration file and change 'yourusernamehere' to your username
# fill in your password and connect
# VPN Config file
[main]
Description=UGent
Host=rtrvpn.UGent.be
#!/bin/sh
set -e
# copy pasted it from debian package, dont think this is necessary
#if [ "$1" = "configure" ]; then
# Generate secrets
if [ ! -f /var/lib/simplesamlphp/secrets.inc.php ]; then
touch /var/lib/simplesamlphp/secrets.inc.php
--- 10.5.255.255 ping statistics ---
12491 packets transmitted, 12490 received, +22692 duplicates, 0% packet loss, time 3786ms
rtt min/avg/max/mdev = 0.170/6.642/16.839/5.255 ms, pipe 64, ipg/ewma 0.303/6.905 ms
- name: Configure Apache
hosts: web-servers
user: root
handlers:
- name: Restart Apache
action: service name=httpd state=restarted
tasks:
- name: Ensure Apache is installed