Archive for the ‘Misc’ Category

Another move towards Git

If you’re interested in getting some basic information about Git, surely you already know about the Git Community Book – it’s undoubtedly a source of great knowledge. However, if you prefer the visual presentation and want to listen about the Git, I will highly recommend Scott Chacon’s “Introduction to Git”. It is great, compact and [...]

Read the rest of this entry »

Git and empty directories

I’m currently under the process of moving all my workplace repositories from SVN to Git (configured to work with Gerrit). As a side not, I already found it to be a great tool for code review, line-precise commenting of the artifacts and for reviewing new employees code before pushing the changes to the repository. But, [...]

Read the rest of this entry »

SVN and Time Synchronization Issue on VirtualBox

Some time ago I’ve had a problem with SVN on my VirtualBox guest Ubuntu machine. When the machine was hibernated (it’s state was saved – without shutting it down) there was a time synchronization issue. When I checked out the SVN repository on the guest machine, I couldn’t see any actual changes or new files [...]

Read the rest of this entry »

Changing git master after cloning

If you’ve cloned a GitHub repository from the original one and not from your forked version and you would like to change it, you can just edit the .git/config file in your project and change the URL of the origin remote: [remote "origin"] fetch = +refs/heads/*:refs/remotes/origin/* url = VALUE_WHICH_SHOULD_BE_ADJUSTED Simple, easy, and most importantly – [...]

Read the rest of this entry »

Running GUI applications over SSH

If you want to execute a GUI based application on the remote server through SSH, you can achieve it quite easily using the ssh command. Just type ssh -X username@server The -X flag is used to define the DISPLAY environmental variable on the remote host, so each X11 executed application will be forwarded to your [...]

Read the rest of this entry »

BASH: find files with names different than the pattern

If you’re using BASH find and want to find files which are named differently than the given pattern, you can use the following syntax: find . -type f ! -iname “*.class” The above command will find all files in the current directory (and subdirectories) which have the extension different (exclamation mark) from “class” (case insensitive). You [...]

Read the rest of this entry »

Every possible combination of given letters in BASH

If you want to create every possible word or combination of letters (or any other characters) you can use very simple BASH function: $ echo {a..c} This command will print all possible letters starting with a and ending on c (inclusive), so the result is: a b c You can get every possible combination of [...]

Read the rest of this entry »

Problem with execution of SNX on GNU/Linux (libstdc++)

I’ve recently bumped into a problem with using a SSL Network Extender when trying to establish a VPN connection through the web browser. The SNX was throwing a ‘failed to initialize’ error without any details despite the right credentials. To identify the error, I needed to execute the snx from the command line (snx) which [...]

Read the rest of this entry »

System-wide SOCKS Proxy

Sometimes, there is a need to use SOCKS Proxy for connection even if an application itself isn’t providing such feature. If you’re working on Windows you can use FreeCap which allows you to put your applications into FreeCap “sandbox”. Everytime you run app from this “sandbox” it is sent through the SOCKS proxy you set [...]

Read the rest of this entry »

How to set up an Apache2 + OpenSSL environment

Recently I was trying to configure a SSL site working on a localhost. The whole point was to configure the Apache2 to work with the SSL and I found this site to be particular useful why trying to solve this problem Be the first to like. Like Unlike

Read the rest of this entry »