Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
Fixed #issue
Please delete options that are not relevant.
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
Fixed #issue
Please delete options that are not relevant.
Definition (Code Smells) Code smells are common code anti-patterns which could and should be refactored.
This doc is summarized from Martin Flower's book Refactoring (the 2nd Edition).
Go to a section of code smell, and the refactoring techniques to that smell are written in Pascal Case
under the Solution section. Refer to the book's catalog to get detailed examples and explainations for each refactoring technique.
curl -O https://raw.githubusercontent.com/angristan/openvpn-install/master/openvpn-install.sh
chmod +x openvpn-install.sh
./openvpn-install.sh
Select add a client, and give it any name you like.
A your_client_name.ovpn
will be generated in the home folder.
Read more here: https://github.com/angristan/openvpn-install#usage
Motivation: to ssh to the VM without always figuring out what the VM's current IP is.
Windows' default switch dynamically assigns IP address to Hyper V Vms whenever Windows restarts.
To assign a static IP address to a VM, we need to set up an Internal Switch.
Steps:
const float femaleMaleRatio = 95.0/65; | |
const int maleLight = 3; // PIN | |
const int maleBrightness = 190; // brightness for male light. value should be in [0, 255] | |
const int maleInterval = 500; // after how many ms the male light should be switched on/off | |
const int femaleLight = 11; // PIN | |
const int femaleBrightness = maleBrightness * femaleMaleRatio; | |
const int femaleInterval = maleInterval * femaleMaleRatio; |
#!/bin/bash | |
set -euxo pipefail | |
VMWARE_VERSION=$(vmplayer -v 2>/dev/null | grep VMware | awk '{ print $3}') | |
TMP_DIR="/tmp/vmware_update" | |
mkdir -p $TMP_DIR | |
cd $TMP_DIR | |
wget "https://github.com/mkubecek/vmware-host-modules/archive/workstation-$VMWARE_VERSION.tar.gz" \ |
Rules: https://cloud.google.com/vpc/docs/firewalls#more_rules_default_vpc
Add them with gcloud
:
gcloud compute firewall-rules create default-allow-internal --allow tcp:0-65535,udp:0-65535,icmp \
--source-ranges="10.128.0.0/9" --priority=65534
gcloud compute firewall-rules create default-allow-ssh --allow tcp:22 --priority=65534
gcloud compute firewall-rules create default-allow-rdp --allow tcp:3389 --priority=65534
gcloud compute firewall-rules create default-allow-icmp --allow icmp --priority=65534
$HOME/Application/Zotero
here).desktop
file
at $HOME/.local/share/applications
[Desktop Entry]
Name=Zotero
Icon=$HOME/Applications/Zotero/chrome/icons/default/default256.png
Comment=Open-source reference manager (standalone version)
Exec=$HOME/Applications/Zotero/zotero