Skip to content

Instantly share code, notes, and snippets.

@samiru
samiru / lauantaileikit.txt
Created May 16, 2024 14:59 — forked from 7mp/lauantaileikit.txt
Lauantaileikit
"Ciribim ciribom"
Ciribim ciribom
älä luule että uskotaan
Ciribim ciribom
sua enää ollenkaan
Tytön täytyy ymmärtää
se milloin häntä narrataan
@samiru
samiru / Git-Pull-Subdirectories.ps1
Last active December 16, 2022 10:43 — forked from vermorel/git-fetch-rebase-subdirectories.psh1
Iterate through subdirectories in PowerShell and perform 'git fetch' and 'git rebase' each time
<#
Iterate through all subdirectories, and perform Git pull on each sub directory.
Tags: #bin
#>
$initpath = Get-Location
foreach($path in Get-ChildItem) {
if ($path.Attributes -eq "Directory") {
Set-Location $path.FullName
git pull
# Apt-install various things necessary for Ruby, guest additions,
# etc., and remove optional things to trim down the machine.
apt-get -y update
apt-get -y remove apparmor
apt-get -y install linux-headers-$(uname -r) build-essential
apt-get -y install zlib1g zlib1g-dev libxml2 libxml2-dev libxslt-dev libssl-dev openssl libreadline5-dev
apt-get clean
# Remove this file to avoid dhclient issues with networking
rm -f /etc/udev/rules.d/70-persistent-net.rules