Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
./replace_folder_file.sh ../places/scalable/folder-documents.svg
./replace_folder_file.sh ../places/scalable/folder-download.svg
./replace_folder_file.sh ../places/scalable/folder-dropbox.svg
./replace_folder_file.sh ../places/scalable/folder-music.svg
./replace_folder_file.sh ../places/scalable/folder-pictures.svg
./replace_folder_file.sh ../places/scalable/folder-publicshare.svg
./replace_folder_file.sh ../places/scalable/folder-remote.svg
./replace_folder_file.sh ../places/scalable/folder-saved-search.svg
./replace_folder_file.sh ../places/scalable/folder.svg
#!/bin/bash
#This will replace the colors in a folder svg file. The one hack is that to change the foreground
#shape colors you must provide the old color and this color cannot be repeated anywhere that you do
#not want it to change. The folder back, paper, and front colors are precise replacements in
#xml. However, the glyph color replacement is a regular expression search/replace. To change the
#glyph color again, you must replace the original value with the new value and run it again.
backColor=1abc9c #default is 34495d
frontColor=2980b9 #default is 1abc9c
paperColor=ffffff #default is ffffff
@demmm
demmm / fstab
Last active August 29, 2015 13:58
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs nodev,nosuid 0 0
UUID=19a9e7a7-5fbf-407b-b710-4e6704d4f9fc / ext4 defaults 0 1
UUID=69a32168-6a9f-4f5e-9929-78412a18ba27 swap swap defaults 0 0
UUID=b35a6b4e-c1a1-40d1-8cd3-9e30b7c9ce39 /home ext4 defaults 0 0
UUID=2effc15f-688c-4686-b24c-2d2697200bee /data ext4 defaults,noatime,discard 0 0
@demmm
demmm / Bumblebee
Last active August 29, 2015 14:00
sudo pacman -Syu
sudo pacman -S nvidia-bumblebee bbswitch bumblebee
sudo systemctl enable bumblebeed
sudo usermod -a -G bumblebee user_name
#!/bin/bash
if [[ "$DESKTOP_SESSION" == "kf5-plasma" ]]; then
export QTDIR="/usr/lib/qt5"
export PATH="usr/bin:$QTDIR/bin:$PATH"
export QT_PLUGIN_PATH="/usr/lib/plugins:/usr/lib/qt5/plugins"
export QT_INCLUDE_PATH="/usr/include/qt5"
export QML2_IMPORT_PATH="/usr/lib/qml:/usr/lib/qt5/qml"
export QML_IMPORT_PATH="$QML2_IMPORT_PATH"
export KDE_SESSION_VERSION=5
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<edit mode="assign" name="hinting" >
<bool>true</bool>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="autohint" >
sudo pacman -Syu
:: Synchronizing package databases...
kde-next is up to date
build is up to date
core is up to date
main is up to date
apps is up to date
:: Starting full system upgrade...
:: Replace bluedevil with kde-next/kf5-bluedevil? [Y/n]
:: Replace grantlee with kde-next/grantlee-qt5? [Y/n]
@demmm
demmm / gist:7253695
Last active December 27, 2015 02:39
pacman.conf
[build]
Include = /etc/pacman.d/mirrorlist
[core]
Include = /etc/pacman.d/mirrorlist
[main]
Include = /etc/pacman.d/mirrorlist
[apps]
@demmm
demmm / gist:7442919
Created November 13, 2013 02:54
fstab
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs nodev,nosuid 0 0
UUID=93251f0a-da19-415a-89f4-463bc2248c8b / ext4 defaults 0 1
UUID=1713a511-7806-4d48-9267-2f02f3fa14ef /home ext4 defaults,noatime,discard 0 0
UUID=2effc15f-688c-4686-b24c-2d2697200bee /data ext4 defaults,noatime,discard 0 0
@demmm
demmm / gist:8155776
Last active January 1, 2016 14:09
xorg-pacman.conf
[build]
Include = /etc/pacman.d/mirrorlist
[core]
Include = /etc/pacman.d/mirrorlist
[main]
Include = /etc/pacman.d/mirrorlist
[apps]