-
Since I haven’t managed to find a command line pastebin script whose based on the new APIs I wrote one.
You can find it on my bitbucket.
Usage:
$ pastebin.py -f python -e 10M -p 1 -t MyPaste < whateverPratically you just pipe your data to the script.
Here are some options:
-f defines data format (php, python, etc) -e the expiry time (10M, 1G, 1D, N) -p the privacy (1 is private, 0 is public) -t the title of the pasteThe script looks for a config file in your home dir with your dev API key and optionally an username and a valid password (without valid login credentials your pastes will be anonymous).
The first time you run it will create the config (
~/.pastebin).Feel free to fork/edit/whatever it.
# / #python #cli #pastebin - Run Xmonad on Snow Leopard
- Introducing Pepbot
- How To Automate SSH With Expect
-
Never locked out again from my FreeBSD virtual machine for having forget the root password.
The fix:
- Boot in single user mode
- Remount the
/file system in read and write mode withmount -u /and thenmount -a - Setup the new password by
passwd - Boot in multi-user mode with
exit - ???
- Profit!
Pheww.
I needed to save this tip somewhere because I know I will forget root password again.
# / #freebsd #sysadmin #recovery