- Add to your
.${SHELL}rc
. - Replace
user
andpassword
. - Create
cat foo | ixio
. - Update
cat foo | ixio abc
. - View your pastes at
ix.io/user/your_username
.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
ENV['RAILS_ENV'] ||= "production" | |
require 'rubygems' | |
require 'ansi_colors' | |
require './config/environment' | |
#user = User.find_by_username("mrzyx") | |
#handles = user.contacts.collect { |c| c.person.diaspora_handle } | |
handles = Person.all.collect { |person| person.diaspora_handle } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lib LibC | |
# Common bindings go here | |
fun chdir(...) | |
fun printf(...) | |
fun wprintf(...) | |
fun atoi(...) | |
fun watoic(...) | |
end | |
ifdef windows |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo pacman -S opendkim | |
sudo cp /etc/opendkim/opendkim.conf{.sample,} | |
sudo mkdir /var/lib/dkim | |
sudo chown opendkim:mail /etc/opendkim/opendkim.conf /var/lib/dkim | |
sudo chmod 700 /var/lib/dkim | |
sudo chgrp mail /var/spool/postfix/private | |
sudo -u opendkim opendkim-genkey -D /var/lib/dkim -b 2048 -s mail | |
sudo usermod -a -G mail postfix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
Version: GnuPG v2.0.22 (GNU/Linux) | |
mQENBE7I+ZUBCAC1zez5X2Y4zFbslYAobm4VX3jxV9gfAmN8rF6CM4cvGzcuy4+a | |
woRDXXu016QH3v/pnSSn9neWGNm4HULNiAl3gxIjhBvZcyiVV5eiDQaxLENZrjYb | |
BW0YtseVwWBmwD3mEyA7eRz81rzgldvUbQmh9DEEl0ZJf8tsQWGrQQB7g10bdRVp | |
X2P/KSYsoodDEiF+XDfSPKrzAZoqxa/mSZFCQeyThsvSyTa8baSvDA5iHm/p4MPn | |
Pa0Aki6QYLgYkGo5wFbrPENV7wToMiNOzg21mYdKouaijAC592CqWi1XSQE8nIEq | |
NppX+uI2jazH3EqFNviuyFKyw9fGYInHYHWrABEBAAG0GEpvbm5lIEhhw58gPG1l | |
QG1yenl4LmRlPohGBBARAgAGBQJQ42hSAAoJEOpqsNjng4LhbX8An1qLlq1b/5uA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sidekiq/api' | |
namespace :sidekiq do | |
def print_stats | |
stats = Sidekiq::Stats.new | |
[:processed, :failed, :enqueued, :scheduled_size, :retry_size].each do |stat| | |
puts "sidekiq.#{stat} #{stats.send(stat)}" | |
end | |
puts "sidekiq.busy #{Sidekiq.redis { |con| con.scard("workers") }}" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Run from Diaspora root | |
# Requires https://github.com/DinoTools/sslscan/ (this fork) (https://aur.archlinux.org/packages/sslscan-git/) | |
class Scanner | |
def initialize host, statistics | |
@host = host | |
@statistics = statistics | |
run | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Slice(T) | |
def []?(start, count) | |
if start + count >= size | |
count = -1 | |
end | |
if count < 0 | |
count = size - start + (count + 1) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/.crystal/ | |
/bxctl | |
/pkg/ | |
/src/ | |
*.tar.xz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require "bundler/inline" | |
gemfile(ARGV.any? {|arg| arg == "--install"}) do | |
source "https://rubygems.org" | |
gem "http", "~> 2.2" | |
gem "ADB", "~> 0.5.6" | |
gem "slop", "~> 4.5" | |
end |