What do you want to save?
Add Code snippet
New code examples
-
Assembly 2022-03-22 20:55:01
printf format specifiers c
/* printf example */ #include <stdio.h> int main() { printf ("Characters: %c %c \n", 'a', 65); printf ("Decimals: %d %ld\n", 1977, 650000L); printf ("Preceding with blanks: %10d \n", 1977); printf ("Pr... Add solution -
C++ 2022-02-16 02:30:33
void *malloc( size_t size ) { //do your stuf here return ::malloc(size); }
/* malloc example: random string generator*/ #include <stdio.h> /* printf, scanf, NULL */ #include <stdlib.h> /* malloc, free, rand */ int main () { int i,n; char * buffer; printf ("How long do you want the string? "... Add solution -
Shell/Bash 2022-01-23 04:20:20
ubuntu apt shortcuts
# 1. Explore readme at https://gist.github.com/juliyvchirkov/7ee6591b9744c36fa9ab73a1ca2ef544 # 2. Paste this commands sequence to your console # 3. Execute # 4. All done. Save your time typing 'apt i' / 'apt lu' instead of 'sudo apt # install' / 'sudo... Add solution -
Other 2021-11-16 06:53:08
Clear RAM Cache and Swap Space.
# echo 3 > /proc/sys/vm/drop_caches && swapoff -a && swapon -a && printf '\n%s\n' 'Ram-cache and Swap Cleared' OR $ su -c "echo 3 >'/proc/sys/vm/drop_caches' && swapoff -a && swapon -a && printf... Add solution -
Other 2021-11-09 02:07:11
How do I tell which command has the longest manual on my system?
$ find /usr/share/man/ -type f -exec ls -S {} + 2>/dev/null | head | while \ read -r file; do printf "%-40s" "$file"; \ man "$file" 2>/dev/null | wc -lwm; done | sort -nrk 4 Add solution -
Shell/Bash 2021-11-06 13:50:17
how to pull private docker image in helm charts
# values.yaml imageCredentials: name: credentials-name registry: private-docker-registry (eg: https://index.docker.io/v1/) username: user password: pass replicaCount: 1 application: name: votingApp group: app container: image: votingA... Add solution -
C 2021-09-04 09:43:02
global and local variables in c
#include <stdio.h> //local parameters take precedance to global// /* global variable declaration */ int a = 20; int main () { /* local variable declaration in main function */ int a = 10; int b = 20; int c = 0; printf ("value... Add solution