Skip to content

Instantly share code, notes, and snippets.

@nk23x
nk23x / tinyproxy.conf
Last active April 23, 2019 21:15
tinyproxy.conf + tinyproxy_filter (work) using custom adblock filters
##
## tinyproxy.conf -- tinyproxy daemon configuration file
##
Port 3128
Timeout 15
LogFile "/var/log/tinyproxy.log"
LogLevel Info
@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 / CentOS_AD_Integration
Last active January 17, 2021 05:40
Active Directory Integration
1. Install the neccessary dependancies
# yum -y install authconfig krb5-workstation pam_krb5 samba-common oddjob-mkhomedir sudo
This will install:
- authconfig which we will use to setup the configuration file basics, there may be parts missing or not quite accurate here, so some of the files seem to need a little massaging to work right later.
- krb5-workstation which installs required libraries and binaries to perform authentication against active directory using the kerberos protocol
- pam_krb5 this package provides libraries for PAM (Pluggable Authentication Modules) to interface with kerberos
- samba-common will installed the required libraries and binaries to join the linux box to the domain so domain accounts are trusted by the local machine
- oddjob-mkhomedir this package is used to automatically create home directories when your AD users log into the server the first time
@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" />