List MAC accounts in the terminal
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 ^_.*
Just think about micro things
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
Our database has more then 42 millions records. We need to create reports for different roles.
I prefer opensource BI since we can build the website on our own server and access data directly.
sudo apt-get update && sudo apt-get -y upgrade
sudo apt-get install python-pip
pip -V
Add a network share folder in /etc/fstab
//windows-server/shared /mnt/shared cifs iocharset=utf8,credentials=/root/.naspasswd,dir_mode=0750,file_mode=0750 0 0
Most time it works well. But every few days or weeks, the connection or the mount point seems to go dead or hang, such that any process that tries to access the mount point gets stuck in D state (disk, or I/O wait). those processed become impervious to TERM and KILL signals. The frozen state lasts for 5+ minutes.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install ansible