Compare commits
15 Commits
1009c4707b
...
1a1b68a0c4
Author | SHA1 | Date | |
---|---|---|---|
|
1a1b68a0c4 | ||
|
1ffd517d88 | ||
|
36eb526857 | ||
99020a5e9f | |||
e468e38bf3 | |||
6096c277a9 | |||
b57ca60f1b | |||
a7a9b3aa77 | |||
ef86a7b519 | |||
49b244f2cc | |||
ba4769c2ab | |||
e9583bd0a8 | |||
027acfd22d | |||
4df7a0bf1a | |||
4e2db7dc8c |
@ -3,6 +3,9 @@
|
||||
# List users
|
||||
cat /etc/passwd | awk -F: '{ print $1}'
|
||||
|
||||
# User information
|
||||
sudo id <user>
|
||||
|
||||
# Change user password
|
||||
sudo passwd <user>
|
||||
|
||||
@ -15,4 +18,17 @@ sudo useradd <username>
|
||||
# Delete an user
|
||||
sudo deluser <user>
|
||||
|
||||
# List all groups
|
||||
cat /etc/group
|
||||
|
||||
# Add user to group
|
||||
sudo usermod -a -G <group> <user>
|
||||
|
||||
# Remove user from a group
|
||||
sudo deluser <user> <group>
|
||||
|
||||
# Port binding
|
||||
sudo lsof -i:<port>
|
||||
|
||||
$ user: cat /etc/passwd | awk -F: '{ print $1}'
|
||||
$ group: cat /etc/group | awk -F: '{ print $1}'
|
||||
|
@ -1,18 +1,26 @@
|
||||
% flasher
|
||||
|
||||
# Set server
|
||||
flasher -setserver nv2 <server>
|
||||
|
||||
$ server: echo "netcomv2.inte.netatmo.net nv2-nlg.netatmo.net nv2-nmg.netatmo.net upp.netatmo.net" | tr " " "\n"
|
||||
|
||||
|
||||
% jlink
|
||||
|
||||
# JLinkExe
|
||||
JLinkExe -if SWD -speed 1000 -device <target>
|
||||
|
||||
# JLinkGDBServer
|
||||
JLinkGDBServer -if SWD -device <target>
|
||||
|
||||
# Variables
|
||||
$ target: echo "ATSAMR21E19A nRF52" | tr " " "\n"
|
||||
|
||||
|
||||
% zigbee
|
||||
|
||||
# Sniffer Zigbee
|
||||
<pyet>/zigbee/python_zigbee_interface.py -c <channel>
|
||||
|
||||
$ pyet: echo "$HOME/Netatmo/core/python-emb-tools/python/bin"
|
||||
|
@ -1,10 +1,10 @@
|
||||
% nginx
|
||||
|
||||
# Enable site
|
||||
ln -s /etc/nginx/sites-available/<ls_site> /etc/nginx/sites-enabled/<ls_site>
|
||||
sudo ln -s /etc/nginx/sites-available/<ls_site> /etc/nginx/sites-enabled/<ls_site>
|
||||
|
||||
# Disable site
|
||||
rm /etc/nginx/sites-enabled/<rm_site>
|
||||
sudo rm /etc/nginx/sites-enabled/<rm_site>
|
||||
|
||||
$ ls_site: ls /etc/nginx/sites-available/ | awk '{print $1}'
|
||||
$ rm_site: ls /etc/nginx/sites-enabled/ | awk '{print $1}'
|
||||
|
Loading…
x
Reference in New Issue
Block a user