Michael Ambrus

288 Flips | 12 Magazines | 3 Following | 59 Followers | @ambrmi09 | Keep up with Michael Ambrus on Flipboard, a place to see the stories, photos, and updates that matter to you. Flipboard creates a personalized magazine full of everything, from world news to life’s great moments. Download Flipboard for free and search for “Michael Ambrus”

Parsing Program Arguments

If the syntax for the command line arguments to your program is simple enough, you can simply pick the arguments off from<p>argvby hand. But unless your …

Finding your way in vim

Vim is quite powerful programmer's editor, but has a very steep learning curve and it takes time to configure it properly. In this tutorial I'd like …

Turn off buffering in pipe

I have a script which calls two commands:<p>The long_running_command prints a progress but I'm unhappy with it. I'm using print_progress to make it more …

X Window System User's Guide for X11 R3 and R4 of the X Window System

8<p>Command Line Options<p><i>This chapter describes command-line options that are common to most clients. Some arguments to command-line options can also be</i> …

Detach (move) subdirectory into separate Git repository

I have a Git repository which contains a number of subdirectories. Now I have found that one of the subdirectories is unrelated to the other and …

Splitting a subfolder out into a new repository - User Documentation

Open TerminalTerminalGit Bash.<p>Change the current working directory to the location where you want to create your new repository.<p>Clone the repository …

How do I clone a subdirectory only of a Git repository?

I have my Git repository which, at the root, has two sub directories:<p>When this was in SVN, /finisht was checked out in one place, while /static was …

Gnome Keyring — Nurdletech

Gnome Keyring¶<p>What is Gnome Keyring¶<p>Gnome Keyring is a program that largely hides in the background while holding your secrets (mainly your passwords …

Kill -9 does not work

Why doesn't `kill -9` always work?<p>You are supposed to be able to kill any process with `kill -9 [PID]`, but you may come across a process that can't …

i3 Window Navigation Tips

Navigating between windows, especially in a multi-monitor environment can pose a real challenge at times. You work on a very important project and …

Writing manual pages

Introduction<p>Manual pages are the canonical type of documentation for Unix systems. They are a bit arcane, but for a technology several decades old, …

Is there a command to list all open displays on a machine?

When SSH'd locally into my computer (don't ask, it's a workaround), I can't start graphical applications without running:<p>If I run this first and then …

Debootstrap

Introduction<p>debootstrap is a tool which will install a Debian base system into a subdirectory of another, already installed system. It doesn't …

Preserve bash history in multiple terminal windows

I consistently have more than one terminal open. Anywhere from two to ten, doing various bits and bobs. Now let's say I restart and open up another …

XINIT(1) manual page

Below are several examples of how command line arguments in <b>xinit</b> are used.<p><b>xinit</b>This will start up a server named <i>X</i> and run the user's <i>.xinitrc</i>, if it …

What does env x='() { :;}; command' bash do and why is it insecure?

There is apparently a vulnerability (CVE-2014-6271) in bash: Bash specially crafted environment variables code injection attack<p>I am trying to figure …

562. Pulling in glibc >=2.14 from testing to stable: apt-pinning

Mixing releases is dangerous and can lead to broken systems.<p>Having said that, increasingly a lot of programs seem to rely on glibc >=2.14, and wheezy …

Need to install glibc >= 2.14 on Wheezy

I am trying to get Protractor working for performing e2e angular testing, but protractor requires Selenium which requires ChromeDriver which requires …

Python locale error: unsupported locale setting

Why do I get the following error when doing this in python:<p>This works with other locales like fr or nl as well. I'm using Ubuntu 11.04.<p>Update: Doing …

How to set locale?

After a clean Ubuntu Server install, I get the following error when running 'perl'.<p>Where should I set my locale, system wide and user specific? If …

'unsupported locale setting' fault by command-not-found

I looked at /etc/default/locale and some of the language options were in Chinese. I removed those and added the following and everything is good now:

Comma operator

In the C and C++ programming languages, the <b>comma operator</b> (represented by the token ,) is a binary operator that evaluates its first operand and …

Ternary operator with multiple statements

I have a program flow as follows:<p>I need to translate this into a conditional expression, and this is what I have done:<p>Where do I insert statements …

Wikipedia, the free encyclopedia

Welcome to Wikipedia,<p>the free encyclopedia that anyone can edit.<p>5,675,685 articles in …