Skip to content

Instantly share code, notes, and snippets.

View razielgn's full-sized avatar
🇺🇦
Слава Україні!

Federico Ravasio razielgn

🇺🇦
Слава Україні!
View GitHub Profile
@razielgn
razielgn / zfsinstall-1-setup.sh
Created September 23, 2018 09:26 — forked from johnramsden/zfsinstall-1-setup.sh
Install scripts for installing Arch Linux on ZFS. Not runnable, just listed commands.
#!/bin/bash
# Check before running, may need intervention
# Pass in the following to the script, or hardcode it.
# Uncomment if hardcoding input.
BOOT_PARTITION="/dev/sdg1"
DISK_1="ata-SanDisk_SDSSDXPS480G_152271401093"
DISK_2="ata-SanDisk_SDSSDXPS480G_154501401266"
POOL="vault"
@razielgn
razielgn / .bashrc.bash
Created March 16, 2017 19:29
Automatically start tmux on ssh connection. Logout on detach.
# Original: http://blog.thelinuxkid.com/2013/06/automatically-start-tmux-on-ssh.html
# Saving for our children.
# This should always be run last either in .bashrc or as a script in .bashrc.d
if [[ -z "$TMUX" ]]; then
tmux has-session &> /dev/null
if [ $? -eq 1 ]; then
exec tmux new
exit
else
### Keybase proof
I hereby claim:
* I am razielgn on github.
* I am razielgn (https://keybase.io/razielgn) on keybase.
* I have a public key ASA4PVdCQA5t2WthfGba4QD0NmPEm4jIQKBnsnz5IZs6Wgo
To claim this, I am signing this object:
newtype ListLayer a = ListLayer [a]
class Layerable a where
something :: a -> a
instance Layerable (ListLayer a) where
something = id
@razielgn
razielgn / patch.diff
Created May 27, 2015 21:28
Aeon + Rc
diff --git a/src/heap.rs b/src/heap.rs
index 190441a..ad961e0 100644
--- a/src/heap.rs
+++ b/src/heap.rs
@@ -1,9 +1,11 @@
-use object::{Object, ObjectValue};
+use std::rc::Rc;
+
+use object::{Object, RcObject, ObjectValue};

Keybase proof

I hereby claim:

  • I am razielgn on github.
  • I am razielgn (https://keybase.io/razielgn) on keybase.
  • I have a public key whose fingerprint is C2AE BF2D 5EA6 791F 3B60 7B93 D317 386D 09F6 E0AD

To claim this, I am signing this object:

From 06e2d0b5ab731d099e1a914c2761a7ab094d69cf Mon Sep 17 00:00:00 2001
From: Federico Ravasio <ravasio.federico@gmail.com>
Date: Fri, 28 Mar 2014 20:19:14 +0100
Subject: [PATCH] Partial blog post.
---
_posts/2014-02-22-jit-debugging-video.markdown | 81 ++++++++++++++++++++++++++
1 file changed, 81 insertions(+)
create mode 100644 _posts/2014-02-22-jit-debugging-video.markdown
From 4aaa8c5f6cf6f778cab8be43c0b72a3b3c8c5539 Mon Sep 17 00:00:00 2001
From: Federico Ravasio <ravasio.federico@gmail.com>
Date: Fri, 28 Mar 2014 20:16:32 +0100
Subject: [PATCH] Patch.
---
Gemfile | 4 ++++
actionview/test/template/render_test.rb | 2 +-
activerecord/test/cases/adapters/mysql/statement_pool_test.rb | 2 ++
activerecord/test/cases/adapters/postgresql/statement_pool_test.rb | 2 ++
@razielgn
razielgn / gitlab
Last active December 25, 2015 23:09
Gitlab 6.8 files for Puma & Rubinius 2.2.x
#! /bin/sh
# GITLAB
# Maintainer: @randx
# Authors: rovanion.luckey@gmail.com, @randx
# Changes to support Rubinius: @razielgn
### BEGIN INIT INFO
# Provides: gitlab
# Required-Start: $local_fs $remote_fs $network $syslog redis-server
=== bin/rbx ===
parse '2011-03-08' 20178.8 (±23.6%) i/s - 94600 in 5.034218s (cycle=1100)
parse '2011-03-08T10:09'
4068.3 (±7.4%) i/s - 20196 in 5.000597s (cycle=396)
parse '2011-03-08T10:09:08'
4130.0 (±6.9%) i/s - 20570 in 5.011233s (cycle=374)
parse '2011-03-08T10:09:08.467'
3796.4 (±10.7%) i/s - 18980 in 5.075889s (cycle=365)
parse '2011-Mar-08T10:09'
3895.3 (±3.4%) i/s - 19663 in 5.053905s (cycle=371)