This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
INSTALL_MASK="/etc/cron.daily/0yum-update.cron" | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sed -i -- 's/runscript/openrc-run/g' $(grep -l '^#!/sbin/runscript' /etc/init.d/*) | |
NewerOlder