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
/** | |
* @typedef {Object} Person | |
* @property {String} login Идентификатор сотрудника. | |
* @property {Number} floor "Домашний" этаж сотрудника. | |
* @property {String} avatar Ссылка на аватар. | |
*/ | |
/** | |
* @typedef {Object} Room | |
* @property {Number} id Идентификатор переговорки. |
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
<# | |
.SYNOPSIS | |
Create a new desktop wallpaper from various sources and optionally overlay some text. | |
.DESCRIPTION | |
The script can be run manually, at logon or even as a scheduled task to update the wallpaper regularly | |
Wallpaper sources include: | |
- A solid colour |
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
apt-get install kexec-tools | |
# Insert this at the top of /etc/init.d/rcS | |
if grep -qv ' kexeced$' /proc/cmdline ;then | |
kexec --load /vmlinuz --initrd=/initrd.img --append='root=LABEL=DOROOT kexeced' && | |
mount -o ro,remount / && | |
kexec -e | |
fi | |
# Then just use apt/dpkg to install whatever kernel you want, e.g. from http://kernel.ubuntu.com/~kernel-ppa/mainline/ |
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
import re | |
import random | |
import base64 | |
from scrapy import log | |
class RandomProxy(object): | |
def __init__(self, settings): | |
self.proxy_list = settings.get('PROXY_LIST') | |
fin = open(self.proxy_list) |