- instructions: https://grapheneos.org/install/cli
- using Arch Linux (officially supported by CLI installer method) on a Lenovo W510
- updated device: Settings -> System -> Software updates -> System update -> Check for update -> "Your system is up to date"
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 | |
# e.g. $0 xfce4-terminal | |
echo "setting terminal to open from Nemo to" $@ | |
gsettings set org.cinnamon.desktop.default-applications.terminal exec $@ |
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
# (some build stuff already installed for kernel update, I think) | |
sudo apt-get install git cmake libopenmpi-dev libnetcdff-dev libscalapack-openmpi-dev libblas-dev liblapack-dev | |
git clone https://github.com/ORNL-Fusion/Stellarator-Tools.git | |
# into setup_cmake: | |
elif [ $MACHINE_ID == "eqrec0" ] || \ | |
[ $MACHINE_ID == "eqrec1" ] | |
then |
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 | |
sudo dd if=ubuntu-22.04.3-live-server-amd64.iso of=/dev/sdd bs=1M status=progress oflag=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 | |
# Make Git fetch all remote branches. | |
# from https://stackoverflow.com/a/25941875 | |
git config --get remote.origin.fetch | |
# +refs/heads/master:refs/remotes/origin/master | |
# --> only fetches master !!! | |
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" |
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 | |
watch "grep -e Dirty: -e Writeback: /proc/meminfo" |
If nothing works, try systematic debugging!
Xvnc
is the starting place.
The latest docs are here: https://github.com/TigerVNC/tigervnc/blob/master/unix/vncserver/HOWTO.md
Don't put a xstartup
file in ~/.vnc
; this is deprecated.
Don't have a Xsession
file in /etc/X11
; this messes things up.
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
import numpy as np | |
import matplotlib.pyplot as plt | |
import matplotlib.image as img | |
import h5py | |
folder = "/data/jonathan/Projekte/Elektrotechnik/Computerbasteln/Macintosh/MacSE_screencap/screencap/" | |
#folder = "C:/Users/Jonathan/data/Projekte/Elektrotechnik/Computerbasteln/Macintosh/Macintosh SE/screencap/" | |
# read HDF5 file | |
# timebase are equal, since LeCroy 7200A plugins were synced during acquisition |
Most OpenVPN tunnels only support IPv4. Thus, the system has to be configured such that IPv6 is disabled. Moreover, DNS leaks are still possible and thus, the DNS configuration needs to be adjusted as well.
On Arch, install update-systemd-resolved
from AUR (GitHub repo).
The following lines then go in the OpenVPN configuration:
script-security 2
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
import mpmath as mp | |
# default number of digits of precision for calculations | |
mp.mp.dps = 300 | |
# frequently-used constants with arbitrary precision | |
zero = mp.mpf("0") | |
one = mp.mpf("1") | |
two = mp.mpf("2") |
NewerOlder