Skip to content

Instantly share code, notes, and snippets.

View WillNilges's full-sized avatar
👾
Probably thinking about aliens

Willard Nilges WillNilges

👾
Probably thinking about aliens
View GitHub Profile
@WillNilges
WillNilges / cmake_install.cmake
Created December 11, 2019 18:50
Xournalpp cmake
# Install script for directory: /home/will/Documents/xournalpp/po
# Set the install prefix
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
set(CMAKE_INSTALL_PREFIX "/usr/local")
endif()
string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
# Set the install configuration name.
if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
@WillNilges
WillNilges / buildlog.txt
Created December 11, 2019 18:51
Build log
[ 2%] Built target xournal-thumbnailer
[ 12%] Built target util
[ 98%] Built target xournalpp-core
[100%] Built target xournalpp
Run CPack packaging tool...
CPack: Create package using RPM
CPack: Install projects
CPack: - Run preinstall target for: Xournal++
CPack: - Install project: Xournal++
CMake Error at /home/will/Documents/xournalpp/build/po/cmake_install.cmake:41 (file):
@WillNilges
WillNilges / merfolk.pub
Created December 25, 2019 00:33
merfolk pubkey
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDQkWOIRi3MAnjpalio1tZiE3BcPLUgVIWto2bOlFL2USCLgs88AwGslYtNhn7Vdz3nD34L3Fg/OAYLVcScHjc8HmPkhZUginxxmoO17gSlrgGfpNhef5JxUeb/nhVlbqRwo+RRzxpIOF2gy9Ucy4OzMsF73PHBJBlJBhthnfxrWgiQPozliaAl9OoYxbVFJ+R8bQlrOA6uVTeBgkAl8a8+r9ZEpQKlbF/9MKe92zxY+0olKdpRbavKP5mWH8w8N8ZBxtqFX8A6AkYeCYCD0goL49KMi0xGRS8PlGYsL/GQlCvGlFTIH4XXg5vXoVfjQQzx2dJMmmdLLFp2YYJnUwjWYfkujfasXgx3NKoR3fOaxv55QTWDisH0165uFx7Q3lUJmp66a+8Zp44EX0dz1Do35zCJ7vQhia+/XcblHh687Lo2CkE2N6FhA7IlBFA4+elCUB1IfyAwph9C9uhOKPbi4uZAlyVcFZTwuD4kvhTVRiZ62fmQRwdEcFPZ6qOpqIU= wilnil@merfolk
@WillNilges
WillNilges / raspi_mount.sh
Last active June 18, 2020 19:12
This simple script will mount a raspberry pi image on your computer so you can mess with it.
#!/bin/bash
headstart=$(sudo fdisk -l $1 | grep img2 | awk -F" " '{ print $2 }')
echo $headstart
if [ -z ${2+x} ]; then
mountpoint='/mnt/raspberry'
else
mountpoint=$2
@WillNilges
WillNilges / sonarscan_prereq.sh
Last active July 17, 2020 15:40
Download and "Install" SonarQube tools in your environment for C code analysis.
set -e # Stop the script if something fails.
#URL to your SonarQube instance
SONAR_INSTANCE=
if [ -z "$SONAR_INSTANCE" ]; then
echo "REMEMBER TO SET THE SONAR INSTANCE, FOOL!"
exit 1
fi
#!/bin/bash
set -e
if ! [ $(id -g) == 0 ];then
echo 'Please run as root.'
exit 1
fi
dnf install tftp-server tftp -y
@WillNilges
WillNilges / wifistatus.sh
Created October 21, 2020 14:43
Get important wpa_supplicant details. Used for development.
clear
wpa_cli STATUS
echo
wpa_cli LIST_NETWORKS
echo
cat /etc/wpa_supplicant.conf
@WillNilges
WillNilges / create-pv.sh
Last active November 11, 2020 14:52
Simple script to set up an nfs pv on OKD4
#!/bin/bash
# Args: $1 - PV name
# $2 - Storage qty
# $3 - NFS server path
# The NFS Share path is hardcoded, so be sure that's where you want it!
mkdir /var/nfsshare/$1
chmod 777 /var/nfsshare/$1
@WillNilges
WillNilges / startover.sh
Created October 29, 2020 23:48
Nuke OKD4 service node and reinstall.
#!/bin/bash
cd /root
rm -rf /var/www/html/okd4/*
rm -rf /root/install_dir/*
cp /root/install-config.yaml install_dir
openshift-install create manifests --dir=install_dir/
openshift-install create ignition-configs --dir=install_dir/
sudo cp -R install_dir/* /var/www/html/okd4/
sudo chown -R apache: /var/www/html/
sudo chmod -R 755 /var/www/html/
@WillNilges
WillNilges / minikube_start.log
Created November 4, 2020 14:41
minikube won't start up and I don't know why.
[wnilges@thingsboard-minikube root]$ minikube start --addons=ingress --alsologtostderr -v=5
I1104 09:31:34.310921 285307 out.go:192] Setting JSON to false
I1104 09:31:34.313813 285307 start.go:103] hostinfo: {"hostname":"thingsboard-minikube","uptime":69441,"bootTime":1604430853,"procs":232,"os":"linux","platform":"fedora","platformFamily":"fedora","platformVersion":"32","kernelVersion":"5.6.6-300.fc32.x86_64","virtualizationSystem":"kvm","virtualizationRole":"guest","hostid":"d22c7683-b11f-45dd-be6f-c4c007e4e92c"}
I1104 09:31:34.314490 285307 start.go:113] virtualization: kvm guest
I1104 09:31:34.314887 285307 out.go:110] 😄 minikube v1.14.2 on Fedora 32 (kvm/amd64)
😄 minikube v1.14.2 on Fedora 32 (kvm/amd64)
I1104 09:31:34.315134 285307 driver.go:288] Setting default libvirt URI to qemu:///system
I1104 09:31:34.315189 285307 global.go:102] Querying for installed drivers using PATH=/home/wnilges/.minikube/bin:/home/wnilges/.local/bin:/home/wnilges/bin:/root/.local/bin:/root/bin:/usr/local/sbin:/usr/l