Skip to content

Instantly share code, notes, and snippets.

@nk23x
nk23x / STS-LNX-WORK
Created July 4, 2014 11:04
adblock plus filters
|https://graph.facebook.com/me/permissions?callback=FB.ApiServer._callbacks.f25d433a8caae&pretty=0&sdk=joey
||ivwbox.de^
||static.ak.fbcdn.net/rsrc.php/v1/yc/r/*
||seclists.org/shared/images/p/gfi/*
||isc.sans.edu/images/banners/*
||api.tweetmeme.com^
||static.ak.fbcdn.net/images/connect_sprite.png
||mixpanel.com^
||media.xda-developers.com/images/icons/*
||media.xda-developers.com/images/xda-statusicons/*
@nk23x
nk23x / slackpkg.conf
Created October 20, 2014 14:26
/etc/slackpkg/slackpkg.conf - slackware 14.0 - optimized for automatic upgrades
## /etc/slackpkg/slackpkg.conf
## slackware 14.0
## optimized for automatic upgrades
TEMP=/var/cache/packages
WORKDIR=/var/lib/slackpkg
WGETFLAGS="--passive-ftp"
DELALL=on
CHECKMD5=on
CHECKGPG=on
#!/bin/sh
set -e
# Get a list of groups a user is a member of on one line, space-seperated
# Single-quote group names with spaces, otherwise print the rest
SPACE_CHAR='-'
TMP=`mktemp`
ldapsearch -H ldap://domain.local -b OU=Everything,DC=domain,DC=local -LLL -x -z0 -D 'CN=gitolite,OU=Engineering,OU=Everything,DC=domain,DC=local' -y /var/lib/git/gitolite_ad_passwd "(sAMAccountName=$1)" userAccountControl memberOf > "$TMP"
@nk23x
nk23x / LDAP Section in gitlab.yml
Last active August 29, 2015 14:08
gitlab active directory integration
(after putting machine into domain)
Now go to your Gitlab server, log in and become the git user:
sudo su - git
And edit the ~/gitlab/config/gitlab.yml file. (Assuming you followed the official installation guide, otherwise adapt path.). The relevant LDAP section should contain this:
ldap:
enabled: true
@nk23x
nk23x / PKGBUILD
Last active August 29, 2015 14:08 — forked from LeifW/PKGBUILD
# Contributor: [Vitaliy Berdinskikh](mailto:ur6lad@archlinux.org.ua) aka UR6LAD
# Contributor: Leif Warner <abimelech@gmail.com>
_timestamp=v20111024
pkgname=jetty
pkgver=8.0.4
pkgrel=1
pkgdesc="A full-fledged production-grade lightweight Java Servlet Container"
arch=('i686' 'x86_64')
url="http://jetty.codehaus.org/jetty/"
license=('Apache' 'EPL')
#===========================================================
# Jetty start.jar arguments
# Each line of this file is prepended to the command line
# arguments # of a call to:
# java -jar start.jar [arg...]
#===========================================================
#===========================================================
@nk23x
nk23x / jetty.xml
Last active August 29, 2015 14:08 — forked from apetresc/jetty.xml
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<service_bundle
    type="manifest"
    name="jetty">
    <service
        name="application/servers/jetty"
        type="service"
        version="1">
        <create_default_instance enabled="false" />
@nk23x
nk23x / mixer_paths.xml
Created November 28, 2014 16:54
xperia e1 d2500
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
/system/etc/mixer_paths.xml
changed headphones + speaker volume
on xperia e1 d2500 to enhance output volume
-->
<mixer>
<!-- These are the initial mixer settings -->
<ctl name="Voice Rx Device Mute" id="0" value="0" />
@nk23x
nk23x / soundcloud-flash.html
Created December 22, 2014 16:40
p1.soundcloud.com - url
<iframe src="http://p1.soundcloud.com/player.swf?referer=&url=https%3A%2F%2Fsoundcloud.com%2Fnok%2Fsets%2Fmixes-techno&color=eeeeee&theme_color=f1f1f1&download=false&auto_play=false&show_artwork=false&show_comments=false&show_playcount=false&show_bpm=false&default_height=400&default_width=390"></iframe>
@nk23x
nk23x / apache-tips.txt
Created January 9, 2015 14:41
apache config tips
== # Apache Internal Dummy Connection - what is it and what should I do with it? ==
If you wish to exclude apache dummy connections from your log:
SetEnvIf Remote_Addr "83\.170\.93\.77" loopbackaccess
CustomLog logs/access_log combined env=!loopbackaccess
== # ProxyPassMatch ==
ProxyPassMatch is available, which lets you specify a pattern (Regular Expression) for your forwarding - for example, if you wanted to forward all you image requests to an image server: