Skip to content

Instantly share code, notes, and snippets.

Piotr vpiotr

Block or report user

Report or block vpiotr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@vpiotr
vpiotr / svn-quickref.md
Created Aug 14, 2019
SVN Command Quickref
View svn-quickref.md

Basic commands

Add

  • add files

    svn add myscript.sh
    
  • add all which are not in SVN

@vpiotr
vpiotr / git-quickref.md
Last active Sep 2, 2019
Git Command Quickref
View git-quickref.md

Configure

  • show config value

    git config --global user.name
    
  • edit all config values

    nano ~/.gitconfig
    
@vpiotr
vpiotr / MyDesktopApp.nsi
Last active May 16, 2019
Sample NSIS script used in my desktop application
View MyDesktopApp.nsi
;--------------------------------------------------------------
;Sample NSIS script for MyDesktopApp
;
;Author: Piotr Likus, 2019
; https://github.com/vpiotr
;
;Initial script automatically created by Mihov NSIS Helper 3.2
; http://freeware.mihov.com
;
;Some patterns to be replaced:
@vpiotr
vpiotr / 99bottles.js
Created Oct 12, 2017
99 Botttles of Beer in JavaScript
View 99bottles.js
// 99 Botttles of Beer (see http://www.99-bottles-of-beer.net/)
// Language: JavaScript (SeaMonkey)
//
// Features:
// * no usage of digits
// * strings are not repeated
// * no external libs required
function bottles(x) {
View PassGen.java
package passgen;
import java.util.Random;
import java.util.Scanner;
/**
* Exercise 37 from "Exercises for programmers".
* @author Piotr Likus
*/
public class PassGen {
@vpiotr
vpiotr / gedit_update.md
Created Jul 27, 2016
gedit - update instruction for Linux Mint 17
View gedit_update.md

HOWTO: Update gedit to v. 3.x in Linux Mint

Introduction

In default setup, Linux Mint installs gedit in version 2.x. In order to use more recent version of this editor (for example for Markdown support), you can follow the instruction below.

Tested environment

Linux Mint 17.3

View printBits.c
/*
* Author: Piotr Likus, SpaceInSoft, 2016
* License: MIT
*/
#include <stdio.h>
// prints unsigned int in binary form
void printBits(unsigned int num)
{
@vpiotr
vpiotr / gnome_commander_centos6.md
Last active Oct 9, 2016
Gnome Commander 1.4 installation procedure
View gnome_commander_centos6.md

HOWTO: Compile & Install Gnome Commander 1.4 on CentOS 6 From TAR

Introduction

Currently there is no automatic way to install Gnome Commander on CentOS 6. Below you will find instructions how to do that using install from compiled sources. Note that this is not a clean install and some things can be missing - it is always best to use automatic install (if available).

Tested environments

View Accumulator.java
/*
* Author: Piotr Likus, SpaceInSoft, 2015
* License: MIT
*/
package com.spaceinsoft.utils;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
View NumberOperatorUtils.java
/*
* Author: Piotr Likus, SpaceInSoft, 2015
* License: MIT
*/
package com.spaceinsoft.utils;
import java.math.BigDecimal;
import java.math.BigInteger;
/**
You can’t perform that action at this time.