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
Mirror: archive.debian.org | |
chroot /target | |
cat > /etc/apt/apt.conf.d/10no--check-valid-until | |
Acquire::Check-Valid-Until "0"; | |
APT::Get::AllowUnauthenticated "true"; | |
Acquire::AllowInsecureRepositories "true"; |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using Nequeo.Reflection; /* https://github.com/nequeo/misc/blob/master/csharp/DynamicTypeBuilder.cs */ | |
/* | |
This is a proof of concept how create at runtime the code like this: | |
var query = datacontext.Users.Where(x => x.IsActive); | |
var results = query.Select(x => new { Id = x.Id, Name = x.Name }); |
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
+.=10.10.10.1,10.10.10.2 |
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 | |
# | |
# Delete messages from postfix queue by specified MAILFROM & MAILTO | |
# | |
# Usage: clean-mail-queue.sh [MAILFROM] MAILTO | |
# | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin |
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
# source: https://trac.ffmpeg.org/wiki/CentosCompilationGuide | |
# yum install -y autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig zlib-devel freetype-devel speex-devel | |
dldir=$HOME/ffmpeg_sources | |
prefix=$HOME/ffmpeg_build | |
bindir=$HOME/bin | |
CURL="curl -L -C - -O" | |
[[ ! -e ${dldir} ]] && (mkdir -p ${dldir} || exit 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
[base-source] | |
name=CentOS-$releasever - Base Source | |
baseurl=http://vault.centos.org/centos/$releasever/os/Source/ | |
gpgcheck=1 | |
enabled=1 | |
gpgkey=http://vault.centos.org/RPM-GPG-KEY-CentOS-6 | |
protect=1 | |
[updates-source] | |
name=CentOS-$releasever - Updates Source |