It reads your torrents. Spit out magnet URIs.
$ ./magneto.rb magneto.rb.torrent
Results in:
#!/bin/bash | |
#In amazon linux, Create a Docker group section it is neccesary add user to docker group: | |
sudo usermod -aG docker $(whoami) | |
# Build an image | |
docker build -f DOCKERFILE -t image_name . | |
# Run a container | |
docker run -it -p HOSTPORT:CONTAINER_EXPOSED_RPORT --name container_name image_name |
guard 'shell' do | |
watch(/relation_tree_spec\.rb/) { `clear && ruby relation_tree_spec.rb` } | |
end |
It reads your torrents. Spit out magnet URIs.
$ ./magneto.rb magneto.rb.torrent
Results in:
$:.unshift File.expand_path(File.dirname(__FILE__)) | |
require "viz" | |
run Sinatra::Application |
Copyright (C) 2011 by Colin MacKenzie IV | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in |
#!/usr/bin/perl | |
use 5.008; | |
use strict; | |
use Memoize; | |
# by Aristotle Pagaltzis <http://stackoverflow.com/users/9410/aristotle-pagaltzis> | |
# taken from thread http://stackoverflow.com/questions/223678/git-which-commit-has-this-blob | |
# on 6 june 2010 | |
my $usage = |
Many users of Git are curious about the lack of delta compression at the object (blob) level when commits are first written. This efficiency is saved until the pack file is written. Loose objects are written in compressed, but non-delta format at the time of each commit.
A simple run though of a commit sequence with only the smallest change to the image (in uncompressed TIFF format to amplify the observable behavior) aids the understanding of this deferred and different approach efficiency.
Create the repo:
#!/bin/bash | |
lines=$(tput lines) | |
columns=$(tput cols) | |
echo "Lines: " $lines | |
echo "Columns: " $columns |
`echo 'wait'` #doesn't work | |
#system("echo 'wait'") #works | |
#system("sleep 10") #work | |
p "done |
#! /bin/sh | |
# Record - record shell session using script(1) | |
# Copyright (C) 2011 Matous J. Fialka, <http://mjf.cz/> | |
# Released under the terms of The MIT License | |
RECORD_PATH="$HOME/.typescripts/%Y/%m/%d" | |
RECORD_FILE='%H%M%S' | |
RECORD_TIMING_FILE="$RECORD_FILE.timing" |