Skip to content

Commit 928c0c4

Browse files
author
dvogt23
committed
Update
1 parent e27e818 commit 928c0c4

File tree

12 files changed

+709
-0
lines changed

12 files changed

+709
-0
lines changed

Notes/tech/coding/kotlin.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Kotlin
2+
3+
### Optional API
4+
Source:
5+
https://4comprehension.com/kotlins-java-util-optional-equivalents/
6+
7+
val x: Int? = 7 // ofNullable()
8+
9+
val result = x
10+
?.let { ... } // map()
11+
?.takeIf { ... } // filter()
12+
?: 42 // orElseGet()
13+
14+
### next

Notes/tech/coding/make.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Make
2+
3+
CFLAGS += -Wall -Wextra
4+
LDLIBS = -lcurses
5+
OBJS = foo.o bar.o baz.o
6+
7+
foo: $(OBJS)
8+
$(CC) $(LDFLAGS) $(OBJS) $(LDLIBS) -o $@
9+
10+
foo.o bar.o: foo.h
11+
12+
clean:
13+
rm -f $(OBJS) foo

Notes/tech/coding/maven.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Maven
2+
3+
### Build subproject with dependencies include
4+
```bash
5+
mvn clean install -pl [project name] -amd
6+
```
7+
8+
### Change project version
9+
```bash
10+
mvn versions:set -DnewVersion=1.1.0 && mvn versions:commit
11+
```

Notes/tech/coding/rust.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
## Rust notes
2+
3+
Source: (Wrapper types)[https://manishearth.github.io/blog/2015/05/27/wrapper-types-in-rust-choosing-your-guarantees/]
4+
5+
### Wrapper types
6+
**Box** This abstraction is a low cost abstraction for dynamic allocation. If you want to allocate some memory on the heap and safely pass a pointer to that memory around, this is ideal.
7+
8+
**Rc** is a reference counted pointer for multiple owning.

Notes/tech/linux/10things_arch.md

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
# 10things arch
2+
3+
Check your current kernel:
4+
uname -r
5+
6+
# 1. Install an LTS kernel and reconfigure grub:
7+
sudo pacman -S linux-lts
8+
sudo grub-mkconfig -o /boot/grub/grub.cfg
9+
10+
You may also install linux-lts-headers.
11+
Reboot and check which kernel is in use with uname -r.
12+
13+
Remove non-lts kernel
14+
sudo pacman -Rs linux
15+
16+
# 2. Install Microcode
17+
18+
19+
For intel processors with grub boot loader:
20+
sudo pacman -S intel-ucode
21+
sudo grub-mkconfig -o /boot/grub/grub.cfg
22+
23+
For AMD processors install linux-firmware package.
24+
25+
# 3. Disable GRUB delay
26+
27+
Add the following to /etc/default/grub:
28+
achieve the fastest possible boot:
29+
GRUB_FORCE_HIDDEN_MENU="true"
30+
31+
Then put file 31_hold_shift to /etc/grub.d/.
32+
Download 31_hold_shift https://goo.gl/nac6Kp
33+
34+
Make it executable, and regenerate the grub configuration:
35+
sudo chmod a+x /etc/grub.d/31_hold_shift
36+
sudo grub-mkconfig -o /boot/grub/grub.cfg
37+
38+
# 4. Install some key packages
39+
40+
sudo pacman -S adobe-source-sans-pro-fonts aspell-en enchant gst-libav gst-plugins-good hunspell-en icedtea-web jre8-openjdk languagetool libmythes mythes-en pkgstats ttf-anonymous-pro ttf-bitstream-vera ttf-dejavu ttf-droid ttf-gentium ttf-liberation ttf-ubuntu-font-family
41+
42+
# 5. Set up firewall
43+
44+
Install ufw:
45+
sudo pacman -S ufw
46+
47+
Enable it.
48+
sudo ufw enable
49+
50+
Check its status:
51+
sudo ufw status verbose
52+
53+
Enable the start-up with the system:
54+
sudo systemctl enable ufw.service
55+
56+
Reboot and check the status again. It should be active.
57+
58+
# 6. Encrypt your home directory
59+
60+
Logged out. Switch to a console with Ctrl+Alt+F2. Login as a root and check that your user own no processes:
61+
ps -U username
62+
63+
Install the necessary applications:
64+
sudo pacman -S rsync lsof ecryptfs-utils
65+
66+
Then encrypt your home directory:
67+
modprobe ecryptfs
68+
ecryptfs-migrate-home -u username
69+
70+
Mount your encrypted home.
71+
ecryptfs-mount-private
72+
73+
Unwrap the passphrase and save it somewhere where only you can access it.
74+
ecryptfs-unwrap-passphrase
75+
76+
Run
77+
ls .ecryptfs
78+
79+
Edit /etc/pam.d/system-auth:
80+
81+
After the line "auth required pam_unix.so" add:
82+
auth required pam_ecryptfs.so unwrap
83+
84+
Above the line "password required pam_unix.so" insert:
85+
password optional pam_ecryptfs.so
86+
87+
After the line "session required pam_unix.so" add:
88+
session optional pam_ecryptfs.so unwrap
89+
90+
Reboot and make sure that you can login to your desktop
91+
92+
# 7. Remove orphans
93+
94+
sudo pacman -Rns $(pacman -Qtdq)
95+
96+
# 8. Optimize pacman's database access speeds
97+
98+
sudo pacman-optimize
99+
100+
# 9. Check for errors
101+
102+
sudo systemctl --failed
103+
sudo journalctl -p 3 -xb
104+
105+
106+
# 10. Backup the system
107+
108+
sudo rsync -aAXvP --delete --exclude=/dev/* --exclude=/proc/* --exclude=/sys/* --exclude=/tmp/* --exclude=/run/* --exclude=/mnt/* --exclude=/media/* --exclude=/lost+found --exclude=/home/.ecryptfs / /mnt/backupDestination/

Notes/tech/linux/apps.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Apps
2+
https://contao.org/de/
3+
http://www.zentyal.org/
4+
http://www.univention.de
5+
Ninite - Software Installation
6+
Zoneminder - Video Betriebssystem
7+
Froxlor - alt. SysCP
8+
http://www.yaml.de/
9+
Django
10+
MarkdownPad2
11+
Nfon
12+
Prezi.com
13+
J Language
14+
MS Mathematics
15+
PapDesigner
16+
Trello - Aufgaben Manager
17+
SOGo/ZAG
18+
openHAB Hausautomation
19+
Glympse - live Standort mitteilen
20+
speedof.me - html5 speedtest
21+
Bodhi
22+
Hiren's BootCD From USB
23+
ceph
24+
Mirantis
25+
Xming - XServer für putty
26+
skjlls.com - eigene Kompetenz in Euro messen
27+
reveal.js - HTML Presentation
28+
Dynv6 - dyndns
29+
Skuawk.com - bildportal
30+
Solusproject
31+
ElementaryOS (arc theme)
32+
Wallpaper pattern http://subtlepatterns.com/
33+
Audials - rip spotify
34+
Homematic/honeywell haus automation
35+
ApricityOS
36+
Mattermost - Slack OS alternative
37+
mutt - email
38+
pass - Passwordstore
39+
Phacility/Phanricator - PM Tool
40+
Yubikey - usb passwortmanager
41+
Canary Mail
42+
Veertu - macOS Ein virtualization
43+
HackerOne/BugCrowd/Mutilledae -Security Spiel
44+
scoop - windows shell
45+
tls.imirhil.fr - Cryptocheck
46+
bulma.io
47+
Zazu - launcher
48+
curl -Ss icanhazip.com - IP Adresse
49+
Mango - markdown editor
50+
Spaceradar - Festplatte Platz
51+
Missive Mail
52+
Desmos/calculator - graphen
53+
Etcher.io - Bootable Usb
54+

Notes/tech/linux/arch_install.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Pakete:
2+
xdg-user-dirs - User folders
3+
file-roller p7zip zip unzip unrar
4+
exa - ls Ersatz
5+
ncdu - Tree Size
6+
bc - bash calculator
7+
feh - Bildbeteachtung Bash
8+
ranger - File Explorer
9+
htop - Prozessexplorer
10+
ufw - Firewall
11+
pass - Passwortmanager
12+
neofetch - Bash
13+
zsh - Bash
14+
neovim - Editor
15+
numlockx - Numpad
16+
terminator - Terminal
17+
Nemo - File Explorer
18+
ripgrep - searcher
19+
peco - Filertool
20+
turtl - Notes
21+
gnome-keyring - Passwort Verwaltung
22+
Seahorse - GUI für keyring
23+
base-devel - Maketools
24+
fzf - fuzzy finder
25+
tldr - short man page
26+
thefuck - command correcter
27+
reflex - run cmd after file change
28+
gucharmap - Font Manager
29+
calcurse - Kalender
30+
autojump - Terminal directory switch
31+
bat - cat alternative
32+
33+
# i3:
34+
gsimplecal - Popup Kalender
35+
dunst
36+
i3-gaps
37+

Notes/tech/linux/arch_packages.md

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
# Arch packages
2+
3+
i3gaps # window manager
4+
alacritty-git # rust terminal emulator
5+
alsa-utils
6+
apvlv
7+
arandr
8+
arc-gtk-theme
9+
archfetch
10+
at
11+
autoconf
12+
autojump
13+
automake
14+
bat
15+
bc
16+
bleachbit
17+
calcurse
18+
compton
19+
cower
20+
dbeaver
21+
diff-so-fancy
22+
dmenu
23+
docker
24+
dunst
25+
exa
26+
fd
27+
feh
28+
firefox
29+
fish
30+
font-manager
31+
fzf
32+
gcc
33+
gcc-libs
34+
git
35+
git-flow-completion-git
36+
gitg
37+
gnome-font-viewer
38+
gnome-keyring
39+
go
40+
gparted
41+
gq
42+
grep
43+
gsimplecal
44+
hugo
45+
i3-gaps
46+
i3blocks
47+
i3status
48+
icdiff
49+
iftop
50+
imagemagick
51+
inetutils
52+
intellij-idea-community-edition
53+
inxi
54+
iputils
55+
make
56+
maven
57+
mc
58+
minitube
59+
ncdu
60+
neofetch
61+
neomutt
62+
neovim
63+
network-manager-applet
64+
networkmanager
65+
newsboat
66+
nmap
67+
notification-daemon
68+
npm
69+
numlockx
70+
offlineimap
71+
oh-my-zsh-git
72+
p7zip
73+
pass
74+
pass-otp
75+
pass-update
76+
peco
77+
polybar-git
78+
prezto-git
79+
pulseaudio
80+
pulseaudio-alsa
81+
pv
82+
pymodoro-git
83+
python-neovim
84+
python-pip
85+
python2-neovim
86+
python2-pip
87+
qtpass
88+
qutebrowser
89+
ranger
90+
rdesktop
91+
reflector
92+
resty-git
93+
ripgrep
94+
rofi
95+
rofi-greenclip
96+
rofi-pass-git
97+
rsync
98+
rustup
99+
rxvt-unicode
100+
screenfetch
101+
scrot
102+
shellcheck
103+
simplescreenrecorder
104+
slack-desktop
105+
stow
106+
strace
107+
sublime-text-dev
108+
terminator
109+
termite
110+
tldr
111+
tmux
112+
ttf-iosevka
113+
ttf-iosevka-term
114+
ufw
115+
unzip
116+
vim
117+
vimpager
118+
visual-studio-code
119+
wal-git
120+
weechat
121+
wget
122+
wunderline
123+
xarchiver
124+
xclip
125+
xdg-user-dirs
126+
xdotool
127+
xss-lock
128+
yay
129+
zathura
130+
zathura-pdf-mupdf
131+
zsh
132+
zsh-syntax-highlighting

0 commit comments

Comments
 (0)