A { Serial (RS-232):
The photo shows the pin numbers in the plastic
5 | 4 | 3 | 2 | 1 |
# /etc/systemd/system/rssh.service | |
[Unit] | |
Description=Reverse SSH Service | |
ConditionPathExists=|/usr/bin | |
After=network.target | |
[Service] | |
User=<USERNAME HERE> | |
ExecStart=/usr/bin/ssh -NTC -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes -o StrictHostKeyChecking=no -i /home/<USERNAME>/.ssh/h -R <PORT YOU WANT OPEN ON REMOTE MACHINE>:localhost:<LOCAL SSH PORT> -l <REMOTE USERNAME> -N <REMOTE HOST> -p <REMOTE LISTENING PORT> |
#!/usr/bin/env bash | |
SSID="sample\ network" # Spaces should be escaped with the backslash character "\". | |
PASSWORD="password would go here" | |
SECURITY_TYPE="WPA2" # Allowed types are "WPA", "WPA2", and "WEP"; though there may be more. | |
COLOR="9f8f68" # This is the hex value of the color you wish to generate | |
PLAINTEXT="Network Name: $SSID\nPassword: $PASSWORD\nSecurity type: $SECURITY_TYPE\n" | |
command_exists () { | |
type "$1" &> /dev/null; |
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation] “RealTimeIsUniversal”=dword:00000001 |
#!/usr/bin/env bash | |
gsettings set org.gnome.desktop.wm.preferences resize-with-right-button true |
REGEDIT4 | |
@ This sets your RDP port to "55555". | |
@ The value is just hex dword | |
; @ECHO OFF | |
; CLS | |
; REGEDIT.EXE /S "%~f0" | |
; EXIT |
#!/bin/bash | |
# Syncs s3 images back and forth for the uploads dir | |
# | |
# Manual commands: | |
# aws s3 sync s3://bucket-name/uploads/ . #Remote bucket to local | |
# aws s3 sync . s3://bucket-name/uploads/ #Local to remote bucket | |
usage=" | |
Usage: | |
$0 (get|put)" |
#!/usr/bin/env bash | |
# This inserts a cronjob at the top of the hour to remove the | |
# license nag from proxmox. The command alone is: | |
# sed -i "s/data.status !== 'Active'/false/g" /usr/share/pve-manager/js/pvemanagerlib.js | |
crontab -l > tmpcron | |
echo "0 * * * * sed -i "s/data.status !== 'Active'/false/g" /usr/share/pve-manager/js/pvemanagerlib.js" >> tmpcron | |
crontab tmpcron | |
rm tmpcron |
A { Serial (RS-232):
The photo shows the pin numbers in the plastic
5 | 4 | 3 | 2 | 1 |
#!/bin/bash | |
# Usage: metacheck.sh google.com google.com/mail or will loop | |
# over internally defined curenturls when run with no arguments | |
CURRENTURLS=( | |
dev.bravepeople.co/ | |
dev.bravepeople.co/work/ | |
dev.bravepeople.co/process/ | |
dev.bravepeople.co/culture/ | |
dev.bravepeople.co/hire-us/ |
:: You're gonna need convert (imagemagick) and ghostscript for windows | |
:: Assumes pdfs are in a folder below this script called pdfs\ and will throw jpgs into jpgs\ | |
for %%f in (pdfs\*.pdf) do ( | |
convert %%f jpgs\%%~nf.jpg | |
) |