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
# .bash_prompt | |
BASE0=$'\E[38;5;244m' | |
BASE00=$'\E[38;5;241m' | |
BASE01=$'\E[38;5;240m' | |
BASE02=$'\E[38;5;235m' | |
BASE03=$'\E[38;5;234m' | |
BASE1=$'\E[38;5;245m' | |
BASE2=$'\E[38;5;254m' | |
BASE3=$'\E[38;5;230m' |
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 | |
# | |
# /etc/init.d/zswap || zswap.service || /usr/local/sbin/zswap || somethingsomething | |
# | |
# License: copyleft, copyup, copydown, copyright, do whatever the fuck you want. | |
### BEGIN INIT INFO | |
# Provides: zswap | |
# Required-Start: | |
# Required-Stop: |
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/sh | |
# -*- mode:shell-script sh-basic-offset:4 indent-tabs-mode:nil -*- | |
######################################################################################################################## | |
# zswap.sh - Activate and tune Zswap compressed cache for swap pages. | |
# | |
# Enables/Renables/tunes zswap without the need for initramfs/dracut/modprobe/modules-load hackery. | |
# | |
# Author : <REDACTED> | |
# Copyright: 2018 <REDACTED> <########@####.com> | |
# |
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/sh | |
# -*- mode:shell-script sh-basic-offset:4 indent-tabs-mode:nil -*- | |
######################################################################################################################## | |
# zswap.sh - Activate and tune Zswap compressed cache for swap pages. | |
# | |
# Enables/Renables/tunes zswap without the need for initramfs/dracut/modprobe/modules-load hackery. | |
# | |
# Author : <REDACTED> | |
# Copyright: 2018 <REDACTED> <########@####.com> | |
# |
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
%ifos Linux | |
%define is_suse_family %((test -e /etc/SUSE-brand || test -e /etc/SuSE-release) && echo 1 || echo 0) | |
%define is_sle_family %(grep -qi 'SUSE LINUX Enterprise' /etc/SuSE-release && echo 1 || echo 0) | |
%define is_sles %(grep -qi 'SUSE LINUX Enterprise Server' /etc/SuSE-release && echo 1 || echo 0) | |
%define is_sled %(grep -qi 'SUSE LINUX Enterprise Desktop' /etc/SuSE-release && echo 1 || echo 0) | |
%define is_opensuse %((grep -qi 'openSUSE' /etc/SUSE-brand || grep -qi 'openSuSE' /etc/SuSE-release) && echo 1 || echo 0) | |
%define is_redhat_family %(test -e /etc/redhat-release && echo 1 || echo 0) | |
# refer to http://fedoraproject.org/wiki/Packaging:DistTag | |
%define is_rhel %(grep -qi 'Red Hat Enterprise Linux Server' /etc/redhat-release && echo 1 || echo 0) |
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
diff -uNr freetype-2.9.orig/include/freetype/config/ftoption.h freetype-2.9/include/freetype/config/ftoption.h | |
--- freetype-2.9.orig/include/freetype/config/ftoption.h 2018-05-02 00:28:16.964364890 -0400 | |
+++ freetype-2.9/include/freetype/config/ftoption.h 2018-05-02 00:29:51.040464644 -0400 | |
@@ -118,7 +118,7 @@ | |
/* rendering technology that produces excellent output without LCD */ | |
/* filtering. */ | |
/* */ | |
-/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */ | |
+#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING | |
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/profile.d/freetype2.sh | |
# FreeType configuration file | |
# Subpixel hinting mode can be chosen by setting the right TrueType interpreter | |
# version. FreeType must be compiled with 'FT_CONFIG_OPTION_SUBPIXEL_HINTING', | |
# otherwise these options are not available for configuration during runtime. | |
# Currently, three versions are available: | |
# | |
# truetype:interpreter-version=35 # Classic mode (default in 2.6) | |
# truetype:interpreter-version=38 # Infinality mode |
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
#! /usr/bin/perl -w | |
# | |
# Copyright (c) 2000-2014 SUSE Linux AG, Nuernberg, Germany. | |
# All rights reserved. | |
######################################################################## | |
# create a man-page with: | |
# | |
# pod2man --section 1 --center=" " fonts-config | gzip -9 -c > fonts-config.1.gz | |
# cp fonts-config.1.gz /usr/share/man/man1/fonts-config.1.gz |
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
fish_path() { | |
setopt localoptions rcquotes nullglob | |
local result part; local -a tree expn; local -i i | |
( | |
tree=(${(s:/:)${1-${PWD/#$HOME/\~}}}) | |
if [[ $tree[1] == \~* ]] { | |
cd -q ${~tree[1]} | |
result=$tree[1]; shift tree | |
} else { cd -q / } | |
for dir in $tree; { |
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
<# | |
#> | |
function ScriptDiskPart($script) | |
{ | |
$file = [io.path]::GetTempFileName() | |
try | |
{ | |
Set-Content $file $script -Encoding utf8 | |
& diskpart /s $file > $null |