Submitted by zenno on Tue, 11/15/2016 - 21:51
Submitted by zenno on Wed, 09/14/2016 - 18:17
For MacOSX usage, primarily:
Ensure you have the correct Docker environment:
$> eval "$(docker-machine env cloudviewerbox)"
... and find the running container:
$> docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
44809d71d591 sameersbn/postgresql:9.4-18 "/sbin/entrypoint.sh" 2 weeks ago Up 2 hours 0.0.0.0:5432->5432/tcp slctest_postgres_1
Submitted by zenno on Mon, 09/05/2016 - 17:38
To empty a file, e.g.
/path/to/foo.txt, do the following
cat /dev/null > /path/to/foo.txt
Submitted by zenno on Mon, 11/09/2015 - 12:59
Here is an attempt to, given a string, determine how many valid numbers are contained. Numbers are restricted to the letters of the alphabet they map to.
Attempts at finding a solution to tree scans for target elements:
Submitted by zenno on Wed, 01/14/2015 - 11:50
Bower Shim Maintenance
This is one example of making Ember add-on using a Bower shim maintenance workflow. A Bower shim is basically a wrapper for some arbitrary set of files you want to become available in
bower_components in a client application's project folders.
ember-cli generator, developers can now easily add Bower dependencies to Ember projects via a call to
addBowerPackageToProject in an
afterInstall hook. More on this later.
Submitted by zenno on Thu, 07/03/2014 - 15:17
Note to self, cURL with Basic Authentication:
curl -i --user [username]:[password] \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'X-Some-Header: SomeValue' \
-X GET 'schema://domain/arg/value/arg/etc'
Submitted by zenno on Fri, 02/07/2014 - 09:24
$> make money
make: *** No rule to make target `money'. Stop.
... short but to the point.
Submitted by zenno on Thu, 01/16/2014 - 10:05
If you are unable to
su, there are a couple binaries that may need
setuid as the root user. On Fedora, it may just be that the user you're trying to
su with a user who is not in the
wheel group (other distributions use the
sudoers group instead of
If you're sure you user is in
wheel, check permissions on the
su binaries like this (you should logged in as root for doing so):
Submitted by zenno on Sun, 09/29/2013 - 17:23
To toggle "paste" mode for Vim, do this to enable ctrl-v with proper indentation.
Remember to type the ":" initially to enter command mode. You are then saying "set paste".
When you're done, reset to non-paste mode: