Prevent users from shutting down Windows computer
Note:
User still can issue shutdown
command to shutdown the computer
Just think about micro things
Note:
User still can issue shutdown
command to shutdown the computer
export JEKYLL_GITHUB_TOKEN=<your token here>
. ~/.bash_profile
To run Docker inside LXD, we need to change the security.nesting as true.
lxc launch ubuntu-daily:16.04 docker -c security.nesting=true
or
lxc config set docker security.nesting true
lxc restart docker
To list accounts, run following commands.
dscacheutil -q user | grep -A 3 -B 2 -e uid:\ 5'[0-9][0-9]'
dscl . list /Users | grep -v ^_.*
Easy to install:
```shell <(curl -Ss https://my-netdata.io/kickstart-static64.sh)
WebGUI: http://servername:19999/
Title: 位操作基础篇之位操作全面总结
Author: MoreWindows
E-mail: morewindows@126.com
KeyWord: C/C++ 位操作 位操作技巧 判断奇偶 交换两数 变换符号 求绝对值 位操作压缩空间 筛素数 位操作趣味应用 位操作笔试面试
Run following command to fix italic fonts
{ infocmp -1 xterm-256color ; echo -e "\tsitm=\\E[3m,\n\tritm=\\E[23m,"; } > xterm-256color.terminfo
tic xterm-256color.terminfo
rm xterm-256color.terminfo
xinput list
Output example:
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Sony Vaio Jogdial id=7 [slave pointer (2)]
⎜ ↳ SynPS/2 Synaptics TouchPad id=14 [slave pointer (2)]
⎜ ↳ Logitech USB Receiver id=12 [slave pointer (2)]
⎜ ↳ Logitech USB Receiver id=11 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=13 [slave keyboard (3)]
↳ Video Bus id=8 [slave keyboard (3)]
↳ Sony Vaio Jogdial id=15 [slave keyboard (3)]
↳ Sony Vaio Keys id=6 [slave keyboard (3)]
↳ Power Button id=9 [slave keyboard (3)]
↳ Logitech USB Receiver id=16 [slave keyboard (3)]
↳ UVC Camera (05ca:18b5) id=10 [slave keyboard (3)]
xinput list-props 14
Output example:
Device 'SynPS/2 Synaptics TouchPad':
Device Enabled (142): 1
Coordinate Transformation Matrix (144): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Tapping Enabled (295): 0
libinput Tapping Enabled Default (296): 0
libinput Tapping Drag Enabled (297): 1
libinput Tapping Drag Enabled Default (298): 1
libinput Tapping Drag Lock Enabled (299): 0
libinput Tapping Drag Lock Enabled Default (300): 0
libinput Tapping Button Mapping Enabled (301): 1, 0
libinput Tapping Button Mapping Default (302): 1, 0
libinput Accel Speed (281): 0.000000
libinput Accel Speed Default (282): 0.000000
libinput Natural Scrolling Enabled (277): 0
libinput Natural Scrolling Enabled Default (278): 0
libinput Send Events Modes Available (262): 1, 1
libinput Send Events Mode Enabled (263): 0, 0
libinput Send Events Mode Enabled Default (264): 0, 0
libinput Left Handed Enabled (286): 0
libinput Left Handed Enabled Default (287): 0
......
xinput set-prop 'SynPS/2 Synaptics TouchPad' 'libinput Tapping Enabled' 1