- Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz
- Gigabyte X79-UD3
- 16GiB RAM, DDR3-1866, 2x Corsair CMZ12GX3M3A16, 2x Kingston KHX1600C9D3/4
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
# link https://gist.githubusercontent.com/beci/e968d16363e71c77a1aa0495cdde5161/raw/c6a39779c8a951283f38af0d390484f6bb2ee837/docker-compose-postgres-with-healt-check.txt | |
# | |
postgres: | |
image: postgres:11-alpine | |
restart: always | |
volumes: | |
- ${PWD}/data:/var/lib/postgresql/data | |
environment: | |
POSTGRES_DB: ${FEATMAP_DB} | |
POSTGRES_USER: ${FEATMAP_DB_USER} |
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
#first install all the things: | |
sudo apt-get install flac ffmpeg mp3splt libav-tools shntool | |
# Okay first lets do an MP3: | |
# input files: | |
# --> cd.ape | |
# --> cp.cue | |
# (there are other options, like bitrate, but this is just the bare bones) | |
avconv -i cd.ape cd.mp3 |
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
#!/usr/bin/env bash | |
#curl -s https://gist.githubusercontent.com/beci/53cddb049995d9994e41f119b8b03a87/raw/bfb6afa1a37a8c03240c7961c69d4a796fe5812e/aws-arch-eu-central1.sh | bash | |
#aws ec2 describe-images --owners 093273469852 --filters "Name=root-device-type,Values=ebs" --filters "Name=virtualization-type,Values=hvm" --query 'Images[*].[Name]' --output text | |
#aws ec2 describe-instances --query 'Reservations[*].Instances[*].[InstanceId,State.Name,LaunchTime,PublicDnsName,PublicIpAddress,KeyName,InstanceType]' | |
# run by curl | |
sudo pacman -S --noconfirm pacman-contrib |
On arch linux python37 from AUR, using yay
:
yay -S python37
python3.7 -m venv venv
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
# with filter for only enabled | |
Get-ADUser -LDAPFilter "(&(objectCategory=person)(objectClass=user)(!userAccountControl:1.2.840.113556.1.4.803:=2))" -Properties * | select Name,UserPrincipalName,Enabled,LockedOut,Created,LastLogonDate | ConvertTo-Json > users_f.json | |
# with all users | |
Get-ADUser -Filter * -Properties * | select Name,UserPrincipalName,Enabled,LockedOut,Created,LastLogonDate | ConvertTo-Json > users.json |
#256 colors in putty, tmux/screen and vim There is a detailed answer on stackoverflow. If you are looking for a short one, here it is.
-
putty
Set
Connection -> Data -> Terminal-type string
toxterm-256color
-
tmux
Add this line to ~/.tmux.conf
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
# step 1: install xdg-utils | |
sudo pacman -S xdg-utils | |
# step 2: set qbittorrent to default magnet hangler | |
xdg-mime default qbittorrent.desktop x-scheme-handler/magnet |
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
gci -inc bin,obj -rec | rm -rec -force | |
# without alias: Get-ChildItem -inc bin,obj -rec | Remove-Item -rec -force |
NewerOlder