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
| rem Register command | |
| sc create Gitea start= auto binPath= ""D:\Applications\gitea\gitea.exe" web --config "D:\Applications\gitea\my-app.ini"" | |
| rem De-register command | |
| sc delete Gitea |
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
| module.exports = { | |
| devServer: { | |
| proxy: { | |
| '/api': { | |
| target: 'http://localhost:8000/api', | |
| changeOrigin: true, | |
| ws: true, | |
| pathRewrite: { | |
| '^/api': '' | |
| } |
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 | |
| op=$1 | |
| iface=$2 | |
| gateway=$3 | |
| if [ -z "$op" ]; then | |
| op=add | |
| fi | |
| if [ -z "$iface" ]; then |
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 | |
| CLIENT=/usr/local/pulse/PulseClient.sh | |
| CONFIG=~/.sslvpn.conf | |
| function usage() { | |
| echo -e "Usage: `basename $0` <options>\noptions:" | |
| grep "^function" $0 | sed 's/function/ /g' | sed 's/[{()]//g' | |
| } |
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 | |
| CONFIG=~/.route.conf | |
| function usage() { | |
| echo -e "Usage: `basename $0` <options>\noptions:" | |
| grep "^function" $0 | sed 's/function/ /g' | sed 's/[{()]//g' | |
| } | |
| function list() { |
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
| [Desktop Entry] | |
| Name=XMind | |
| Exec=/opt/xmind-8/XMind_amd64/XMind.sh | |
| Type=Application | |
| Terminal=false | |
| Comment=XMind 8 | |
| Icon=/opt/xmind-8/XMind_amd64/XMind.ico |
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
| [Desktop Entry] | |
| Name=Roto3T | |
| Exec=/opt/robo3t/bin/robo3t | |
| Type=Application | |
| Terminal=false | |
| Comment=Robo3T | |
| Icon=/opt/robo3t/bin/robo3t.png |
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
| # reference: https://forums.virtualbox.org/viewtopic.php?f=7&t=29861 | |
| # get guest's IP address | |
| guest_name=full-name-of-vbox | |
| VBoxManage --nologo guestproperty get "${guest_name}" /VirtualBox/GuestInfo/Net/0/V4/IP | |
| VBoxManage --nologo guestproperty get "${guest_name}" /VirtualBox/GuestInfo/Net/1/V4/IP |
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 | |
| # Assuming this script is put in the same folder with rdp.sh | |
| host=<your-host-address> | |
| user=<your-account> | |
| password=<your-pwd> | |
| cwd="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| source $cwd/rdp.sh |
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
| TARGET := $(MAKECMDGOALS) | |
| CXX_FLAGS := -std=c++11 | |
| $(TARGET): force-clean | |
| g++ $(TARGET).cpp $(CXX_FLAGS) -o $(TARGET) && ./$(TARGET) | |
| force-clean: | |
| \rm -f $(TARGET) | |