Skip to content

Instantly share code, notes, and snippets.

View TheRusskiy's full-sized avatar
⌨️
Living the life, one keystroke at a time

Dmitry Ishkov TheRusskiy

⌨️
Living the life, one keystroke at a time
View GitHub Profile
@TheRusskiy
TheRusskiy / execute_with_delay.py
Created November 9, 2013 11:39
Execute shell command after a specified time period. E.g. shutdown computer.
import os
import datetime
import time
execute_after_minutes = 17
command = 'shutdown /h'
# 'shutdown /s' #shutdown
# 'shutdown /h' #hibernate
def now():
return datetime.datetime.now()
@TheRusskiy
TheRusskiy / RailsCastsMultiStream.rb
Last active December 24, 2015 11:39
RailsCastsMultiStream
# Copyright © 2013 Ishkov Dmitry <[email protected]>
# This work is free. You can redistribute it and/or modify it under the
# terms of the Do What The Fuck You Want To Public License, Version 2,
# as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
require 'open-uri'
require 'nokogiri'
require 'typhoeus'
def make_name link