Skip to content

Instantly share code, notes, and snippets.

@thraizz
thraizz / .zshrc
Last active April 2, 2020 10:29
Oh-my-zshrc
if [ -f "$HOME/.oh-my-zsh" ]; then
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
fi
export ZSH="$HOME/.oh-my-zsh"
export PATH=/usr/bin:/bin:/usr/local/bin:${PATH}
#source $ZSH/.zsh_themes
ZSH_THEME="refined"
#!/bin/bash
DIST=CentOS_7
RELEASE=experimental/nightly/
URL=http://download.bareos.org/bareos/$RELEASE/$DIST
wget -O /etc/yum.repos.d/bareos.repo $URL/bareos.repo
yum -y install bareos bareos-database-postgresql bareos-webui bareos-storage-droplet postgresq-server
su postgres -c /usr/lib/bareos/scripts/create_bareos_database
su postgres -c /usr/lib/bareos/scripts/make_bareos_tables
su postgres -c /usr/lib/bareos/scripts/grant_bareos_privileges
@thraizz
thraizz / mutechrome.cmd
Created February 28, 2018 08:46
Mute chrome with nircmd
for /f "skip=2" %%A in ('wmic process where "caption='chrome.exe'" get parentprocessid') DO nircmd.exe muteappvolume /%%A 2&goto next
:next
@thraizz
thraizz / symetrischeVerschluesselung.java
Created January 8, 2018 15:52
Symetrische Verschluesselung
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class symetrischeVerschlüsselung {
public static void main(String[] args)throws IOException{
String[] ergebnis_array = new String[12];
String eingabe, schluessel;
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
@thraizz
thraizz / determinantenProgramm.java
Last active January 8, 2018 16:04
DeterminatenProgramm
public class determinantenProgramm{
public int[][] matrix;
static String toString(int [][] matrix) {
String result = "";
for(int i = 0 ; i < (matrix.length*matrix.length) ; i++){
int j = i % matrix.length;
int k = i / matrix.length;
if (j == 0) {
@thraizz
thraizz / Caesarchiffre.java
Last active January 19, 2018 08:16
Programmier Praktikum 1 - zweite Abgabe
import java.io.*;
public class Caesarchiffre {
public static void main(String[] args)throws IOException{
boolean b1 = false;
int schluessel;
String eingabe;
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Bitte einen Schlüsselwert zwischen 1-25 eingeben.");
do{