This file contains hidden or 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
# Copyright 1999-2012 Gentoo Foundation | |
# Distributed under the terms of the GNU General Public License v2 | |
# $Header: $ | |
EAPI="2" | |
COMMIT="0733804" | |
MC_PV="1.3.2" | |
MC_PN="minecraft-server-unobfuscated" | |
MC_JAR="${MC_PN}-${MC_PV}.jar" |
This file contains hidden or 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
# Copyright 1999-2012 Gentoo Foundation | |
# Distributed under the terms of the GNU General Public License v2 | |
# $Header: $ | |
EAPI="2" | |
COMMIT="2b68ccd" | |
BUKKIT_API="1.3.2-R0.1" | |
JAVA_PKG_IUSE="doc source" | |
inherit games java-pkg-2 java-pkg-simple |
This file contains hidden or 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 | |
CONF=/etc/openvpn/home/client-config/DEFAULT | |
IP_URL=http://api.antizapret.info/group.php | |
trap cleanup EXIT | |
cleanup() { | |
rm $NEW_CONF 2>/dev/null | |
} |
This file contains hidden or 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
# $UBIFS is ubifs image file | |
# make sure $IMAGE is a ubifs image file | |
blkid $(IMAGE) | |
$(IMAGE): ... TYPE="ubifs" | |
# size of created mtd is 256.0 MiB | |
modprobe nandsim first_id_byte=0x2c second_id_byte=0xda third_id_byte=0x90 fourth_id_byte=0x95 | |
flash_erase /dev/mtd0 0 0 | |
ubiformat /dev/mtd0 -s 2048 -O 2048 | |
modprobe ubi |
This file contains hidden or 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
myURL = "http://freedns.afraid.org/dynamic/update.php?" | |
Set objHTTP = CreateObject( "WinHttp.WinHttpRequest.5.1" ) | |
objHTTP.Open "GET", myURL, False | |
objHTTP.Send |
This file contains hidden or 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
youtube-dl -i --download-archive ~/video/youtube/index.txt -o ~/video/youtube/'%(playlist_title)s-%(playlist_id)s/%(title)s-%(id)s.%(ext)s' 'https://www.youtube.com/playlist?list=PLcgq8tMT1d0bNRcNf9EGDPyf-tSwTILqf' 'https://www.youtube.com/playlist?list=PLcgq8tMT1d0aYUmXr552GVrL6G8hd0EfL' 'https://www.youtube.com/channel/UC3swwxiALG5c0Tvom83tPGg' |
This file contains hidden or 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 | |
set -u -e | |
cleanup() { | |
if [ -v tmp ]; then | |
echo rm -rf "$tmp" | |
fi | |
} |
This file contains hidden or 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
dig +short myip.opendns.com @resolver1.opendns.com | |
# from: http://unix.stackexchange.com/questions/22615/how-can-i-get-my-external-ip-address-in-bash/81699#81699 |
This file contains hidden or 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
Многие знают о проблемах с rdesktop, когда при совпадении сочетания клавиш для переключения раскладок в Линуксе и Виндусе могли вводиться неправильные символы ("ю" вместо ".", "Ж" вместо ";") (altbug #5912). Положение отчасти спасало использование raw-клавиатуры (параметр "-y"), но такое решение оказалось несовместимым с новым драйвером ввода evdev (altbug #19968, обсуждение и далее по треду). | |
Жизнь же с разным переключением раскладок - не в радость. | |
Недавно удалось найти обходной маневр для решения этой проблемы: помогает удаление из используемого keymap-файла множества определений, без которых rdesktop вполне может обойтись, оставив там только нужное. | |
Например, можно создать файл /usr/share/rdesktop/keymaps/en-us.fixed со следующим содержимым: | |
include common | |
map 0x409 |
This file contains hidden or 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
00 6 * * * root rdiff-backup --terminal-verbosity 0 --include-globbing-filelist /etc/rdiff-backup.repository.filter /srv/repository/ /var/lib/backup/repository/ | |
00 6 * * * root rdiff-backup --terminal-verbosity 0 --force --remove-older-than 3M /var/lib/backup/repository/ |
OlderNewer