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
const queryString = require('query-string'); | |
exports.endpoint = function (request, response) { | |
let queryStart = -1; | |
let url = request.url; | |
let parameters; | |
if ((queryStart = request.url.indexOf('?')) > -1) { | |
url = url.substring(0, queryStart + 1); |
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
openssl pkcs12 -export -out output.pkcs12 -in input.pem |
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
Public Sub CleanUpAll() | |
Dim st As Outlook.Store | |
Dim myRules As Outlook.Rules | |
Dim rl As Outlook.Rule | |
Dim ruleList As String | |
Set st = Application.Session.DefaultStore | |
Set myRules = st.GetRules | |
For Each rl In myRules |
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
# Convert 4096-bit OpenSSH private key to RSA format | |
# Input -----BEGIN OPENSSH PRIVATE KEY----- b3BlbnNz...QECAwQ= -----END OPENSSH PRIVATE KEY----- | |
# Output -----BEGIN RSA PRIVATE KEY----- MIICXAI...OsuOpw= -----END RSA PRIVATE KEY----- | |
ssh-keygen -p -m pem -f private-key-file-name | |
# Convert given pub file to PEM format | |
# Input ssh-rsa AAAAB3NzaC1yc2EAAAADAQA....== alias@domain.com | |
# Ouput -----BEGIN RSA PUBLIC KEY----- MIGJAoG...gMBAAE= -----END RSA PUBLIC KEY----- | |
ssh-keygen -f public-key.pub -e -m pem |
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
# OS common | |
alias l='ls -l --color=auto' | |
alias ll='ls -al --color=auto' | |
# Git | |
alias gc='git commit' | |
alias gcm='git commit -m' | |
alias gco='git checkout' | |
alias gsw='git switch' | |
alias gsm='BRANCH=$(gdef) && git switch $BRANCH' |
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
./start-docker.sh |
sudo apt install fonts-noto-color-emoji
🔗 Reference: https://gist.github.com/arafathusayn/3d384adfbbdfe0b6a12868e9046e9a23
Follow the instructions below to force all files to be checked out as LF, especially in Windows.
- Create
.gitattributes
file in the root directory of the project, if one does not exist. - Add the following line to the file
* text=auto eol=lf
- Run the following command to remove all Git caches (mind the trailing
.
, it indicates current path)
OlderNewer