This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDiYWt/bASTO/OR9c6MN4JMjlpTFsbuV+Vn0HfiR/XxRDTH52ay/KdlK0DdbkENVv66cWolZ/J/e71UJwGVTnKwOfYn1Hu4fh3RvLWDPJ/F0eaCvBEmrqxd+KxtWH/0io1J9sSjfAA2zTEGaR6NYf1Kz1lJpYROy7IbfHCpi7UGBbw9DOirPBG8GIH6y5QbZrLvV+CwA+GcQnGy2VU/H8GhQVYFwduhikXerEW9OJeX4USKjea7M1MaW//vPeRb5wQ3rZpJHwLryO0NpkhAU7V6kkaTyPBF95SlP4vE7tI5t/x0Ve/NQ3i4DOkcrQMX56jR4kXLBBF9wSavEcy1vB7tpxL+f/Tpm7IcQ+RwxWAYoNDzFEsU+Fhk5UwKYlTWKEGbSpISFObS72Bp11TgmdJydC5Ns2804DHo/4NlnW4Dg/7Ck0ruxGcCbKNffGPbcBOQRsLMfzcwAIenJoUNoHcchULBeDVcF83X8tobSTx0YDtYFlZKrNlVqHRXt8pZCKLIjAr+Lh1qkad7B1oP0WLokaqMnE0XGR3fzGgPl5kuvKpTLQIA2IbYTg0iW8nGBjq37G7kN/orGyyxcDqr1tWt7jzOwzSJTO4+B84QNyN9CSlSjxKU1sG0NbLdM5mWrAgTlc2EJof9S535oCVNqPlCJ0IT36DhS+6o6aFqMcQzvQ== jack@f4der.local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# path to the 'doing' file, if this doesn't exist one will be created (see below) | |
DOING_FILE="~/Documents/doing.txt" | |
# the entry prefix, a tab and hyphen, so markdown parsers can render it | |
PREFIX=" -" | |
# date now as yyyy-MM-dd HH:mm - e.g. 2019-05-25 21:56 | |
now=`date '+%F %H:%M'` | |
task="$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
source: | |
https://www.codeproject.com/Articles/328761/NTLM-Hash-Generator | |
*/ | |
public static string Ntlm(string key) | |
{ | |
const uint INIT_A = 0x67452301; | |
const uint INIT_B = 0xefcdab89; | |
const uint INIT_C = 0x98badcfe; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DNS\Parameters" /v "TcpReceivePacketSize" /t REG_DWORD /d 0xFF00 /f && net stop DNS && net start DNS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add to dhcpd.conf | |
# make sure the dhcpd user has permission to execute the script | |
on commit { | |
set ClientName = pick-first-value(option fqdn.hostname, option host-name, "unknown-hostname"); | |
set ClientIp = binary-to-ascii(10, 8, ".", leased-address); | |
set ClientMac = binary-to-ascii(16, 8, ":", substring(hardware, 1, 6)); | |
execute("/opt/dhcpd-hooks/dhcp_event_hook.py", "commit", ClientName, ClientIp, ClientMac); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# This script will extend the logical volume | |
# To use all the free space. | |
# Run this after increasing the size of the virtual disk. | |
# NOTE, run as sudo. | |
# Run `pvdisplay` to check your device numbers match up | |
# /dev/sda3 & ubuntu-vg & ubuntu-lv are the defaults | |
# if you chose LVM when installing Ubuntu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# A script that will always install the latest docker-compose. | |
# Execute as root. | |
# | |
# See official docs for more | |
# https://docs.docker.com/compose/install/ | |
# | |
curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
chmod +x /usr/local/bin/docker-compose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# .git/hooks/commit-msg is run when the -m flag is used | |
# | |
# Will extract Jira style ticket numbers from branch names e.g. | |
# 'AB-123-my-cool-branch' --> '[AB-123]' | |
# 'feature/XZ-321-my-cool-branch' --> '[XZ-321]' | |
# | |
TICKET=[$(git rev-parse --abbrev-ref HEAD | grep -Eo '^(\w+/)?(\w+[-_])?[0-9]+' | grep -Eo '(\w+[-])?[0-9]+' | tr "[:lower:]" "[:upper:]")] | |
if [[ $TICKET == "[]";then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Path for the public phonebook. Used as this is an all users connection. | |
# Change $env:PROGRAMDATA to $env:APPDATA if not creating an AllUserConnection. | |
$PbkPath = Join-Path $env:PROGRAMDATA 'Microsoft\Network\Connections\Pbk\rasphone.Pbk' | |
# Update these variables with the actual VPN name, address, and PSK. | |
$ConnectionName = 'ArrayString0',"ArrayString1", "ArracyString3","ArracyString4" | |
$ServerAddress = 'meraki-dynamic-ip-address-dynamic-m.com','meraki-dynamic-ip-address-dynamic-m.com','meraki-dynamic-ip-address-dynamic-m.com','meraki-dynamic-ip-address-dynamic-m.com' | |
$PresharedKey = 'PreSharedKeySecret' | |
# If no VPNs, rasphone.Pbk may not already exist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from astroid.nodes import Call, ClassDef, FunctionDef, Name, node_classes | |
from pylint.checkers import BaseChecker | |
from pylint.interfaces import IAstroidChecker | |
def register(linter) -> None: | |
linter.register_checker(DeprecatedChecker(linter)) | |
class DeprecatedChecker(BaseChecker): |