Skip to content

Instantly share code, notes, and snippets.

View ushkinaz's full-sized avatar
🇺🇦

ushkinaz

🇺🇦
  • Georgia
View GitHub Profile
@ushkinaz
ushkinaz / jet
Last active October 2, 2015 10:17
Rebuild and launch
#!/bin/bash
# Builds and runs curent module in a jetty container
# Usage:
# jet [profile]
#
# Dependencies:
# maven
# pv
#
@ushkinaz
ushkinaz / GelfFlooder.java
Created February 3, 2012 05:44
Flood Graylog Server
package ru.agent.commons;
import org.apache.log4j.Logger;
import org.graylog2.GelfMessage;
import org.graylog2.GelfSender;
import java.net.SocketException;
import java.net.UnknownHostException;
import java.util.Date;
import java.util.concurrent.ExecutorService;
@ushkinaz
ushkinaz / cygwin-mirror-speed.py
Last active February 22, 2025 23:45
Tests HTTP mirrors of Cygwin by measuring download times.
#!/usr/bin/env python3
"""
Script to test HTTP mirrors of Cygwin by measuring download times.
Originally written in 2011, modernized in 2025.
"""
from math import floor
from urllib.request import urlopen
import argparse
import sys
@ushkinaz
ushkinaz / gist:1003291
Created June 1, 2011 20:53
Renaming with git
find . -name '*Operand*' | awk '{print "git mv " $1 " " $1}' | sed -e s/Operand/Action/2 | bash