Skip to content

Instantly share code, notes, and snippets.

Avatar

Daryl Tucker daryltucker

  • Neo-Retro Group
  • Salem, Or
View GitHub Profile
View MTP_Transfer_Issues.mkd

Error

2021/03/21 13:07:07 FUSE mounted
2021/03/21 13:07:14 0 bytes in 4.118971ms: 0 mb/s
2021/03/21 13:07:30 fatal error LIBUSB_ERROR_TIMEOUT; closing connection.
2021/03/21 13:07:38 AndroidSendPartialObject failed: LIBUSB_ERROR_TIMEOUT
2021/03/21 13:07:38 AndroidSendPartialObject failed: mtp: cannot run operation ANDROID_SEND_PARTIAL_OBJECT, device is not open
2021/03/21 13:07:38 327680 bytes in 24.204842524s: 0 mb/s
2021/03/21 13:07:38 AndroidEndEditObject failed: mtp: cannot run operation ANDROID_END_EDIT_OBJECT, device is not open
@daryltucker
daryltucker / filterwin2k.txt
Created Mar 15, 2021
filterwin2k filters out SRV records
View filterwin2k.txt
Just a note that filterwin2k of dnsmasq nulls out SRV requests.
@daryltucker
daryltucker / LetsEncrypt_FreeIPA_Certificate_Chaining.sh
Last active Feb 26, 2021
Add LetsEncrypt chains to FreeIPA for transition to proper CA (Feb 2021)
View LetsEncrypt_FreeIPA_Certificate_Chaining.sh
# Add LetsEncrypt chains to FreeIPA for transition to proper CA (Feb 2021)
# > The full certificate chain is not present in /etc/letsencrypt/live/${DOMAIN}/privkey.pem ...
# > The ipa-server-certinstall command failed.
# Grab Certificates from FreeIPA ( https://letsencrypt.org/certificates/ )
cd /tmp/
wget https://letsencrypt.org/certs/isrgrootx1.pem
wget https://letsencrypt.org/certs/letsencryptauthorityx3.pem
wget https://letsencrypt.org/certs/trustid-x3-root.pem
@daryltucker
daryltucker / dmesg_restrict.mkd
Created Dec 31, 2019
Allow non-root User to access syslog/dmesg
View dmesg_restrict.mkd
$ dmesg
dmesg: read kernel buffer failed: Operation not permitted
$ sudo sysctl -w kernel.dmesg_restrict=0
$ dmesg
@daryltucker
daryltucker / gist:ae3b42251f3da7bcd311f0554eaf3738
Created Dec 12, 2019 — forked from andrewlkho/gist:e9a8c996c4bc1df23cd2
How to secure debian with two factor authentication (TOTP/HOTP)
View gist:ae3b42251f3da7bcd311f0554eaf3738

First, install the necesssary packages:

% apt-get install libpam-oath oathtool

Generate a key and write it to /etc/users.oath (NB the key will be in hexadecimal; if you are using Authy you will want to convert it to BASE32):

% KEY=$( head -c 1024 /dev/urandom | openssl sha1 | awk '{ print $2 }' )
% echo "HOTP/T30/6 andrewlkho - ${KEY}" >> /etc/security/users.oath
% chmod 600 /etc/users.oath
@daryltucker
daryltucker / config
Created Oct 15, 2019
Cycle through i3wm Workspaces on active Monitor only
View config
#bindsym $mod+Tab workspace next
#bindsym $mod+Shift+Tab workspace prev
bindsym $mod+Tab workspace next_on_output
bindsym $mod+Shift+Tab workspace prev_on_output
@daryltucker
daryltucker / glados.sh
Created Aug 11, 2019 — forked from ArtBIT/glados.sh
GLaDOS eSpeak
View glados.sh
random_pitch() {
local delta=${1:-50}
local value=$(( ($RANDOM % $delta) - $delta/2 ))
echo "+${value}" | sed 's/+-/-/'
}
glados() {
local pitch=70
local speed=180
local lang=en
@daryltucker
daryltucker / focus_window_under_mouse.sh
Created Jul 27, 2019
Focus the Window currently under the Mouse Cursor
View focus_window_under_mouse.sh
# Focus the Window currently under the Mouse Cursor
xdotool windowfocus $(xdotool getmouselocation --shell | grep "WINDOW=" | sed 's/WINDOW=//g')
@daryltucker
daryltucker / faceoff_usb_hid.txt
Last active Jul 24, 2019
FaceOff Wired Pro Controller USB Descriptors
View faceoff_usb_hid.txt
Usage Page (Desktop), ; Generic desktop controls (01h)
Usage (Gamepad), ; Gamepad (05h, application collection)
Collection (Application),
Logical Minimum (0),
Logical Maximum (1),
Physical Minimum (0),
Physical Maximum (1),
Report Size (1),
Report Count (14),
Usage Page (Button), ; Button (09h)
@daryltucker
daryltucker / pokken_usb_hid.txt
Created Jul 24, 2019
Pokken Controller USB Descriptors
View pokken_usb_hid.txt
Usage Page (Desktop), ; Generic desktop controls (01h)
Usage (Gamepad), ; Gamepad (05h, application collection)
Collection (Application),
Logical Minimum (0),
Logical Maximum (1),
Physical Minimum (0),
Physical Maximum (1),
Report Size (1),
Report Count (13),
Usage Page (Button), ; Button (09h)