Skip to content

Instantly share code, notes, and snippets.

View XnipS's full-sized avatar

XnipS XnipS

  • Australia
  • 15:21 (UTC +10:00)
View GitHub Profile
*.html linguist-detectable=false
# To ignore html files etc.
@XnipS
XnipS / NetworkManager.conf
Created January 17, 2023 02:21
Fix internet speeds for Surface Pro 4 linux: /etc/NetworkManager/NetworkManager.conf -> https://www.reddit.com/r/SurfaceLinux/comments/a0hzea/comment/eajwb3k/?utm_source=share&utm_medium=web2x&context=3
[main]
plugins=ifupdown,keyfile,ofono
dns=dnsmasq
dhcp=dhclient
[ifupdown]
managed=true
[device]
wifi.scan-rand-mac-address=false
@XnipS
XnipS / cstorm.sh
Last active April 21, 2023 11:10
Command line for openVPN and DNS leak prevention.
#!/bin/bash
#set -x
if [ "$EUID" -ne 0 ]
then echo "This script requires root."
exit
fi
while true; do
@XnipS
XnipS / incrementDiscord.sh
Last active February 14, 2024 21:53
Edit Discord's version file to bypass auto updater.
#!/bin/bash
#set -x
if [ "$EUID" -ne 0 ]
then echo "This script requires root."
exit
fi
# Clear
@XnipS
XnipS / pacstrap.sh
Last active December 11, 2022 23:00
Simple pacstrap I use every install...
#!/bin/bash
pacstrap -K /mnt base linux linux-firmware networkmanager vim bash-completion man-db grub openssh efibootmgr sudo
# Some wifi cards don't work without specific packages such as linux-firmware-marvell
@XnipS
XnipS / UnityEditorShortcut.desktop
Created November 24, 2022 07:40
Shortcut to launch Unity projects without Hub
[Desktop Entry]
Name=Strike Warfare Editor
Comment=Shortcut for launching Strike Warfare
Exec=/home/$USERNAME$/Unity/Hub/Editor/$EDITORVERSION$/Editor/Unity -projectPath $PROJECTPATH$
Icon=$ICON$
Terminal=false
Type=Application
Categories=Development;
@XnipS
XnipS / run.sh
Created November 23, 2022 09:18
Runs Unity game through wine whilst showing both wine and Unity log files.
#!/bin/bash
wine StrikeWarfare.exe -logfile ./output.log &
konsole -e tail -f ./output.log && exit
@XnipS
XnipS / StartVPN.sh
Created November 10, 2022 23:25
Bash script to enable/disable swap vpn and dns server.
#!/bin/bash
echo Welcome!
echo Starting VPN...
notify-send "VPN Enabled!"
if sudo openvpn --config $VPN Script Location$ --script-security 2 --up ./enablevpndns.sh ; then
echo "Vpn Succeeded!"
notify-send "VPN Disabled!"
else
echo "Vpn Failed!"
notify-send "VPN Failed!"
@XnipS
XnipS / FormulaSheetTemplate.tex
Created November 9, 2022 01:04
Formula Sheet Template for Latex (Kile)
\documentclass[12pt,a4paper]{article}
\usepackage{multicol}
\usepackage{calc}
\usepackage{geometry}
\usepackage{amsmath,amsthm,amsfonts,amssymb}
\usepackage{color,graphicx,gensymb}
% Add metadata to pdf
\pdfinfo{
/Title (CHEE0000-MasterReferenceSheet.pdf)
@XnipS
XnipS / shadowplay_savereplay.sh
Created November 1, 2022 01:31
The file used to by shortcut to save replay.
#!/bin/bash
killall -SIGUSR1 gpu-screen-recorder
notify-send "Last 2 mins saved!"