Archive for the ‘Development’ Category

Keybase.io

Monday, June 18th, 2018

I have recently found a new site called Keybase.io.  This site dedicated to sharing your public PGP key.  It also has some cool features like verifying your Facebook, Twitter, and other accounts by posting singings with your key.  I would highly recommend everyone sign up, and start signing your items.

Check mine out. https://keybase.io/jfreier

Also if you need some help setting up your GPG key, checkout my wiki page to help.
http://wiki.johnfreier.com/index.php/Linux_gpg

Here is a link to my public key Click Here

A few new tools.

Tuesday, May 1st, 2018

Here a few new tools.

Google Keep

This tool is google’s latest note tool.  It is very similar to Apple Notes or a simplified Evernote, except Free 🙂 I’m just starting to use it for note taking.  It does have an iOS and Android app.  It is a rich text editor, which makes things a little messing for pasting in code, and almost a complete turn off.  It also does not support markdown without installing a chrome plugin.

Pass

A neat little password manage that looks to encrypt a text file that is essentially a password.  It then uses the standard folder structure to help with navigation.  It is written is shell, and seems easy to install.  Then encryption is done through GPG.  It looks kinds of neat a small, but it does have a lot of  dependencies. Hmmm…I wonder if it could be modified to use open ssh which comes with most machines.

Fish Shell

Fish shell, is a simplified shell that seems to have a some tools, man autocomplete, a browser based color settings??, lots of colors!  To be honest not my choice of shells, might be good for someone just starting out using shell.  I prefer oh-my-zsh.

Oh-My-ZSH

This is my preferred shell, it is simply zsh with a LOT of really useful tools.  It’s really easy to install and get started.  I would highly recommend it.

Bash Delete Method

Tuesday, August 9th, 2016

I recently permanently delete some files because of habit using, rm -fr ./file.txt, ops.  So I looked into creating a bash function to delete files and just move them into a system temporary folder for auto delayed deletion.

There are multiply system temporary location on a mac,

/tmp – Used for short temp files.  This directory is available on system startup.  Some system are setup to use this directory in memory storage only.

/var/temp – Used for bigger files.  Because this is in the VAR directory it needs to be mounted and thus not available until then(after startup).

$TMPDIR – Is a temp directory variable, this is the recommended location to store temp files on OSX.

These directories are cleaned up differently on different systems.

Below is the line I added to my ~/.bash_profile
del() { mv $1 $TMPDIR; };

This will add a function called del that will move a file into the $TMPDIR.  This will allow the file to be queried for deletion, but also allows for a short recovery time.

View my sample .bash_profile:

https://github.com/johnfreier/scripts/blob/master/linux/.bash_profile

MCrypt

Sunday, August 2nd, 2015

MCrypt is a library for C that contains a bunch of helpers for encryption and decryption.

Here is a sample project, https://github.com/johnfreier/mcrypt