Update: use PowerShell script PythonEmbed4Win.ps1.
The instructions in this gist have some subtle problems and this gist will not be updated.
The instructions in this gist have some subtle problems and this gist will not be updated.
#!/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 |
#!/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 | |
# |
[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.
/etc/ssh/sshd_config
file by running the command sudo vi /etc/ssh/sshd_config
and do the following
Port
to 2222 (or any other port above 1000)PasswordAuthentication
to yes. This can be changed back to no if ssh keys are setup.sudo service ssh --full-restart
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 |
# ---------------------------------------------------------------------------------- | |
# r u s t f m t - C O N F I G | |
# ================================================================================== | |
# | |
# Version: 0.7.1 | |
# Author : Robbepop <[email protected]> | |
# | |
# A predefined .rustfmt.toml file with all configuration options and their | |
# associated description, possible values and default values for use in other | |
# projects. |
@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 |
states = ["AL", "AK", "AZ", "AR", "CA", "CO", "CT", "DC", "DE", "FL", "GA", | |
"HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MD", | |
"MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH", "NJ", | |
"NM", "NY", "NC", "ND", "OH", "OK", "OR", "PA", "RI", "SC", | |
"SD", "TN", "TX", "UT", "VT", "VA", "WA", "WV", "WI", "WY"] | |
STATES = {"AL":"Alabama", | |
"AK":"Alaska", | |
"AZ":"Arizona", | |
"AR":"Arkansas", | |
"CA":"California", |