Skip to content

Instantly share code, notes, and snippets.

View version-control's full-sized avatar

version-control version-control

View GitHub Profile
@version-control
version-control / index.html
Created February 14, 2022 15:34
Survey Form
<main id="main">
<header class="header">
<h1 id="title">pc_SellerForm 💻 </h1>
<p id="description">Rate your PC and get the highest price for it</p>
<hr>
</header>
<form action="" id="survey-form">
<div class="contact">
<div id="data-send" class="form-group">
@version-control
version-control / conditional-dropdown-select.markdown
Created February 14, 2022 15:30
Conditional Dropdown Select
@version-control
version-control / index.html
Created February 14, 2022 15:25
Show/Hide Element Based on Select, jQuery Only
<div class="centered-cover">
<div class="flex-break">
<select class="form">
<option value="red">Red</option>
<option value="green">Green</option>
<option value="blue">Blue</option>
</select>
<!-- the trick here is the select options must have the same value as the their repective element's class -->
<div class="box red">
</div>
@version-control
version-control / update-syncthing-centos
Created January 29, 2022 16:27
update-syncthing-centos
# This is providing of course you have sycnthing running as a service.
# go to https://github.com/syncthing/syncthing/releases/ and get the url of your release
# at the time of writign this is was https://github.com/syncthing/syncthing/releases/download/v1.18.6/syncthing-linux-amd64-v1.18.6.tar.gz
sudo wget URL to package
tar xvf syncthing-linux-amd64*.tar.gz
sudo cp syncthing-linux-amd64-*/syncthing /usr/local/bin/
@version-control
version-control / docker-centos8
Created December 4, 2021 16:18
Install docker centos 8
login as: adrian
adrian@192.168.1.17's password:
The following updates have been applied on 'localhost.localdomain':
================================================================================
Package Arch Version Repository Size
================================================================================
Upgrading:
nss x86_64 3.67.0-7.el8_5 appstream 741 k
nss-softokn x86_64 3.67.0-7.el8_5 appstream 487 k
nss-softokn-freebl x86_64 3.67.0-7.el8_5 appstream 395 k
@version-control
version-control / docker ubuntu live persistant usb
Last active December 18, 2021 08:49
docker ubuntu live persistant usb
# Recorded this as have a persistant external USB drive attached to
# my laptop. When using the live ubunut numerous issues need tweaking
# one being docker service.
#You many get an error like
#error creating aufs mount to /var/lib/docker/aufs/mnt
#/6c1b42ce1a98b1c0f2d2a7f17c196221445f1054566065d4c607e4f1b99930eb-init:
#invalid argument
@version-control
version-control / Gravity Forms Checkbox By Custom Post Type ACF
Last active December 18, 2021 08:50
Gravity Forms Checkbox By Custom Post Type ACF
// This is for a custom post type of risk_Assesment. It grabs a list of the risk assesment titles and
// then creates a hyperlink associated with the cusotm field onedrive.
add_filter( 'gform_pre_render_3', 'populate_posts_custom' );
add_filter( 'gform_pre_validation_3', 'populate_posts_custom' );
add_filter( 'gform_pre_submission_filter_3', 'populate_posts_custom' );
add_filter( 'gform_admin_pre_render_3', 'populate_posts_custom' );
function populate_posts_custom( $form ) {
foreach ( $form['fields'] as $field ) {
@version-control
version-control / Keep RDP Connection Alive
Last active December 18, 2021 08:50
Keep RDP Alive
Go to the location HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server
Create or edit the DWORD value of KeepAliveEnable
Set it to 1.
Save and quit
@version-control
version-control / Enable UDP RDP Windows
Last active February 2, 2023 13:32
Enable UDP RDP Windows
Admin Priv
VM / Remote Machine
Enable-NetFirewallRule -DisplayName "Remote Desktop - User Mode (TCP-In)"
Enable-NetFirewallRule -DisplayName "Remote Desktop - User Mode (UDP-In)"
Laptop - Local Remote User
Set-ItemProperty 'HKLM:/Software/Policies/Microsoft/Windows NT/Terminal Services/Client' 'fClientDisableUDP' 0