alexkras.com

  • Home
  • Top Posts
  • Resume
  • Projects
  • YouTube
  • Boots to Bytes
  • About
  • Contact

Batch Rename Files in Unix Command Line

June 27, 2014 by Alex Kras 1 Comment

Sometimes the unix shell script is still the best tool for the job. Today I needed to rename a bunch of java properties files from *.property to *.json. Ok, I needed to do more then just rename them, but it makes the example easier to assume that is all that I needed done 🙂 I […]

Filed Under: Uncategorized

Easy Way to Run JavaScript Tests On Multiple Browsers Using Free Tools

June 3, 2014 by Alex Kras Leave a Comment

tl;dr I though of an interesting idea that helps me test my JavaScript code simultaneously on multiple browsers using two free tools ngrok and screenshots from BrowserStack. Simply pipe your JavaScript tests running on localhost through ngrok to make them accessible to the real world. Then use that link on BrowserStack to generate screenshots on […]

Filed Under: JavaScript

Delete Fork Dependency of a Repository on Atlassian Stash or GitHub

May 30, 2014 by Alex Kras Leave a Comment

A colleague of mine forked a repo on Stash, just to re-use configuration. A better way of doing things would be to clone the original repo, keep the necessary config/setup files, delete .git folder, and re-initialize the new repo from scratch. In our case, we only noticed the fork about a week into the project, […]

Filed Under: Git, Tools

How to Allow Node.Js App to Bind to Port 80 on Mac – For Testing Purposes Only

May 2, 2014 by Alex Kras 1 Comment

Run it as sudo i.e. sudo node server.js I just spent over 10 minutes looking around the internet for this simple solution. Hopefully, this post will save somebody some time 🙂

Filed Under: Node.Js

Pipe Your Localhost to the Real World

April 23, 2014 by Alex Kras 2 Comments

I often have to demo my locahlost code to people who might not be in the same room with me. Usually it’s being done via a development environment. However, for a small change, it might be more work than it’s worth. That is why I was so happy to come across this tool https://ngrok.com/ All […]

Filed Under: Tools

Summary of a talk by Tom Katis – CEO of Voxer at Silicon Valley Bank Talks

April 23, 2014 by Alex Kras Leave a Comment

I attended a talk by Tom Katis – CEO Voxer back in 2012. I really enjoyed his talk and took good notes. Bellow is the summary of key things that stood out for me. Ask yourself every day, what is one thing that will kill you if you get it wrong? Then concentrate on getting […]

Filed Under: Business

MySQL Pretty Print in Command Line

April 23, 2014 by Alex Kras 5 Comments

TLDR; Use \G at the end of your query, as in mysql> SELECT * FROM sometable\G; I was looking for a better way to output mysql tables in console, and came across the following gem: mysql> pager less -SFX mysql> SELECT * FROM sometable; So an ugly output like this: Was transformed into a nice […]

Filed Under: Tools

Ubuntu Linux Terminal Commands Cheat Sheet

March 16, 2013 by Alex Kras Leave a Comment

Add New User adduser Add New Group groupadd devs Add user to a suplimentary group usermod -a -G admin alex See user groups groups Change Group Ownership for a directory sudo chgrp -R devs tomcat Change Time Zone sudo dpkg-reconfigure tzdata Select ETC -> Greenwitch Change hostname sudo vim /etc/hostname rename and restart Restart computer […]

Filed Under: Ubuntu

Toggle All Checkboxes Using jQuery

March 8, 2013 by Alex Kras Leave a Comment

I needed to perform a mundane task of going to a large number of pages, with a large number of check-boxes selected at random, and flipping them in the opposite order. So if I had 3 check-boxes, out of which two were selected like this: I would need to flip them so it would look […]

Filed Under: Front End, jQuery Tagged With: jQuery

  • « Previous Page
  • 1
  • …
  • 10
  • 11
  • 12

Copyright © 2021 · eleven40 Pro Theme on Genesis Framework · WordPress · Log in