Skip to content

Instantly share code, notes, and snippets.

View denis's full-sized avatar

Denis Barushev denis

View GitHub Profile
@denis
denis / S15hosts
Created April 19, 2014 19:42
ZyXEL Keenetic /media/DISK_A1/system/etc/init.d/S15hosts
#!/bin/sh
RELOAD_DNS="killall -HUP dnsmasq"
start() {
if [ ! -f /var/hosts~ ]; then
cp /var/hosts /var/hosts~
flash STATICLEASE_TBL | while read line; do
ip=`echo $line | cut -f3 -d ";" | cut -f2 -d "=" | sed 's/"//g'`

Туристический словарь

Б

Бабаклава — головной убор типа «балаклава».

Бульмень — краткая разговорная форма для «более-менее»; узел [булинь][1].

Г

/*
random
AcKd
AK
AKs
AKo
TT+
77-KK
QQ,AQs,77,44-22,KK+
# Copyright (c) 2005 Rick Olson
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
require "capone"
set :application, "podcastly"
set :repository, "git@github.com:denis/#{application}.git"
set :host, "#{application}.com"
set :whenever, true
set :delayed_job, true
# See capone/recipes/defaults.rb for defaults
# 0: false
# 1: 0
# 2: true
# 3: 1
# 4: nil
# 5: 2
# ...
# 338: :"!"
# 378: :%
# 388: :&

Ubuntu 8.10 Server Setup

Update system:

aptitude update
aptitude -y safe-upgrade

aptitude install -y build-essential

Радио-Т

<itunes:image href="http://radio-t.com/logo.jpg" />

<image>
	  <title>Радио-Т</title>
    <url>http://radio-t.com/logo.jpg</url>
    <link>http://radio-t.com</link>
apt-get install ntp ntpdate
aptitude -y install user-setup
user-setup
A user account will be created for you to use instead of the root account for non-administrative activities.
if [ -e $ROOT/etc/sudoers ]; then
$log $chroot $ROOT addgroup --system admin >/dev/null 2>&1 || true
$log $chroot $ROOT adduser "$USER" admin >/dev/null 2>&1 || true
#!/usr/bin/env ruby
#
# Git log to iCalendar
#
# Written by Dmitry Chestnykh, 5 Aug 2008
# Public domain
#
# Usage:
#
# log2icalendar.rb path-to-git-repo > outfile.ics