This file contains hidden or 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 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 |
This file contains hidden or 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 | |
# 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)" |
This file contains hidden or 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
REGEDIT4 | |
@ This sets your RDP port to "55555". | |
@ The value is just hex dword | |
; @ECHO OFF | |
; CLS | |
; REGEDIT.EXE /S "%~f0" | |
; EXIT |
This file contains hidden or 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 | |
gsettings set org.gnome.desktop.wm.preferences resize-with-right-button true |
This file contains hidden or 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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation] “RealTimeIsUniversal”=dword:00000001 |
This file contains hidden or 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 | |
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; |
This file contains hidden or 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
# /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> |
OlderNewer