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
schedules: | |
- tasks: 'emailfeeds' | |
interval: | |
hours: 6 | |
- tasks: [Baibako, Lostfilm, Newstudio, Alexfilm, To4ka, tvfedor, 'rutracker-films'] | |
interval: | |
minutes: 10 | |
templates: | |
global: | |
make_rss: |
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
# sudo apt-get install dnsmasq | |
# echo "address=/.dev/127.0.0.1" | sudo tee /etc/dnsmasq.conf | |
# sudo update-rc.d dnsmasq enable | |
# sudo service dnsmasq restart |
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/bash | |
logfile=$$.log | |
exec > $logfile 2>&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
ls *.mkv | while read i; do mkvmerge -o "converted/${i}" "${i}" "${i%mkv}mka" ; done |
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/bash | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |
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/bash | |
# QEMU name and PID | |
OPTS="-name windows-10-pro" | |
OPTS="$OPTS -pidfile /tmp/windows-10-pro.pid" | |
# Processor | |
#OPTS="$OPTS -cpu host,kvm=off" | |
OPTS="$OPTS -cpu host,kvm=off,hv_relaxed,hv_spinlocks=0x1fff,hv_vapic,hv_time,hv_vendor_id=whatever" |
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
Sub RefNoText() | |
'Подавить постоянную часть перекрестной и оставить | |
'только номер вставкой ключа числового формата в поле Ref | |
With Selection | |
.Fields.ToggleShowCodes | |
.Find.ClearFormatting | |
.Find.Replacement.ClearFormatting | |
With Selection.Find | |
.Text = "_Ref^#^#^#^#^#^#^#^#^#" | |
.Replacement.Text = "^& \# 0" |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
__author__ = 'xanter' | |
#from datetime import datetime | |
import signal | |
import time | |
import dbus | |
import gobject | |
import urllib2 |
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 | |
easylist() { | |
echo -n 'Getting EasyList list ... ' | |
out=/etc/dnsmasq.d/easylist.conf | |
tmp=$(mktemp) | |
wget -q -nv https://easylist-downloads.adblockplus.org/easylist.txt -O $tmp | |
egrep '^\|\|([a-Z\.]+)\^$' $tmp | cut -d '^' -f1 | sed 's#||#address=/# ; s#$#/127.0.0.1#' | sort | uniq >$tmp.$$ | |
[ $? -eq 0 ] && sudo mv -f $tmp.$$ $out && wc -l $out || echo -42 | |
rm $tmp |
OlderNewer