This file contains hidden or 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
| find `pwd` -type d | xargs -I{} echo '"{}"' | tail -n+2 | sed "s/^\(.*\)/find \1 -type f -printf '%T@ %p\n' | sort -nr | tail -n+4 /e" | sed '/^$/d' | cut -d" " -f2- |
This file contains hidden or 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
| Source: https://gitter.im/syl20bnr/spacemacs?at=5b45e03a60c38707837070b0 | |
| Ljupcho Kotev @ljupchokotev 12:47 | |
| It's best to use the xclip package | |
| it works flawlessly | |
| Add xclip to dotspacemacs-additional-packages and then (xclip-mode 1) in user-config | |
| all copy/paste will work between terminal/spacemacs/gui/etc | |
| you just need to have xclip installed, which probably already is |
This file contains hidden or 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
| pkg install -y golang && pkg install -y git && go get github.com/exercism/cli/exercism && echo 'export PATH=$PATH:$HOME/go/bin' >> ~/.profile && source ~/.profile |
This file contains hidden or 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
| SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4ee7", MODE="0660", GROUP="arif", SYMLINK+="android%n" |
This file contains hidden or 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
| $sql = vsprintf(str_replace(array('?'), array('\'%s\''), $query->toSql()), $query->getBindings()); |
This file contains hidden or 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
| list image: | |
| docker image ls | |
| docker images | |
| list including unnamed image: | |
| docker image ls -a | |
| docker images -a | |
| list running container: | |
| docker ps | |
| list all container: | |
| docker ps -a |
This file contains hidden or 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
| sudo mkdir /sys/fs/cgroup/systemd && sudo mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd |
This file contains hidden or 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
| Enable file write | |
| sudo chcon -R -t httpd_sys_rw_content_t /var/www/html |
This file contains hidden or 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
| I mapped my src directory to ~ so I can access all my top folders like this : | |
| import DB from '~/lib/database' | |
| import { User } from '~/domain/user' | |
| 1. Teach VS Code's Intellisense where to look at | |
| So you can jump to the definition and have autocompletion. ✨ | |
| To do that, create a jsconfig.json file at the root of your project : | |
| { |
This file contains hidden or 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
| SELECT | |
| wp_users.*, | |
| name.meta_value as shop_name, | |
| lat.meta_value as lat, | |
| lng.meta_value as lng, | |
| (select (6371 * acos( | |
| cos( radians('23.9907537') ) | |
| * cos( radians( lat ) ) |
NewerOlder