Apache2 Configuration under Debian GNU/Linux
Files and Directories in '/etc/apache2'
Tools
Using mod_cache_disk
SSL
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
for WID in `xwininfo -root -tree | sed '/"plasma-desktop": ("Plasma" "Plasma")/!d; s/^ *\([^ ]*\) .*/\1/g'`; do | |
xprop -id $WID -remove _KDE_NET_WM_SHADOW | |
done | |
# or | |
for WID in `xwininfo -root -tree | sed '/"Plasma": ("plasmashell" "plasmashell")/!d; s/^ *\([^ ]*\) .*/\1/g'`; do | |
xprop -id $WID -remove _KDE_NET_WM_SHADOW | |
done |
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
CREATE OR REPLACE FUNCTION base36_encode(IN digits bigint, IN min_width int = 0) | |
RETURNS varchar AS $$ | |
DECLARE | |
chars char[]; | |
ret varchar; | |
val bigint; | |
BEGIN | |
chars := ARRAY['0','1','2','3','4','5','6','7','8','9' | |
,'A','B','C','D','E','F','G','H','I','J','K','L','M' | |
,'N','O','P','Q','R','S','T','U','V','W','X','Y','Z']; |
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 | |
# Script adb+ | |
# Usage | |
# You can run any command adb provides on all your currently connected devices | |
# ./adb+ <command> is the equivalent of ./adb -s <serial number> <command> | |
# | |
# Examples | |
# ./adb+ version | |
# ./adb+ install apidemo.apk | |
# ./adb+ uninstall com.example.android.apis |
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
public class Animal<T> { | |
public T animal; | |
public void setAnimal(T animal) { | |
this.animal = animal; | |
} | |
public T get() { | |
return animal; |
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
// Lambda Expressions | |
std::vector<int> v; | |
for (int i = 0; i < 10; i++) | |
{ | |
v.push_back(i); | |
} | |
std::for_each(v.rbegin(), v.rend(), [](int n) { std::cout << n << " "; }); | |
std::cout << std::endl; |
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/env bash | |
function update () | |
{ | |
echo "Call to update ($1)" | |
if [ -d $1/.svn ] | |
then | |
echo "Updating $1..." | |
svn up $1 | |
else |
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
# $Id$ | |
# Maintainer: Felix Yan <felixonmars@archlinux.org> | |
# Contributor: Lev Lybin <lev.lybin@gmail.com> | |
# Contributor: lagrange <flkazemakase@gmail.com> | |
# Contributor: mid-kid <esteve.varela@gmail.com> | |
pkgbase=python-kivy | |
pkgname=('python-kivy' 'python2-kivy') | |
pkgver=master | |
pkgrel=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
gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -fPIC -Ikivy/include -I/usr/include/SDL2 -I/usr/local/include/SDL2 -I/usr/include/SDL2 -I/usr/include/SDL2 -I/usr/include/python3.6m -c kivy/core/audio/audio_sdl2.c -o build/temp.linux-x86_64-3.6/kivy/core/audio/audio_sdl2.o | |
kivy/core/audio/audio_sdl2.c: In function ‘__pyx_f_4kivy_4core_5audio_10audio_sdl2_mix_init’: | |
kivy/core/audio/audio_sdl2.c:1814:63: error: ‘MIX_INIT_MODPLUG’ undeclared (first use in this function); did you mean ‘MIX_INIT_MOD’? | |
__pyx_v_want_flags = (__pyx_v_want_flags | ((MIX_INIT_MOD | MIX_INIT_MODPLUG) | MIX_INIT_FLUIDSYNTH)); | |
^~~~~~~~~~~~~~~~ | |
MIX_INIT_MOD | |
kivy/core/audio/audio_sdl2.c:1814:63: note: each undeclared identifier is reported only once for each function it appears in | |
kivy/core/audio/audio_sdl2.c |
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
# $Id$ | |
# Maintainer: Felix Yan <felixonmars@archlinux.org> | |
# Contributor: Lev Lybin <lev.lybin@gmail.com> | |
# Contributor: lagrange <flkazemakase@gmail.com> | |
# Contributor: mid-kid <esteve.varela@gmail.com> | |
pkgbase=python-kivy | |
pkgname=('python-kivy' 'python2-kivy') | |
pkgver=master | |
pkgrel=1 |
NewerOlder