Skip to content

Instantly share code, notes, and snippets.

View woodRock's full-sized avatar
🫖
Activate zen mode (CTRL + K, Z)

Jesse Wood woodRock

🫖
Activate zen mode (CTRL + K, Z)
View GitHub Profile
@woodRock
woodRock / dim.md
Last active September 10, 2019 10:09
Bash script to dim Redshift to a set temperature on Linux
  1. Write the dim file to the bin (you will need super user permissions)
sudo nano /usr/bin/dim
  1. Copy and paste the following code into the file
TEMP=1900
redshift -P -O $TEMP
@woodRock
woodRock / aircrack-wpa-wpa2-wifi-crack.md
Last active July 31, 2019 04:47
How to crack WPA/WPA2 using Aircrack. Your driver name will be different, for this one I will use "wlp1s0"
  1. Start the wireless interface in monitor mode
airmon-ng
  1. Disable the driver
 airmon-ng stop wlp1s0 
@woodRock
woodRock / thefuck-install.md
Last active July 30, 2019 07:21
Autocomplete for linux terminal

Pre-requisites: PIP, Python

  1. Install the package thefuck
sudo apt install thefuck
  1. Add an alias for fuck to your shell
thefuck -a >> ~/.bashrc
@woodRock
woodRock / enable-ubunutu-shell-windows.md
Created July 30, 2019 04:42
The following script enables the Ubuntu shell to be used on Windows 10
  1. Open Powershell as Administrator
  2. Run the following script:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
  1. Restart your computer for changes to take effect
@woodRock
woodRock / remove-bing-from-edge.md
Last active July 30, 2019 04:30
How to make Google the Default Search Engine on Microsoft Edge
@woodRock
woodRock / hacknet-linux-fix.md
Created July 25, 2019 16:31
How to run the Hacknet game on linux. (Magic number is wrong: 542 Error)

The following command fixes the error

export TERM=xterm

This can be used to test if it worked.

echo $TERM
@woodRock
woodRock / clean-linux-efi-usb.md
Created July 23, 2019 04:01
Clean a usb with a Linux ISO flashed on it using diskpart on Windows

Using cmd type the following:

diskpart

Diskpart will open, in this terminal type:

# This will show all the drives on the computer
list disk

# Select the disk with the same storage capacity as the usb
@woodRock
woodRock / cowsay-fortune.sh
Created July 23, 2019 01:09
A simple script to add to your bash script to make things more interesting.
# Make sure the "cowsay" and "fortune" packages
# are installed on your machine
# -o => Makes it adult humour
# -f => Modifier for the cowsay animal
# tux => Linux Logo
fortune -o | cowsay -f tux
@woodRock
woodRock / touch-click-fix-sp3.sh
Last active July 23, 2019 04:02
Allows for touch clicking on the Manjaro Linux OS
# Force the synaptics driver
# Run the following code as root
ln -s /usr/share/X11/xorg.conf.d/70-synaptics.conf /etc/X11/xorg.conf.d/
@woodRock
woodRock / wifi-fix-sp3.sh
Last active July 23, 2019 04:02
Surface 3 Pro WiFi Fix Arch Linux
# Paste the following into:
# /etc/NetworkManager/NetworkManager.conf
# To fix the wifi on Arch Linux
[connection]
wifi.powersave=2 # 2=disable
wifi.mac-address-randomization=1 # 1=disable
wifi.cloned-mac-address=permanent
[device]