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
#https://www.server-world.info/en/note?os=Debian_11&p=desktop&f=8 | |
#https://www.server-world.info/en/note?os=Debian_11&p=desktop&f=6 | |
# this script should work on Debian/Ubuntu | |
# it assumes that you are using 'root' user | |
# smutao@github, 2023 | |
read -p "Enter VNC password: " mypass | |
read -p "Enter VNC resolution (e.g. 1920x1080 or 1600x900): " res |
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/bash | |
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF | |
appify v3.0.1 for Mac OS X - http://mths.be/appify | |
Creates the simplest possible Mac app from a shell script. | |
Appify takes a shell script as its first argument: | |
`basename "$0"` my-script.sh |
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
# draw histogram in command line with Python | |
# smutao@github, July 30, 2022 | |
# | |
# usage: $ cat datafile.txt | python draw_hist_ascii.py [nbins] [nscale] | |
# The input should be one column of numbers to be piped in. | |
# | |
# forked from https://gist.github.com/bgbg | |
from __future__ import print_function | |
import sys |