Skip to content

Instantly share code, notes, and snippets.

View ILMostro's full-sized avatar
🎯
Focusing

Amel Hodzic ILMostro

🎯
Focusing
View GitHub Profile
@alefteris
alefteris / firefox-aurora.desktop
Created November 19, 2011 20:36
Ubuntu Unity launcher item desktop file for Firefox Aurora
[Desktop Entry]
Version=1.0
Name=Firefox Aurora
Comment=Browse the World Wide Web
GenericName=Web Browser
Exec=/opt/apps/aurora/firefox -P aurora -no-remote %u
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=/opt/apps/aurora/chrome/icons/default/default48.png
@dupuy
dupuy / README.rst
Last active June 25, 2024 15:05
Common markup for Markdown and reStructuredText

Markdown and reStructuredText

GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.

@BipedalTV
BipedalTV / MythCutKey
Last active August 21, 2020 23:36 — forked from dmoo1790/gist:507582
Script to cut MythTV recordings 0.26+fixes
#!/bin/bash
# MythCutKey Version 0.15e
# This script cuts myth recordings at key frames using the MythTV seek table.
# Why? No external programs required, lossless and fast.
# Updates the myth database with sql calls.
# Rebuilds output file seek table with mythutil (mythcommflag at present).
# Output files may NOT be easily editable again and may have glitches at cut points.
#
# Undo option allows restoration of original recording and associated database
@kvnsmth
kvnsmth / example-subtree-usage.md
Last active March 5, 2023 21:58
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.

tmux shortcuts & cheatsheet

start new session with specified name:

tmux new -s mysession

attach:

tmux a  #  (or at, or attach)

attach to named:

@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
@mikkeloscar
mikkeloscar / guide.md
Created June 14, 2014 20:44
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.

@n0ts
n0ts / get_oracle_jdk_x64.sh
Last active September 16, 2023 12:07
Get latest Oracle JDK package bash shell script for linux/osx/windows
#!/bin/bash
# You must accept the Oracle JDK License Update
# https://www.oracle.com/java/technologies/javase-downloads.html
# usage: get_oracle_jdk_x64.sh <jdk_version> <platform> <ext>
# jdk_version: 14
# platform: linux or osx or windows
# ext: rpm or dmg or tar.gz or exec
jdk_version=${1:-14}
@lilydjwg
lilydjwg / lxc-arch2
Last active April 9, 2024 16:34
lxc-arch2: a script to create a copy of my Arch Linux system in systemd-nspawn for testing
#!/bin/zsh -e
cd ~/tmpfs
mkdir -p .lxc-root .lxc-data/root/etc .lxc-work
sudo GDK_DPI_SCALE=$GDK_DPI_SCALE zsh -e - <<'EOF'
chown 0:0 .lxc-data/root .lxc-data/root/etc
modprobe overlay
mountpoint .lxc-root || mount -t overlay -o lowerdir=/,upperdir=$PWD/.lxc-data/root,workdir=$PWD/.lxc-root overlayfs $PWD/.lxc-root
@melvincabatuan
melvincabatuan / Install Awesome in Centos 7 Guide
Last active April 24, 2020 03:37
Install Awesome in Centos 7 Guide
1. Enable the Fedora 19 YUM Repository for CentOS
http://paperiniktips.sviluppo-siti-web.com/how-to-enable-the-fedora-19-yum-repository-for-centos/
Get the Release.key
http://paperiniktips.sviluppo-siti-web.com/how-to-install-fedora-19-gpg-key/
rpm --import /mnt/Release.key
vi /etc/yum.repos.d/f19.repo