Simple and safe random getters to copy-paste
string randomBytes( int $length )
int randomInt ( int $min , int $max )
string randomUuid ( void )
#!/usr/bin/env sh | |
set -e | |
echo "Pulling latest code..." | |
git pull | |
echo "Deleting local branches that were removed in remote..." | |
git fetch -p | |
git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D | |
echo "Remaining local branches:" | |
git branch -vv |
# Your NAS Synology device suddenly lost connection to your Windows Domain Controller, and or intermittent AD connectivity issues. | |
# Symptoms include but not limited to: | |
# - Failing to rejoin after removing the account on the Domain. | |
# - Failing to rejoin without any changes | |
# - Join attempt results in = "Failed to join the Windows domain. Please check your domain and firewall settings and try again" | |
# - Synology is joined, but attempting to connect from domain clients results in "There are no logon servers available to service the logon request" | |
# - This problem happens intermittently, sometimes rebooting the Synology device allows you to rejoin (Not a solution). | |
# - Sometimes rebooting both Synology device and Domain Controller allows you to rejoin (Not a solution). | |
# 1st.) *OPTIONAL* Remove the AD Synology device from Avtice Directory Users/Computers. |
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<title>Enterprisify your Java Class Names! (by Hay Kranen)</title> | |
<style> | |
body { | |
background: white; | |
text-align: center; |