Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Paul pbuckley4192

🏠
Working from home
View GitHub Profile
View Eircom WEP Password Cracker
package paul.tools.eircomRecovery;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Formatter;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
View rat7Linux.sh
#The mouse will suck on linux because of the programmable buttons.
#This script will change the button-delegation so that the mouse doesn't stuck.
#@link https://community.linuxmint.com/hardware/view/10217
#sudo mkdir /etc/X11/xorg.conf.d
sudo rm /etc/X11/xorg.conf.d/910-rat.conf
# add the following to the file
echo "Section \"InputClass\"" >> /etc/X11/xorg.conf.d/910-rat.conf
View InstallDockerPi4.md

So I had problems install Docker on an RPI 4, using the usual routes caused hassle and issues, so I went on a mission to fix it!

Here are the steps:

It turns out the installed iptables is kind of broken, so it needs to be re-installed correctly.

sudo apt purge iptables
sudo apt install iptables -y

Once thats complete, we need to reboot the machine to load all the kernal modules.

View is4GBRPIAvailableYet.py
import requests
import json
import subprocess
r = requests.get('https://thepihut.com/products/raspberry-pi-4-model-b.js').json()
count = r["variants"][2]["inventory_quantity"]
available = r["variants"][2]["available"]
print("RPI Available:\t"+ str(count))
def sendmessage(message):
View gist:9c95b602b9675b9c7b3f8ed98e281870
- id: '1552465990326'
alias: Car Location
trigger:
- platform: mqtt
topic: homeassistant/sensor/android_pauls_phone_hfp/state
condition:
- condition: template
value_template: '{{ trigger.payload_json[''last_device_mac''] == ''10:08:C1:XX:XX:XX''
}}'
- condition: template
View log_dep_track
12:33:10.271 ERROR [ScanUploadProcessingTask] Error while processing scan result
java.lang.NullPointerException: null
at java.util.regex.Matcher.getTextLength(Matcher.java:1283)
at java.util.regex.Matcher.reset(Matcher.java:309)
at java.util.regex.Matcher.<init>(Matcher.java:229)
at java.util.regex.Pattern.matcher(Pattern.java:1093)
at org.dependencytrack.parser.dependencycheck.resolver.PackageURLResolver.resolve(PackageURLResolver.java:54)
at org.dependencytrack.tasks.ScanUploadProcessingTask.resolveMetadata(ScanUploadProcessingTask.java:169)
at org.dependencytrack.tasks.ScanUploadProcessingTask.processDependency(ScanUploadProcessingTask.java:113)
at org.dependencytrack.tasks.ScanUploadProcessingTask.processDependency(ScanUploadProcessingTask.java:162)
@pbuckley4192
pbuckley4192 / raw2jpg.sh
Created Mar 24, 2018 — forked from h0tw1r3/raw2jpg.sh
Parallel recursive RAW to JPEG + meta converter shell script
View raw2jpg.sh
!/bin/env bash
#
# Parallel recursive RAW to JPEG + meta converter
#
# Output into relative JPEG directory
#
# Requires: dcraw, cjpeg, exiv2
# any argument means verbose...
if [ ${#} -ne 0 ]; then
View Remove 3D Objects folder Windows 10.txt
Delete Key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}
If 64-Bit Windows, also delete:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}
@pbuckley4192
pbuckley4192 / mkvtomp4.sh
Last active Oct 2, 2017
Convert MKV to MP4
View mkvtomp4.sh
sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install ffmpeg
sudo apt-get install frei0r-plugins
for i in *mkv; do ffmpeg -i "$i" -vcodec copy -acodec copy "${i%.mkv}.mp4"; done
@pbuckley4192
pbuckley4192 / time.sh
Created Dec 6, 2016
Set Server time when there is no NTP available
View time.sh
sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"