An A-Z Index of Windows PowerShell commands https://ss64.com/ps/
Get-Service LxssManager | Restart-ServiceAn A-Z Index of Windows PowerShell commands https://ss64.com/ps/
Get-Service LxssManager | Restart-ServiceCopying your Public Key Using SSH
cat ~/.ssh/id_rsa.pub | ssh username@remote_host "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"To start the SSH Agent, type the following into your local terminal session:
eval $(ssh-agent)| { | |
| "camelcase": true, | |
| "indent": 2, | |
| "undef": true, | |
| "quotmark": false, | |
| "maxlen": 120, | |
| "trailing": true, | |
| "curly": true, | |
| "strict": false, | |
| "browser": true, |
A collection of Markdown code and tricks that were tested to work in Gist.
This and all public gists in https://gist.github.com/ww9 are Public Domain. Do whatever you want with it including , no need to credit me.
| const response = JSON.parse(responseBody) | |
| const response_length = response.length; | |
| console.log(response_length) | |
| console.log(response) |
| <?php | |
| // /* | |
| function rand_float($st_num=0,$end_num=1,$mul=1000000) { | |
| if ($st_num>$end_num) return false; | |
| return mt_rand($st_num*$mul,$end_num*$mul)/$mul; | |
| } | |
| $query_args = array( | |
| 'post_type' => 'product', | |
| 'post_status' => 'publish', |
| <script> | |
| window.addEventListener('DOMContentLoaded', function() { | |
| (function($) { | |
| //do something with b-lazy plugin, lightbox plugin and then with flexslider | |
| })(jQuery); | |
| }); | |
| </script> |