Some useful tools and tweaks for new systems. Probably only useful for me, @jtmoon79.
Update: use PowerShell script PythonEmbed4Win.ps1.
The instructions in this gist have some subtle problems and this gist will not be updated.
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
| #!/usr/bin/env bash | |
| # | |
| # run single instance of glances on the system as user glances. | |
| # follows from https://gist.github.com/jtmoon79/1b5a806b3e71874542c21b1578156a42 | |
| # designed for a Debian-based Linux | |
| # | |
| # place this file at /var/lib/glances/glances-start.sh | |
| # chmod +x /var/lib/glances/glances-start.sh | |
| # should look like: | |
| # ls -l /var/lib/glances/glances-start.sh |
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
| #!/usr/bin/env bash | |
| # | |
| # install glances system monitor onto a Debian-based System under user "glances" | |
| # https://github.com/nicolargo/glances | |
| # | |
| # This creates user "glances" (which glances presumes to do) but for the purpose of install the program glances (and the | |
| # required libraries) under permissions of user glances. This way, | |
| # - glances programs are slightly better contained under user glances permissions | |
| # - glances (and related programs) are not added to shared $PATH directories | |
| # |
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
| [Custom Colors] | |
| 01=#000000 | |
| 02=#B5E2F5 | |
| 03=#A2C5D4 | |
| 04=#89ACEC | |
| 05=#006633 | |
| 06=#B2D766 | |
| 07=#648000 | |
| 08=#F6B05B | |
| 09=#FFFFFF |
Microsoft partnered with Canonical to create Bash on Ubuntu on Windows, running through a technology called the Windows Subsystem for Linux. Below are instructions on how to set up the ssh server to run automatically at boot.
- Edit the
/etc/ssh/sshd_configfile by running the commandsudo vi /etc/ssh/sshd_configand do the following- Change
Portto 2222 (or any other port above 1000) - Change
PasswordAuthenticationto yes. This can be changed back to no if ssh keys are setup.
- Change
- Restart the ssh server:
sudo service ssh --full-restart
- With this setup, the ssh server must be turned on every time you run Bash on Ubuntu on Windows, as by default it is off. Use this command to turn it on:
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
| This file provides some nifty command-line tools around DD-WRT's nvram command. | |
| https://www.dd-wrt.com/wiki/index.php/Hardware#NVRAM | |
| USE WITH CAUTION: fiddling with nvram can wipe your settings and you may loose access to your router. | |
| Hint 1: Different version of DD-WRT might use different nvram variables. Thus, be carefull when updating. | |
| Hint 2: The commands listed below should be issued via a ssh-connection since the webinterface for issuing commands might time out for the longer commands. | |
| Background | |
| ========== | |
| Extracting the content of configuration variables with nvram would provide an easy way of selective backup/restore of settings. However, listing the content of the nvram via | |
| nvram show |
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
| # ---------------------------------------------------------------------------------- | |
| # r u s t f m t - C O N F I G | |
| # ================================================================================== | |
| # | |
| # Version: 0.7.1 | |
| # Author : Robbepop <robbepop@web.de> | |
| # | |
| # A predefined .rustfmt.toml file with all configuration options and their | |
| # associated description, possible values and default values for use in other | |
| # projects. |
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
| @echo off | |
| setlocal | |
| call :setESC | |
| cls | |
| echo %ESC%[101;93m STYLES %ESC%[0m | |
| echo ^<ESC^>[0m %ESC%[0mReset%ESC%[0m | |
| echo ^<ESC^>[1m %ESC%[1mBold%ESC%[0m | |
| echo ^<ESC^>[4m %ESC%[4mUnderline%ESC%[0m |
NewerOlder