Welcome to Cloudberry Engineering
a notebook on building, breaking and securing systems by Gianluca Brindisi.
  • 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 < whatever
    

    Pratically 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 paste
    

    The 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:

    1. Boot in single user mode
    2. Remount the / file system in read and write mode with mount -u / and then mount -a
    3. Setup the new password by passwd
    4. Boot in multi-user mode with exit
    5. ???
    6. Profit!

    Pheww.

    I needed to save this tip somewhere because I know I will forget root password again.

    # / #freebsd #sysadmin #recovery