I found a post about suspending and then going into hibernate that included a really clever script. Turns out that with NixOS this is even esaier to coordinate as you have systemd so can have a before and after service. I just include this in my /etc/nixos/configuration.nix file and nixos-rebuild; then a systemctl suspend or a close of the lid will cause the hibernate timer to be set.
Install android-tools if you haven't already:
pkg update ; pkg upgrade
pkg install android-tools
adb pair ipaddr:port
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
| <script src="https://cdn.amcharts.com/lib/5/index.js"></script> | |
| <script src="https://cdn.amcharts.com/lib/5/xy.js"></script> | |
| <script src="https://cdn.amcharts.com/lib/5/stock.js"></script> | |
| <script src="https://cdn.amcharts.com/lib/5/themes/Animated.js"></script> | |
| <div id="chartcontrols"></div> | |
| <div id="chartdiv"></div> |
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
| <main> | |
| <input type="file" name="image" id="image" accept="image/*" /> | |
| <div id="preview"> | |
| <div id="avatar"></div> | |
| <button | |
| id="upload-button" | |
| aria-labelledby="image" | |
| aria-describedby="image" | |
| > | |
| 🙂 |
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
| <label for="pet-select">Choose a pet:</label> | |
| <select name="pets" id="pet-select"> | |
| <option value="">--Please choose an option--</option> | |
| <option value="dog">Dog</option> | |
| <option value="cat">Cat</option> | |
| <option value="hamster">Hamster</option> | |
| <option value="parrot">Parrot</option> | |
| <option value="spider">Spider</option> | |
| <option value="goldfish">Goldfish</option> |
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
| <button class="button-hold"> | |
| <div> | |
| <svg class="progress" viewBox="0 0 32 32"> | |
| <circle r="8" cx="16" cy="16" /> | |
| </svg> | |
| <svg class="tick" viewBox="0 0 24 24"> | |
| <polyline points="18,7 11,16 6,12" /> | |
| </svg> | |
| </div> | |
| <ul> |
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
| mkdir ~/vim | |
| cd ~/vim | |
| # Staically linked vim version compiled from https://github.com/ericpruitt/static-vim | |
| # Compiled on Jul 20 2017 | |
| curl 'https://s3.amazonaws.com/bengoa/vim-static.tar.gz' | tar -xz | |
| export VIMRUNTIME="$HOME/vim/runtime" | |
| export PATH="$HOME/vim:$PATH" | |
| alias vi=vim |
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
| $remoteport = bash.exe -c "ifconfig eth0 | grep 'inet '" | |
| $found = $remoteport -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}'; | |
| if( $found ){ | |
| $remoteport = $matches[0]; | |
| } else{ | |
| echo "The Script Exited, the ip address of WSL 2 cannot be found"; | |
| exit; | |
| } |
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
| Date | NY | SF | |
|---|---|---|---|
| 2007-01-01 | 51 | 45 | |
| 2007-01-02 | 48 | 56 | |
| 2007-01-03 | 46 | 54 | |
| 2007-01-04 | 51 | 52 | |
| 2007-01-05 | 57 | 49 | |
| 2007-01-06 | 64 | 50 | |
| 2007-01-07 | 51 | 53 | |
| 2007-01-08 | 49 | 53 | |
| 2007-01-09 | 41 | 56 |
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
| Date | NY | SF | |
|---|---|---|---|
| 2007-01-01 | 46;51;56 | 43;45;48 | |
| 2007-01-02 | 43;48;52 | 48;56;63 | |
| 2007-01-03 | 39;46;53 | 50;54;62 | |
| 2007-01-04 | 44;51;58 | 45;52;56 | |
| 2007-01-05 | 51;57;62 | 44;49;58 | |
| 2007-01-06 | 55;64;72 | 40;50;60 | |
| 2007-01-07 | 46;51;56 | 45;53;63 | |
| 2007-01-08 | 40;49;57 | 43;53;64 | |
| 2007-01-09 | 37;41;45 | 49;56;66 |
NewerOlder