Skip to content

Instantly share code, notes, and snippets.

View ILMostro's full-sized avatar

Amel Hodzic ILMostro

View GitHub Profile
! gerneral xterm settings -----
XTerm*utf8: 1
XTerm*pointerColor: white
XTerm*pointerColorBackground: black
XTerm*cursorColor: yellow
XTerm*cursorBlink: true
XTerm*selectToClipboard: true
XTerm*SaveLines: 9000
XTerm*ScrollBar: false
XTerm*visualbell: true

tmux shortcuts & cheatsheet

start new session with specified name:

tmux new -s mysession


tmux a  #  (or at, or attach)

attach to named:

ILMostro / Aurora.desktop
Created February 19, 2014 16:48
[Desktop Entry]
GenericName=Web Browser
Comment=Browse the Web
Exec=/home/user/firefox/firefox-bin -P aurora %u
# Icon=aurora

Occasionally we will deploy a virtual instance into our KVM infrastructure and realize after the fact that we need more local disk space available. This is the process we use to expand the disk image. This process assumes the following:

  • You're using legacy disk partitions. The process for LVM is similar and I will describe that in another post.
  • The partition you need to resize is the last partition on the disk.

This process will work with either a qcow2 or raw disk image. For

ILMostro / Install Awesome in Centos 7 Guide
Last active March 31, 2020 13:55 — forked from melvincabatuan/Install Awesome in Centos 7 Guide
Install Awesome in Centos 7 Guide
Get the Release.key
rpm --import /tmp/Release.key
rpm --import
Enable the Fedora19 repo (NOTE: obsolete/archived)
vi /etc/yum.repos.d/f19.repo
ILMostro /
Created August 24, 2016 04:50
Patch & Install OpenVZ Kernel & Setup IPTables Rules
echo "Fetching OpenVZ Repo..."
cd /etc/yum.repos.d
ILMostro /
Created March 24, 2017 16:11 — forked from mikkeloscar/
Setup armv7h chroot under x86_64 host (Archlinux/Archlinuxarm biased)

Setup armv7h chroot under x86_64 host (Archlinux/Archlinuxarm biased)

Simple way to setup an arm chroot for building packages for your arm devices. This is an alternative to cross-compiling where you are limited to only linking against the libs in your toolchain.

Setup chroot-fs

You can store the chroot wherever you like. I choose to store it in a disk-image which I mount to my filesystem.

ILMostro /
Created April 1, 2017 21:08 — forked from kvnsmth/
A real world usage for git subtrees.

Let's say you have an iOS project, and you want to use some external library, like AFNetworking. How do you integrate it?

With submodules

Add the project to your repo:

git submodule add Vendor/AFNetworking

or something to that effect.

ILMostro /
Created April 25, 2017 21:11 — forked from n0ts/
Get latest Oracle JDK package bash shell script
# You must accept the Oracle Binary Code License
# usage: <ext> <jdk_version>
# ext: rpm
# jdk_version: default 8
ILMostro /
Last active December 18, 2019 09:07
Documenting the work done and/or needed on a Gentoo system to make SELinux work with systemd
IRC Logs from the #gentoo-hardened and #selinux IRC channels on FreeNode
2018-01-27 23:13:50	-->	ilmostro (~ilmostro@unaffiliated/ilmostro) has joined #gentoo-hardened
2018-01-27 23:13:50	--	Topic set by Zorry (~quassel@gentoo/developer/zorry) on Wed, 06 Dec 2017 19:01:01
2018-01-27 23:13:51	--	Channel #gentoo-hardened: 270 nicks (9 ops, 38 voices, 223 normals)
2018-01-27 23:13:52	--	Channel created on Sun, 26 Nov 2006 00:42:49
2018-01-27 23:54:23	ilmostro	Does anyone here know why the 17.0 SELinux profile is in "dev" still? I'm on a 17.0 systemd desktop profile right now.  AFAICT, the stable selinux profile is part of the hardened, unversioned profile set.  Has anyone used the 17.0 selinux profile successfully?
2018-01-28 00:29:20	ilmostro	I come from a RHEL background, where, AFAIK, the default SELinux setup is "targeted" with "unconfined" domain enabled.  After reading the wiki page for SELinux/Installation, I realize that might not be as secure as I had assumed. Alterna