Skip to content

Instantly share code, notes, and snippets.

View ILMostro's full-sized avatar
🎯
Focusing

ILMostro ILMostro

🎯
Focusing
View GitHub Profile
@ILMostro
ILMostro / Aurora.desktop
Created February 19, 2014 16:48
firefox-aurora.desktop
[Desktop Entry]
Version=1.0
Name=Aurora
GenericName=Web Browser
Comment=Browse the Web
Exec=/home/user/firefox/firefox-bin -P aurora %u
Icon=/home/user/firefox/browser/icons/mozicon128.png
# Icon=aurora
Terminal=false
Type=Application

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

! 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
@ILMostro
ILMostro / patch_kernel.sh
Created August 24, 2016 04:50
Patch & Install OpenVZ Kernel & Setup IPTables Rules
#!/bin/bash
el_version="6"
kernel_major="2.6.32"
kernel_minor="279.5.1"
vz_major="042stab061"
vz_minor=".2"
echo "Fetching OpenVZ Repo..."
cd /etc/yum.repos.d
@ILMostro
ILMostro / guide.md
Created March 24, 2017 16:11 — forked from mikkeloscar/guide.md
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
ILMostro / example-subtree-usage.md
Created April 1, 2017 21:08 — forked from kvnsmth/example-subtree-usage.md
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 git@github.com:AFNetworking/AFNetworking.git Vendor/AFNetworking

or something to that effect.

@ILMostro
ILMostro / get_oracle_jdk_linux_x64.sh
Created April 25, 2017 21:11 — forked from n0ts/get_oracle_jdk_x64.sh
Get latest Oracle JDK package bash shell script
#!/bin/bash
# You must accept the Oracle Binary Code License
# http://www.oracle.com/technetwork/java/javase/terms/license/index.html
# usage: get_jdk.sh <ext> <jdk_version>
# ext: rpm
# jdk_version: default 8
ext=rpm
jdk_version=8
@ILMostro
ILMostro / lxc-arch2
Last active February 11, 2018 22:46 — forked from lilydjwg/lxc-arch2
lxc-arch2: a script to create a copy of my Arch Linux system in LXC for testing
#!/bin/zsh -e
cd ~/tmpfs
mkdir -p .lxc-root .lxc-data/etc .lxc-data/home/lilydjwg/{.vim,.cache} .lxc-work
sudo GDK_DPI_SCALE=$GDK_DPI_SCALE zsh -e - <<'EOF'
modprobe overlay
mountpoint .lxc-root || mount -t overlay -o lowerdir=/,upperdir=$PWD/.lxc-data,workdir=$PWD/.lxc-root overlayfs $PWD/.lxc-root
# .lxc-root/etc/resolv.conf is protected
@ILMostro
ILMostro / dropdown.md
Created December 16, 2019 09:12 — forked from citrusui/dropdown.md
"Dropdowns" in Markdown
How do I dropdown?
This is how you dropdown.

<details>
<summary>How do I dropdown?</summary>
<br>
This is how you dropdown.
@ILMostro
ILMostro / gentoo-wip-systemd-selinux.md
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