Skip to content

Instantly share code, notes, and snippets.

View sormy's full-sized avatar

Artem Butusov sormy

View GitHub Profile
@sormy
sormy / gentoo-installer.sh
Last active March 10, 2022 09:42
gentoo quick install script
# Gentoo Installer has been moved to the repo
# The latest version is available here: https://github.com/sormy/gentoo-quick-installer
@sormy
sormy / png2icns
Created February 12, 2018 07:38
Script to convert png to icns
#!/usr/bin/env bash
# Author: Artem Butusov <art.sormy@gmail.com>
# Version: 1.0
# Idea: https://stackoverflow.com/questions/12306223/how-to-manually-create-icns-files-using-iconutil
source="$1"
if [ -z "$source" ]; then
echo "Usage: png2icns <file.png>"
@sormy
sormy / libtorrent-sequential-download.patch
Created October 24, 2017 04:45
rtorrent/libtorrent sequential download patch
diff --git a/src/download/chunk_selector.cc b/src/download/chunk_selector.cc
index 850fec0f..248a29f9 100644
--- a/src/download/chunk_selector.cc
+++ b/src/download/chunk_selector.cc
@@ -82,7 +82,7 @@ ChunkSelector::update_priorities() {
m_sharedQueue.clear();
if (m_position == invalid_chunk)
- m_position = random() % size();
+ m_position = 0;
@sormy
sormy / libtorrent.rb
Last active October 25, 2017 03:15
rtorrent / libtorrent | 2017.10
class Libtorrent < Formula
homepage "https://github.com/rakshasa/libtorrent"
head "https://github.com/rakshasa/libtorrent.git"
url "https://github.com/rakshasa/libtorrent.git", :tag => "0.13.6"
version "0.13.6"
bottle :disable,
"Cannot be built with Clang so bottle depends on GCC at runtime."
depends_on "autoconf" => :build