This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Arch Linux Setup: https://gist.github.com/kevinkub/46ce7229ee4f17be710ddd7c5a80a3c3 | |
# Change root password | |
echo "# Change password of root user" | |
passwd | |
# Change hostname | |
echo "# Change hostname" | |
hostname | |
sudo hostnamectl set-hostname $hostname |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
############ | |
# Author: Aamnah | |
# URL: http://aamnah.com | |
# Based on: https://www.linode.com/docs/websites/hosting-a-website | |
############ | |
# Reset | |
Color_Off='\033[0m' # Text Reset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Information: This script was adapated from the WUA_SearchDownloadInstall.vbs VBScript from Microsoft. It uses the | |
# Microsoft.Update.Session COM object to query a WSUS server, find applicable updates, and install them. | |
# | |
# WSUS.ps1 is a little less verbose about what it is doing when compared to the orginal VBScript. The | |
# lines exist in the code below to show the same information as the original but are just commented out. | |
# | |
# | |
# WSUS.ps1 can automatically install applicable updates by passing a Y to the script. The default | |
# behavior is to ask whether or not to install the new updates. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -maxdepth 1 -type f -name 'input_*' -print0 | | |
sort -z | | |
xargs -0 cat -- >>out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
time sh -c "dd of=/dev/nul if=testfile bs=8k count=250000 && sync" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# | |
# Fotos von SD-Karte umbenennen nach JJJJMMDD_HHmmSS, | |
# verschieben von SD zu externer HDD | |
# erst in temp/, dann JJJJ/MM/DD/ | |
# und von NEF in JPG konvertieren | |
# | |
SD="/media/sd0/DCIM/100D3200" | |
HDD="/media/hdd0/D3200" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e [0-9] | xargs sudo apt-get -y purge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git gc --prune="0 days" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo find / -type f -mtime -1 -name "*.JPG" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo `git describe --tags`; | |
?> |
NewerOlder