Skip to content

Instantly share code, notes, and snippets.

View ivoarch's full-sized avatar

ivoarch

  • none
View GitHub Profile
@ivoarch
ivoarch / vpn.md
Created November 8, 2022 17:14 — forked from joepie91/vpn.md
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.
@ivoarch
ivoarch / Gnome 3.20 repository for CentOSRHEL 7.x.md
Created October 28, 2016 11:39 — forked from mongoltolbo/Gnome 3.20 repository for CentOSRHEL 7.x.md
Welcome to the Gnome 3.20 repository for CentOSRHEL 7.x.

Since Red Hat spoiled us with RHEL 7.2 by rebasing Gnome, but will not be again updating Gnome for 7.3, I felt I would continue that action for them.

CentOS/RHEL is a great platform to work with, but on a workstation it feels out of date. I intended to fix that. So I built Gnome 3.20 and its dependencies for that platform.

Welcome to the Gnome 3.20 repository for CentOS/RHEL 7.x.

@ivoarch
ivoarch / xcursor theme tutorial
Created August 8, 2016 21:52 — forked from sole/xcursor theme tutorial
A lightly edited version of the xcursor theme tutorial by the_One at http://kde-look.org/content/show.php?content=11428
<---TUTORIAL FOR CREATING XCURSOR THEMES.--->
<---By ThEOnE @ kde-look--->
<---My_foros@yahoo.com.ar-->
_______________________________________________________________________________________
| |
| First of all, let me tell you that everything I know I've learned it by inspecting |
| some xcursor themes like jaguarx, and others. |
@ivoarch
ivoarch / touchpad-toggle.sh
Created February 28, 2016 23:25 — forked from llaumgui/touchpad-toggle.sh
Toggle touchpad activation with gsettings.
#!/bin/bash
#
# touchpad-toggle: Toggle touchpad activation with gsettings.
# Copyright (C) 2015 Guillaume Kulakowski <guillaume@kulakowski.fr>
# Version 1.0
#
SCHEMA="org.gnome.desktop.peripherals.touchpad"
KEY="send-events"
@ivoarch
ivoarch / xstat
Created November 24, 2015 23:32 — forked from moiseevigor/xstat
xstat bash function to get file creation time on Linux with EXT4
xstat() {
for target in "${@}"; do
inode=$(ls -di "${target}" | cut -d ' ' -f 1)
fs=$(df "${target}" | tail -1 | awk '{print $1}')
crtime=$(sudo debugfs -R 'stat <'"${inode}"'>' "${fs}" 2>/dev/null |
grep -oP 'crtime.*--\s*\K.*')
printf "%s\t%s\n" "${crtime}" "${target}"
done
}
@ivoarch
ivoarch / bash-cheatsheet.sh
Last active September 5, 2015 21:57 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@ivoarch
ivoarch / emacs-el6.repo
Last active February 8, 2016 07:50 — forked from AaronTheApe/emacs.repo
Emacs 24 CentOS Repo
[emacs]
name=Emacs repo
baseurl=http://pj.freefaculty.org/EL/6/x86_64/
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=http://pj.freefaculty.org/EL/PaulJohnson-BinaryPackageSigningKey
@ivoarch
ivoarch / png2svg.sh
Last active August 29, 2015 14:28 — forked from ykarikos/png2svg.sh
Convert png to svg using imagemagick and potrace
#!/bin/bash
if [ "$1" == "" ]; then
echo Usage: $0 pngfile
exit 0;
fi
FILE=`basename $1 .png`
if [ ! -e $FILE.png ]; then
# How to sign your custom RPM package with GPG key
# Step: 1
# Generate gpg key pair (public key and private key)
#
# You will be prompted with a series of questions about encryption.
# Simply select the default values presented. You will also be asked
# to create a Real Name, Email Address and Comment (comment optional).
#
# If you get the following response:
@ivoarch
ivoarch / TrueColor.md
Last active August 29, 2015 14:11 — forked from XVilka/TrueColour.md

Colors in terminal

It's a common confusion about terminal colors... Actually we have this:

  • plain ascii
  • ansi escape codes (16 color codes with bold/italic and background)
  • 256 color palette (216 colors+16gray + ansi) (colors are 24bit)
  • 24bit true color (888 colors (aka 16 milion))

The 256 color palete is configured at start, and it's a 666 cube of colors, each of them defined as a 24bit (888 rgb) color.