I hereby claim:
- I am bhaskarkc on github.
- I am bhaskarkc (https://keybase.io/bhaskarkc) on keybase.
- I have a public key ASAXUNkkU8LLKt3UTTozMPl-WwHayMVT66Cl-eD6g1IPZgo
To claim this, I am signing this object:
version: '3.5' | |
services: | |
portainer: | |
image: portainer/portainer | |
ports: | |
- "9000:9000" | |
command: -H unix:///var/run/docker.sock | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock |
// Export database in gzip form | |
mysqldump -u user -p database | gzip > database.sql.gz | |
// Import database from gzip form | |
gunzip < database.sql.gz | mysql -u user -p database |
I hereby claim:
To claim this, I am signing this object:
Password-store keeps your passwords (or any other sensitive information) saved in GnuPG encrypted files organized in ~/.password-store
. For more information about GPG, consult the GNU Privacy Handbook.
To get started, install pass
and generate a keypair.
$ brew install pass
$ gpg --gen-key
$ gpg --list-keys
<?php | |
/** | |
* | |
* Check if in array for multiple keys and return index | |
* else return false. | |
* | |
* @return mixed|boolean | |
**/ | |
public function array_keys_exists( array $needles, array $haystack ) { | |
foreach ( $needles as $needle ) { |
nnoremap <silent> <leader>e :call Fzf_dev()<CR> | |
" ripgrep | |
if executable('rg') | |
let $FZF_DEFAULT_COMMAND = 'rg --files --hidden --follow --glob "!.git/*"' | |
set grepprg=rg\ --vimgrep | |
command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --glob "!.git/*" --color "always" '.shellescape(<q-args>).'| tr -d "\017"', 1, <bang>0) | |
endif | |
" Files + devicons |
<?php | |
/** | |
* Migrate local image to S3 Bucket | |
* | |
* @author Bhaskar K C | |
*/ | |
$time_start = microtime( true ); | |
// Load WP |
#!/bin/bash | |
upstream_json="upstream-servers.json" | |
if [ ! -f $upstream_json ]; then | |
echo "$upstream_json does not exists" | |
return | |
exit "$@" | |
fi |
<?php | |
/** | |
* Convert string to camelCased format. | |
* | |
* supports strings with "-" dash case | |
* | |
* @param string $str | |
* @param boolean $capitalise_first_char | |
* | |
* @return string $str camelCased string. |