Skip to content

Instantly share code, notes, and snippets.

View daxxog's full-sized avatar

David Volm daxxog

View GitHub Profile
@daxxog
daxxog / fix-arch-glibc
Created March 6, 2021 14:31
fix archlinux docker glibc
curl -fsSL "https://repo.archlinuxcn.org/x86_64/glibc-linux4-2.33-4-x86_64.pkg.tar.zst" | bsdtar -C / -xvf -
@daxxog
daxxog / hamachi-installer-armhf.sh
Created November 21, 2020 17:46
Install Hamachi on Rasperry PI 4 Ubuntu 20.04 32 bit armhf
#!/bin/bash
#hamachi installer script
#armhf=32 bit ARM
#tested on Ubuntu 20.04
INSTALLER_PACKAGE=logmein-hamachi_2.1.0.203-1_armhf.deb
if [ ! -f "${INSTALLER_PACKAGE}" ]; then
wget https://www.vpn.net/installers/${INSTALLER_PACKAGE}
fi
@daxxog
daxxog / fgitignore.sh
Created October 23, 2012 14:44
fix .gitignore
#from: http://stackoverflow.com/a/1139797
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
# curl -L tinyurl.com/recoverymodehelp
csrutil
csrutil disable
csrutil enable
#!/bin/bash
#~/dev/751check.sh
#thread 2 (wait loop) (as sudo)
echo checking for clam 751 bug..
nohup $HOME/dev/751finder.sh >> ${HOME}/.clam/751debug.log &
rm /tmp/kill751
while true; do
if [[ $(find /tmp/test751 -type f -size +128c 2>/dev/null) ]]; then
sudo /etc/init.d/clamd stop
@daxxog
daxxog / no-ip-service-install.sh
Created August 8, 2020 16:11
install no-ip noip noip2 service
#!/bin/bash
# first install noip2: https://www.noip.com/support/knowledgebase/installing-the-linux-dynamic-update-client/
# then, run this as root (su)
wget https://gist.githubusercontent.com/NathanGiesbrecht/da6560f21e55178bcea7fdd9ca2e39b5/raw/b5594a39e908548f4319294553497d2db3053e0a/noip2.service
mv noip2.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable noip2
sudo systemctl start noip2
https://www.youtube.com/playlist?list=PLn3ukorJv4vs_eSJUQPxBRaDS8PrVmIri
https://www.youtube.com/playlist?list=PLGKIkAXk1OeSRZ7_xhz_TvUgudrL8_yJt
https://www.youtube.com/playlist?list=PLaGRTLvEbVzybijtYZRy4EoGrx6Bq_xOG
@daxxog
daxxog / gitea-quick-sqlite.sh
Last active April 23, 2020 17:18
Install gitea quick on ubuntu with fast defaults
#!/bin/bash
#curl -L https://gist.githubusercontent.com/daxxog/880439a0d6a943bae8d8b1c88af60cc4/raw/gitea-quick-sqlite.sh | sh
GITEA_RELEASE=1.11.4
sudo apt install -y git
cd ~
mkdir .gitea
cd .gitea
mkdir gitea-${GITEA_RELEASE}
cd gitea-${GITEA_RELEASE}
#!/bin/sh
#curl -L https://tinyurl.com/dd-benchmark-sh | sh
echo "dd-benchmark.sh" > disk-benchmark.log.out
echo $(date) >> disk-benchmark.log.out
echo "-----------------------------" >> disk-benchmark.log.out
echo >> disk-benchmark.log.out
echo "-----Testing write speed-----" >> disk-benchmark.log.out
dd if=/dev/zero bs=1024k of=tstfile count=1024 2>> disk-benchmark.log.out
@daxxog
daxxog / intel-mac-nvram-fix.sh
Created March 19, 2020 12:28
IntelAccelerator prodding blockFenceInterrupt
#!/bin/bash
nvram 8be4df61-93ca-11d2-aa0d-00e098032b8c:epid_provisioned=%01%00%00%00