Skip to content

Instantly share code, notes, and snippets.

@arthurleon
arthurleon / remove-trailing-spaces
Created June 25, 2015 15:01
How to remove spaces at the end and the beginning of a cell or selection
Find & Replace:
Search = spacebar*$
Replace = nothing
Check Regular Expressions
@arthurleon
arthurleon / unique-val-col-calc
Created June 25, 2015 14:44
Get unique values of a column in Libre Office Calc
Select the whole column
Data > Filter > Standard Filter
Change 'Field Name' to -none- , click on 'More options' and check on 'No duplication' box
Source: http://superuser.com/questions/238656/openoffice-get-distinct-values-from-column
@arthurleon
arthurleon / RVM Cheat Sheet
Created June 10, 2015 16:16
Useful RVM commands.
Install a ruby version
----------------------
rvm install 2.2
List Rubies
-----------
rvm list
Use a Ruby Version
------------------
@arthurleon
arthurleon / no-ip2
Last active February 6, 2023 15:06
This script starts noip2 client at boot time on Ubuntu 14.04. Put it on /etc/init.d, change the attributes to be executable "sudo chmod 755 /etc/init.d/no-ip2" and change its owner to root "sudo chown root:root /etc/init.d/no-ip2"
#######################################################
#! /bin/sh
case "$1" in
start)
echo "Starting noip2."
/usr/local/bin/noip2
;;
stop)
echo "Shutting down noip2."
pkill noip2