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 | |
#0 */2 * * * /home/jenkins/expire.sh # in crontab -e | |
DIR=/home/ice/tmp/56866493 | |
FILES="*.mp4" | |
let "EXPIRETIME=172800" # expire time in seconds | |
cd $DIR | |
for f in $FILES |
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 python2 | |
# -*- coding: utf-8 -*- | |
""" | |
Скрипт для скачивания музыки с сайта vkontakte.ru (vk.com) | |
Запуск: | |
python vkcom_audio_download.py | |
Принцип работы: | |
Скрипт проверяет сохраненный access_token. Если его нет или срок истек, |
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
require 'rss/2.0' | |
require 'cgi' | |
require 'net/http' | |
host = Net::HTTP.new('bash.im', 443) | |
host.use_ssl = true | |
resp = host.get('https://bash.im/rss/') | |
data = resp.body | |
parsed = RSS::Parser.parse(data.gsub(/\<hr\>/, '<hr/>'), false) | |
parsed.items.each { |x| puts CGI::unescapeHTML(x.description.gsub("\n", "").gsub("<br>", "\n")); puts "%\n" } |
NewerOlder