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
ovs-vsctl add-port ${BRIDGE_NAME} ${PORT_NAME} -- set interface ${PORT_NAME} type=vxlan options:remote_ip=${TARGET_VTEP_IP} options:key=${VXLAN_ID} |
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
ovs-vsctl add-port ${BRIDGE_NAME} ${PORT_NAME} -- set interface ${PORT_NAME} type=internal |
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
ovs-vsctl -f json list interface | jq '[.data[] | {key: .[22], value: .[23]}] | from_entries' |
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/sh | |
# chkconfig: 2345 99 01 | |
# description: SoftEther VPN Client | |
DAEMON=/usr/local/vpnclient/vpnclient | |
LOCK=/var/lock/subsys/vpnclient | |
test -x $DAEMON || exit 0 | |
case "$1" in | |
start) | |
$DAEMON start | |
touch $LOCK |
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
# In remote client side | |
# Shoud set to allow Access Database | |
ssh -p 29418 ${gerrit_admin_username}@${gerrit_host} gerrit gsql -c "UPDATE CHANGES SET DEST_PROJECT_NAME='NEW NAME' WHERE DEST_PROJECT_NAME='OLD NAME" | |
# In gerrit server side | |
# In gerrit site dir | |
mv "git/OLD NAME.git" "git/NEW NAME.git" | |
service gerrit2 stop |
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
virsh -c qemu+ssh://${username}@${hostname}:${port_number}/system |
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
gitlabcurl groups | jq ".[] | select(.name == \"${GROUP_NAME}\") | .id" |
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
function gitlabcurl() { | |
TOKEN=$GITLAB_TOKEN | |
URL=$GITLAB_URL | |
if [ -z $TOKEN ] | |
then | |
echo GITLAB_TOKEN is required in env | |
return 1 | |
fi | |
if [ -z $URL ] |
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
q |
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
ctrl + q |