Last active
October 7, 2019 07:31
-
-
Save zzzgit/a9ba7d541c42c7188b8c688d0d07120a to your computer and use it in GitHub Desktop.
shell
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
let gql = fs.readFileSync(path.resolve(__dirname, `./${filename}.gql`), { encoding: "UTF-8" }) | |
let obj = { query: gql} |
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
function! MyVerticalMotions(up) | |
let motion = "j" | |
if a:up | |
let motion = "k" | |
endif | |
execute "normal! " . motion | |
while synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") == "Comment" && line('.') < line('$') && line('.') > 1 | |
execute "normal! " . motion | |
endwhile | |
endfunction | |
nnoremap <silent> j :call MyVerticalMotions(0)<CR> | |
nnoremap <silent> k :call MyVerticalMotions(1)<CR> |
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
systemctl list-units -t service --no-pager --no-legend | grep active | grep -v systemd | grep -v exited | awk '{ print $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
ss -l -p -n | grep ",1234," |
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
!/bin/sh | |
curl -H "Authorization: bearer fdab286807ecd23d29ca911776d377d449d01f11" -X POST -d "$data" https://api.github.com/graphql | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment