Using Bittorrent Sync behind a firewall

24. november 2014

Getting Bittorrent Sync to work in the workplace seems frustratingly hard to do, at least if you are as unsuccesful at googling solutions for bypassing the corporate firewalls as I was. Turns out it is really easy to get it working!

You need a Linux server at home or some other place outside of the workplace for this to function.

1. Set up a SOCKS proxy using ssh

Simply type in the following in your terminal, and you will create an encrypted channel to your server that traffic can pass through.

ssh -v -D 22222 -N

The chosen port, 22222, was chosen at random by myself. It can be anything between 1024 and 65535, as long as it is not taken by some program already.

2. Configure Bittorrent Sync

Open the ‘Advanced’ tab in preferences and set the proxy type and port number.

PreferencesThat’s it!

After restarting Sync you should now see that your shares are syncing. This worked fine for me when trying to get 1Password to sync at work with my private computers at home and my mobile.

1Password in Linux

5. oktober 2014

I was amazed to find out that, although there is no Linux client for 1Password, you can actualy achieve full browser integration in Chrome under Linux! This is all possible using Wine, and worked surprisingly well. Using this, I can fill in passwords in the browser using the 1Password plugin, as well as add new ones.

This worked far better than I had hoped, and there are decent instructions from AgileBits on how to get this set up in the forums

grunt-codekit now supports js concatenation

9. juni 2014

A final missing piece was added to the plugin for Grunt I made a few months ago: javascript concatenation using CodeKit’s prepend and append directives. Now you might think that this is a useless feature, as we have had the grunt-contrib-concat plugin for ages, but to use that you would have to change your existing project for it to work. Adding support for handling inline build comments like these

// @codekit-prepend "some-file.js"
// @codekit-append "some-other-file.js"

makes it possible to keep using CodeKit&tm; and Grunt at the same time. That means non-Mac developers can still contribute to you project, you don’t have to change any code, and you can keep the nitty-gritty of various builds in Grunt, and just use CodeKit like you normally do. Which was kinda the point for me, since CodeKit < 2 sucked at sharing config between team members (build file changed all the time). Les resten av dette innlegget »

Running Karma tests on BrowserStack

27. mai 2014

Browserstack is a great setup and Karma is a great test runner for javascript, so the two should be a pretty good fit right? In practice it took me quite a lot of time to get the settings right, including discussions on the karma users group and some help from the good folks at BrowserStack. What follows are some brief notes on how I set this up to run with Grunt and on the Jenkins build server. Les resten av dette innlegget »

Grunt plugin for the Kit language

25. februar 2014

Just made a Grunt plugin to compile files written using the Kit templating language used in CodeKit. An NPM package for download is available.

Using the Node Package Manager (npm) with Cygwin

12. februar 2014

Case is that if you have tried installing NodeJS and tried running it under Cygwin you have gotten something like this:

/cygdrive/c/Dev/nodejs/npm: line 2: $'r': command not found
/cygdrive/c/Dev/nodejs/npm: line 4: $'r': command not found
/cygdrive/c/Dev/nodejs/npm: line 5: syntax error near unexpected token `$'inr''
'cygdrive/c/Dev/nodejs/npm: line 5: `case `uname` in

This is due to the Cygwin environment expecting Unix line feeds, whereas Windows (and the Node version compiled for it) are expecting Windows style line feeds. The trick here to using Node is simply to create an alias for it, making it run using the normal CMD shell. The fix is as easy as putthing this in your $HOME/.bashrc file:
alias npm="cmd /c npm"

Now you can npm install all you want!

Lage gyldige bankkontonummer

7. januar 2014

Når man utvikler en løsning som krever gyldige inputverdier for f.eks. bankkontonummer er det ofte et problem at man må ha testverdier som passerer en gyldighetssjekk. Les resten av dette innlegget »


Få nye innlegg levert til din innboks.

Bli med 749 andre følgere