Skip to content

Instantly share code, notes, and snippets.

View floodkoff's full-sized avatar

Misha Fludkov floodkoff

  • Neat.no
  • Oslo, Norway
View GitHub Profile
@mendelgusmao
mendelgusmao / btsync
Last active March 4, 2021 15:37
init.d script for btsync (based on another script built to run dropbox)
#!/bin/sh
### BEGIN INIT INFO
# Provides: btsync
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Multi-user daemonized version of btsync.
@xu-cheng
xu-cheng / cygpath.py
Last active December 14, 2015 22:39
Handle Cygwin Path in Sublime
import os
import re
import sublime
cygwin_drive_regex = re.compile(r"^/cygdrive/([a-zA-Z])/")
def cygwin_path_handle(path):
"""Cygwin Path Support"""
if sublime.platform() == "windows":
return os.path.normcase(re.sub(cygwin_drive_regex, lambda m: "%s:/" % m.groups()[0], path))
@sjb-gist
sjb-gist / waf-example.sublime-project
Created October 24, 2012 03:20
sublime-project: Build system json for waf build system.
{
"build_systems":
[
{
"cmd":
[
"${project_path:.}/waf",
"${file_name}"
],
"name": "waf",
@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