find . -name "*.sh" -exec chmod u+x {} \;
This file contains 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
alias netls='sudo netstat -plant | grep LISTEN' | |
alias netls4='sudo netstat -4 -plant | grep LISTEN' | |
alias netls6='sudo netstat -6 -plant | grep LISTEN' | |
alias netlsc='sudo netstat -plant | grep -v LISTEN' | |
alias netlsc4='sudo netstat -4 -plant | grep -v LISTEN' | |
alias netlsc6='sudo netstat -6 -plant | grep -v LISTEN' | |
alias netlsa='sudo netstat -plant' |
This file contains 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
git lfs clone --recursive [repo].git | |
git submodule foreach git lfs pull |
This file contains 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
@echo off | |
set HOME=%HOMEDRIVE%%HOMEPATH% | |
@rem Utilites | |
set PATH=%PATH%;C:\Program Files\WinRAR | |
set PATH=%PATH%;C:\Program Files (x86)\Microsoft VS Code\bin | |
set PATH=%PATH%;%HOME%\apps\cmake\3.6.0-win64-x64\bin | |
set PATH=%PATH%;%HOME%\apps\bin |
This file contains 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
#include <iostream> | |
#include <string> | |
#include <optional> | |
int main() | |
{ | |
std::cout << "sizeof bool is " << sizeof(bool) << '\n'; | |
std::cout << "sizeof std::optional<bool> is " << sizeof(std::optional<bool>) << "\n\n"; | |
std::cout << "sizeof short is " << sizeof(short) << '\n'; |
This file contains 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 | |
# | |
# Usage: | |
# | |
# 1. Set SECURITY_GROUP and KEY_NAME to your value | |
# 2. source ec2-ping-test.sh | |
# 3. launch_all_instances | |
# 4. terminate_all_instances | |
# |
For more details, see certmgr.
Note for commands to work, certificate must be in DER format.
Valid certificate store names are:
- Trust (ROOT CA)
- CA (Intermediate CA)
See Configuring NGINX to accept the PROXY Protocol - NGINX
upstream wsserver {
server 127.0.0.1:9000;
}