Skip to content

Instantly share code, notes, and snippets.

View lmiphay's full-sized avatar
🤿
Working from home

Paul Healy lmiphay

🤿
Working from home
  • Dublin, Ireland
View GitHub Profile
@lmiphay
lmiphay / keybase
Created September 13, 2019 18:43
some keybase stuff
### Keybase proof
I hereby claim:
* I am lmiphay on github.
* I am lmiphay (https://keybase.io/lmiphay) on keybase.
* I have a public key ASBqpPrvoSPo0231f3NkcMzg362qhodBYDDQnwCSZTuAogo
To claim this, I am signing this object:
@lmiphay
lmiphay / dropbox-on-btrfs.txt
Last active November 4, 2018 15:35
Continue using dropbox on btrfs... etc after Nov 2018
btrfs filesystem label /cloud CLOUD
fallocate -l 40G /cloud/Dropbox.loop
losetup /dev/loop0 /cloud/Dropbox.loop
mkfs.ext4 /dev/loop0
mkdir $HOME/DropboxLoop
mount -t ext4 /dev/loop0 $HOME/DropboxLoop
chown $USER:$USER $HOME/DropboxLoop
chown -R $USER:$USER $HOME/Dropbox $HOME/.dropbox
Host jumpserver
User jumpuser
HostName 1.2.3.4
ProxyCommand ssh user@finalhost -W %h:%p
Host bitbucket.foo.com
User username
ForwardX11 no
ForwardX11Trusted no
#!/bin/bash
LANG=en_US.UTF-8 \
GTK2_RC_FILES=/usr/share/themes/Adwaita-dark/gtk-2.0/gtkrc \
exec /usr/bin/anki
# Alternative see: https://ankiweb.net/shared/info/117604477
# and install via: desktop anki -> Tools menu -> Add-ons ->Browse & Install Addon
@lmiphay
lmiphay / alsa.conf
Created December 18, 2016 19:36
Ordering alsa devices by driver and id
# hda is preferred over usb (lowest wins), and PCH is preferred over NVidia
options snd-hda-intel id=PCH,NVidia index=-3,-2
options snd_usb_intel index=-1
@lmiphay
lmiphay / PyQt5-5.5.1.txt
Created December 13, 2016 13:46
Quick fix for dev-python/PyQt5-5.5.1 build failure
dev-python/PyQt5-5.5.1 builds fails with:
...
In file included from sipQtCoreqintptr.cpp:24:0:
sipAPIQtCore.h:28:17: fatal error: sip.h: No such file or directory
#include <sip.h>
^
compilation terminated.
In file included from sipQtCoreQtMouseButtons.cpp:24:0:
sipAPIQtCore.h:28:17: fatal error: sip.h: No such file or directory
#include <sip.h>
@lmiphay
lmiphay / 40-vnc.conf
Last active November 19, 2016 19:06
vnc server configuration for an existing X11 session
# /etc/X11/xorg.conf.d/40-vnc.conf
# requires: net-misc/tigervnc[server]
Section "Module"
Load "vnc"
EndSection
Section "Screen"
Identifier "Default Screen"
# create with: vncpasswd
@lmiphay
lmiphay / lxc-copy
Last active June 11, 2023 22:38
Cloning/copying an lxc on gentoo (lxc-copy / lxc-clone)
lxc-copy is the replacement for lxc-clone:
mkdir -p <new_lxc_path>
lxc-copy --name=<existing_lxc_name> --newname <new_lxc_name> --newpath /<new_lxc_path>
In the new container:
1. /etc/conf.d/hostname - set new hostname
2. /etc/conf.d/net - set new ip (if static ip)
3. /etc/hosts - add new ip/hostname
@lmiphay
lmiphay / make.conf
Created October 17, 2016 13:11
Prevent sys-apps/yum from installing a spurious cron file
...
INSTALL_MASK="/etc/cron.daily/0yum-update.cron"
...
@lmiphay
lmiphay / gentoo runscript to openrc-run fixup
Created October 16, 2016 14:09
One liner to silence boot-up warnings about runscript being used instead of openrc-run
#!/bin/bash
sed -i -- 's/runscript/openrc-run/g' $(grep -l '^#!/sbin/runscript' /etc/init.d/*)