Compare commits
15 Commits
1a1b68a0c4
...
1009c4707b
Author | SHA1 | Date | |
---|---|---|---|
|
1009c4707b | ||
|
d5ab2594b0 | ||
|
661e0f0435 | ||
24e9117c04 | |||
d621ec6b7e | |||
28177e5df9 | |||
4ca698cf87 | |||
2e5b319202 | |||
3b3d680b0a | |||
5a47304c2e | |||
b2e8e841f6 | |||
fcf10e1715 | |||
69dfd44dd8 | |||
ec40d2b06e | |||
e116f88a1c |
@ -3,9 +3,6 @@
|
||||
# List users
|
||||
cat /etc/passwd | awk -F: '{ print $1}'
|
||||
|
||||
# User information
|
||||
sudo id <user>
|
||||
|
||||
# Change user password
|
||||
sudo passwd <user>
|
||||
|
||||
@ -18,17 +15,4 @@ 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,26 +1,18 @@
|
||||
% 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
|
||||
sudo ln -s /etc/nginx/sites-available/<ls_site> /etc/nginx/sites-enabled/<ls_site>
|
||||
ln -s /etc/nginx/sites-available/<ls_site> /etc/nginx/sites-enabled/<ls_site>
|
||||
|
||||
# Disable site
|
||||
sudo rm /etc/nginx/sites-enabled/<rm_site>
|
||||
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