Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
# muzebra.com/vk.com parser & downloader
import os
import requests
from sys import argv, exit
from bs4 import BeautifulSoup
# settings
ignore = "//#"
@nobodyzzz
nobodyzzz / test.rb
Created November 2, 2012 15:10
Test sinatra/skeletor for processing 'charset' header
module V1
class Test < Skeletor::SinatraApplication
set :api_version, "1.0"
set :resource_prefix, /^\//
action :test
post "/test" do
begin
status 201
body params["test"]
require File.expand_path("../../config/init.rb", __FILE__)
require 'right_support'
RightSupport::Log::Mixin.default_logger = Logger.new(STDOUT) || RightSupport::Log::SystemLogger.new("SchedulingServcie", {:facility => "local0"})
requests_queue = Queue.new
responses_queue = Queue.new
class Task
class << self
@ECHO OFF
IF "%~1" == "" GOTO USAGE
IF "%~1" == "work" GOTO WORK
IF "%~1" == "play" GOTO PLAY
:WORK
FOR /F %%G in (lst) DO @ECHO 127.0.0.1 %%G #gsd >> %WINDIR%\System32\drivers\etc\hosts
GOTO EXIT
:PLAY
// ==UserScript==
// @name Inbox global ban
// @description Ban them all!
// @include http://leprosorium.ru/my/inbox/*
// ==/UserScript==
if(document.querySelector(".js-inboxPerson-ban")){
var banElement = document.createElement("span");
var unbanElement = document.createElement("span");
var insertionNode = document.querySelector(".js-inboxPeople");
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Drawing;
using System.Text;
using System.Text.RegularExpressions;
using System.Xml;
namespace Greenshot.Hostings
var Clipboard = {
copy: function(data) {
var textArea = document.createElement("textarea");
textArea.style.position = "absolute";
textArea.style.left = "-100%";
textArea.value = data;
document.body.appendChild(textArea);
textArea.select();
document.execCommand("Copy");
// ==UserScript==
// @name Video inline watcher
// @include *
// @exclude http://www.youtube.com/*
// @exclude http://youtube.com/*
// ==/UserScript==
/* show or hide the inline player */
function grayOut(vis, options, extra) {
// Pass true to gray out screen, false to ungray