Wednesday, February 19, 2014

lol is the acronym for Laugh out Loud - next??

o|o = "cock & balls"
kk = OK cool
Bae = a love
smh = Shake my head

Sunday, February 16, 2014

Bootstrap input-group with multiple buttons


notice the rounded corners on the blue button, and the width of the checkbox container.




                                            <div class="input-group input-group-sm">
                                                <span class="input-group-addon">
                                                    <input type="checkbox">
                                                <span class="input-group-btn">
                                                    <button class="btn btn-primary"><i class="fa fa-pencil"></i></button>
                                                <span class="input-group-btn">
                                                    <button class="btn btn-brand"><i class="fa fa-minus"></i></button>

I had to add this to my {less} file.

.input-group-addon, .input-group-btn, .input-group .form-control{
  width: auto;
      border-radius: 0px;

Saturday, February 15, 2014

Tabbed Cygwin FTW

So I normally use OSX's iterm which has tabs built in, however Windows doesn't have this nice feature. But I found a passable solution and the answer is Console2. To get this up and running you need 2 things:

Cygwin (x86 version) :
Console2 :

So to get started, install Cygwin and any extra packages you want (I recommend getting zsh over bash but will cover both).

When that is completed, unzip Console2. There is no installer for this so move it to any place you want. Fire up Console2 and you will be greeted with the ugly cmd prompt from good old windows. To get Cygwin up and running Console2, go to Edit-->Settings-->Tabs. Click add and a new tab profile will be created. Under Main you can give it a name (Mine is Cygwin), give it a custom icon if you want. The important part you need to edit is under Shell. You want to browse your cygwin shell executable. If using bash it's <cygwin path>\bin\bash.exe   or zsh.exe if you're using zsh. Click open and then edit the line to pass some arguments to get it to load up correctly. Bash should look like this:
<cygwin path>\bin\bash.exe -login -i   and zsh should look like this: <cygwin path>\bin\zsh -l -i.

Move your newly created tab up or down, top one is what starts when you load Console2. Hit ok and you should be good to go with a new tabbed terminal in windows.

Friday, February 14, 2014

Persistent Aliases - Windows DOSKey

Thanks to...
Setup Persistent Aliases & Macros in Windows Command Prompt (cmd.exe) using DOSKey

REM - remark in a .bat file
DOSKey - Macro functionality in DOS

---- %USERPROFILE%\Dropbox\Technology\utils\cmd\cmd_startup.bat ----

@echo off

REM filespec (presumably always to .bat) is run every time cmd starts. (Currently, the value is “”.)
REM HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\AutoRun
REM save this file here %USERPROFILE%\Dropbox\Technology\utils\cmd\cmd_startup.bat

DOSKEY ls=dir
DOSKEY cd=cd $1$Tdir
DOSKEY clear=cls
DOSKEY alias=if “.$*.” == “..” ( DOSKEY /MACROS ) else ( doskey $* )

---- ----