This file contains hidden or 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
package com.appspot.bartgaepoc; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.context.annotation.aspectj.EnableSpringConfigured; | |
@Configuration | |
@EnableSpringConfigured | |
public class SpringConfiguration { | |
} |
This file contains hidden or 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
package com.appspot.bartgaepoc; | |
import java.io.IOException; | |
import javax.servlet.ServletException; | |
import javax.servlet.http.HttpServlet; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.beans.factory.annotation.Configurable; | |
import org.springframework.context.ApplicationContext; |
This file contains hidden or 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
android { | |
compileSdkVersion 18 | |
buildToolsVersion "17.0.0" | |
defaultConfig { | |
minSdkVersion 7 | |
targetSdkVersion 16 | |
} | |
signingConfigs { |
This file contains hidden or 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
C:\opt>gpg --gen-key --expert | |
gpg (GnuPG) 2.0.22; Copyright (C) 2013 Free Software Foundation, Inc. | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. | |
Please select what kind of key you want: | |
(1) RSA and RSA (default) | |
(2) DSA and Elgamal | |
(3) DSA (sign only) | |
(4) RSA (sign only) |
This file contains hidden or 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
Verifying that "bartprokop.id" is my Blockstack ID. https://onename.com/bartprokop |
This file contains hidden or 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 | |
# *** Valid for archlinux-2022.04.05-x86_64.iso | |
# *** GPG verify ISO file | |
gpg --auto-key-locate clear,wkd -v --locate-external-key [email protected] | |
gpg --verify archlinux-2022.04.05-x86_64.iso.sig | |
# gpg: assuming signed data in 'archlinux-2022.04.05-x86_64.iso' | |
# gpg: Signature made Tue Apr 5 17:05:57 2022 GMTST |
This file contains hidden or 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
# Upgrade all system | |
pacman -Syu | |
# Add local user (me) | |
useradd -m bart | |
# Fix Keyboard layout | |
localectl status | |
# System Locale: LANG=en_GB.UTF-8 | |
# VC Keymap: n/a |
This file contains hidden or 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
# | |
# https://gitlab.com/cryptsetup/cryptsetup/-/wikis/FrequentlyAskedQuestions | |
# https://man.archlinux.org/man/crypttab.5.en | |
# https://www.schneier.com/wp-content/uploads/2016/02/paper-truecrypt-dfs.pdf | |
# | |
pacman -S hdparm | |
pacman -S smartmontools | |
dd if=/dev/urandom of=/dev/sdb bs=4096 status=progress |
This file contains hidden or 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
cat /proc/sys/kernel/random/entropy_avail | |
# 496 | |
pacman -S rng-tools | |
systemctl start rngd | |
cat /proc/sys/kernel/random/entropy_avail | |
# 4035 | |
systemctl enable rngd |
This file contains hidden or 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
pacman -S samba | |
curl "https://git.samba.org/samba.git/?p=samba.git;a=blob_plain;f=examples/smb.conf.default;hb=HEAD" > /etc/samba/smb.conf | |
nano /etc/samba/smb.conf | |
# [global] | |
# log file = /var/log/samba/%m.log | |
systemctl enable smb |