What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-17 17:17:03
nvm
## Ubuntu curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash ## Set in your .bashrc or .zshrc export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XD... Add solution -
Other 2021-10-17 06:19:10
variadic macros
// variadic_macros.cpp #include <stdio.h> #define EMPTY #define CHECK1(x, ...) if (!(x)) { printf(__VA_ARGS__); } #define CHECK2(x, ...) if ((x)) { printf(__VA_ARGS__); } #define CHECK3(...) { printf(__VA_ARGS__); } #define MACRO(s, ...) printf(s, ... Add solution -
Shell/Bash 2021-10-10 08:03:05
command to transform to asci code
#First way to convert to ascii code printf "\x$(printf %x 65)" #Second way to convert to ascii code set $(printf %x 65) printf "\x$1" #Third way to convert to ascii code awk 'BEGIN{printf "%c", 65}' Add solution -
Shell/Bash 2021-10-08 06:08:03
remote: Permission to asfand005/test.git denied to asfand87.
printf "protocol=https\nhost=github.com\nusername=<me>" | \ git credential-manager-core get # output: protocol=https host=github.com username=<me> password=<oldpassword> Add solution
Best helpers
Daniel Cook
+5
Czlsws
+5
Mick Daw
+5
Shahruz Raad
+5
Horse
+5
Csandreas1
+5
SOUMEN
+5
Vy32
+5
Anugram
+5
ImMathan
+5
Joyo
+5
Huggy Buggy
+5