say that you lost your ssh public key but still had a private one…. you can get the public from teh private by running
ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub
done and simple
sometimes you jstu nee dto repeat a message to someone for an extended period of time
```from time import sleep from slackclient import SlackClient import sys
slack_token = “your token here” sc = SlackClient(slack_token) user = sys.argv user = “@%s” %(user) message = sys.argv repeat = int(sys.argv) interval = int(sys.argv) for _ in range(repeat): sc.api_call( “chat.postMessage”, channel=user, text=message ) sleep(interval) ```
want to do paswordless sudo in freenas?
sudo mount -uw / vi /usr/local/sudoers user ALL=(ALL) NOPASSWD: ALL make your changes mount -ur / wam bam