View str_replace.py
start_string = "abcdefg" | |
replace_string = "abc" | |
endstring = start_string.replace(replace_string, "") | |
# Result endstring: "defg" |
View PKGBUILD
# Maintainer: William Turner <willtur.will@gmail.com> | |
# Maintainer: Caleb Maclennan <caleb@alerque.com> | |
pkgname=afdko | |
pkgver=3.0.2a5 | |
pkgrel=1 | |
pkgdesc='Adobe Font Development Kit for OpenType' | |
arch=('x86_64') | |
url="https://github.com/adobe-type-tools/$pkgname" | |
license=('custom') |
View nvfantemp.sh
#!/bin/sh | |
#command="optirun -b none nvidia-settings -c :8" | |
command="nvidia-settings -c :0" | |
# fan speed offset from temperature value | |
offset=0 | |
# sets the refresh interval in seconds | |
interval=10 | |
# reset values upon termination |
View PKGBUILD
# $Id$ | |
# Maintainer: Maxime Gauduin <alucryd@archlinux.org> | |
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org> | |
# Contributor: Ben Reedy <thebenj88@gmail.com> | |
# Contributor: Clement Guerin <geecko.dev@free.fr> | |
# Contributor: Thiago Kenji Okada <thiago.mast3r@gmail.com> | |
pkgbase=ppsspp | |
pkgname=('ppsspp' 'ppsspp-headless' 'ppsspp-qt') | |
pkgver=1.5.4.r374.b6ce6e2e6 |
View build_boost.sh
#!/usr/bin/sh | |
export CC="ccache gcc" | |
export CXX="ccache g++" | |
export CPPFLAGS="-D_FORTIFY_SOURCE=2" | |
export CFLAGS="-march=native -O2 -pipe -fstack-protector-strong -fno-plt -m32" | |
export CXXFLAGS="-march=native -O2 -pipe -fstack-protector-strong -fno-plt -m32" | |
export LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -m32" | |
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' |