Todos Novo

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Registrar-se

Entrar

Todos Novo Registrar-se Entrar

Todos os gists

Mais recente criado
Menos recente criado
Mais recente atualizado
Menos recente atualizado
waja's Avatar

waja / gist:1bac5bb663ef4ca282de2e899d562fa8

0 curtidas
0 bifurcações
1 arquivos
Última atividade 8 months ago
1 #!/bin/bash
2 # install build essential packages
3 apt-get install --no-install-recommends build-essential fakeroot
4 # install build dependencies
5 apt-get install --no-install-recommends perl autotools-dev libdbi-dev libldap2-dev libpq-dev libmysqlclient-dev libfreeradius-client-dev libkrb5-dev libnet-snmp-perl procps
6 # install tools to create dist files
7 apt-get install --no-install-recommends autoconf automake
8 # create dist files
9 tools/setup
10 # configure the build
waja's Avatar

waja / gist:edf93ea470c945bb9c22c0cd517e80df

0 curtidas
0 bifurcações
1 arquivos
Última atividade 8 months ago
1 #!/bin/sh
2 _DEBUG="on"
3 DEBUGFILE=/tmp/sentinel_failover.log
4 VIP='10.125.125.30'
5 MASTERIP=${6}
6 MASK='24'
7 IFACE='eth0'
8 MYIP=$(ip -4 -o addr show dev ${IFACE}| grep -v secondary| awk '{split($4,a,"/");print a[1]}')
9
10 DEBUG () {
waja's Avatar

waja / gist:363e940234094229995c6d093967139d

0 curtidas
0 bifurcações
1 arquivos
Última atividade 8 months ago
1 #!/bin/sh
2 for DOMU in $(xm list | grep -v -E "^(Name|Domain-0)" | awk '{print $1}'); do
3 PARTSPACE=$(lvdisplay /dev/xen-vol/${DOMU}-disk | grep Size | awk '{print $3}')
4 RESOURCES=$(xm list | grep ${DOMU} | awk '{printf "%s %s %s",$6,$3,$4}')
5 # name_domu cpu_time ram vcpu part_space
6 echo ${DOMU} ${RESOURCES} ${PARTSPACE}
7 done
waja's Avatar

waja / gist:eaf4ab55615d46f68500be81b60e69f5

0 curtidas
0 bifurcações
2 arquivos
Última atividade 8 months ago
1 #!/bin/sh
2 KERNEL="$(dpkg -l | grep linux-image | grep ^ii | awk '{print $2}')"
3 if [ "$(echo ${KERNEL} | wc -l)" -gt "0" ]; then
4 echo "${KERNEL}" | mail -E -s "Kernel installed on $(hostname -f)" ${1}
5 fi
waja's Avatar

waja / gist:70c89069b6ab48c78809c897eb01a9fd

0 curtidas
0 bifurcações
1 arquivos
Última atividade 8 months ago
1 #!/bin/bash
2
3 # Check if the running kernel has the same version string as the on-disk
4 # kernel image.
5
6 # Copyright 2008,2009,2011,2012,2013,2014 Peter Palfrader
7 # Copyright 2009 Stephen Gran
8 # Copyright 2010,2012,2013 Uli Martens
9 # Copyright 2011 Alexander Reichle-Schmehl
10 #
waja's Avatar

waja / gist:780a350000dc49eeafbf454bd7be4895

0 curtidas
0 bifurcações
1 arquivos
Última atividade 8 months ago
1 #!/bin/bash
2
3 # This is a script to create a video from series of JPEG images
4 # Call it in a folder full of JPEGs that you want to turn into a video.
5 # Written on 2013-01-08 by Philipp Klaus <philipp.l.klaus →AT→ web.de>.
6 # Check <https://gist.github.com/4572552> for newer versions.
7 # Modified Version from: nv1t (coz of many image files)
8
9 # Resources
10 # * http://www.itforeveryone.co.uk/image-to-video.html
waja's Avatar

waja / gist:47ed0fab57454861ba04c3eb8a53c463

0 curtidas
0 bifurcações
1 arquivos
Última atividade 8 months ago

Thanks for visiting this page. I hope that you enjoyed the presentation, and found value in this. Below are a set of resources that will help in learning more about some of the topics I shared, specifically around people and process management.

All links below are sanitized, and have no referral links in which I profit from.

Resources

  • Getting started with ChatOps? Take a look at Rundeck
    • What even is ChatOps? Check out this talk by Mark Imbriaco
  • Want to learn more about Deming and the PDCA (Plan, Do, Check, Act) cycle
  • Just getting started with ChatOps? Learn some People Integration tips
waja's Avatar

waja / gist:f74337f468a24ca187117cb03064501a

0 curtidas
0 bifurcações
1 arquivos
Última atividade 8 months ago
1 #!/bin/sh
2 for LOOPS in $(losetup -a | awk -F':' {'print $1'} | awk -F'/' {'print $3'}); do
3 for LOOPPART in $(ls /dev/mapper/${LOOPS}*| awk -F'/' {'print $4'}); do
4 dmsetup remove ${LOOPPART};
5 done;
6 losetup -d /dev/${LOOPS};
7 done
waja's Avatar

waja / gist:9e8d82d3639b4d1b942593b70b37b328

0 curtidas
0 bifurcações
1 arquivos
Última atividade 8 months ago

New location

Head over to https://github.com/waja/debian-update-cheatsheets/blob/wheezy2jessie/wheezy2jessie.sh

waja's Avatar

waja / gist:102e9d6758ea448998ed492ffe1a7f83

0 curtidas
0 bifurcações
1 arquivos
Última atividade 8 months ago
1 #!/bin/sh
2 # as long as /var/lib/dpkg/info/apache2.postinst has no migration code, we need this script
3 # for details see http://anonscm.debian.org/cgit/pkg-apache/apache2.git/plain/debian/apache2.NEWS
4 APACHE2BASEDIR="/tmp/apache2"
5
6 # migrate vHost config
7 for SITECONF in $(ls -l ${APACHE2BASEDIR}/sites-enabled/ | awk {'print $9'} | grep -v ^$ | grep -v ".conf$"); do
8 echo "Migrating ${SITECONF}"
9 mv ${APACHE2BASEDIR}/sites-available/${SITECONF} ${APACHE2BASEDIR}/sites-available/${SITECONF}.conf
10 rm ${APACHE2BASEDIR}/sites-enabled/${SITECONF}
Próximo Anterior

Desenvolvido por Opengist ⋅ Load: 200ms⋅

Português
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文