Skip to content

Instantly share code, notes, and snippets.

Ryan Lahfa RaitoBezarius

Block or report user

Report or block RaitoBezarius

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View repro2.hs
data PosInf a = Infinity | Finite a deriving (Show, Read, Eq)
instance Ord a => Ord (PosInf a) where
compare Infinity Infinity = EQ
compare Infinity Finite{} = GT
compare Finite{} Infinity = LT
compare (Finite a) (Finite b) = compare a b
instance Num a => Num (PosInf a) where
Finite x + Finite y = Finite (x + y)
View repro.hs
data PosInf a = Infinity | Num a deriving (Show, Read, Eq)
instance Ord a => Ord (PosInf a) where
compare Infinity Infinity = EQ
compare Infinity Num{} = GT
compare Num{} Infinity = LT
compare (Num a) (Num b) = compare a b
pInfty :: PosInf a
pInfty = Infinity
View i3.config
# laptop mode
# bottom bar
bar {
status_command py3status -b -c ~/.config/i3status/bottom-config -l /var/log/py3status/down.laptop.log
mode hide
hidden_state hide
modifier $mod
position bottom
output LVDS1
binding_mode_indicator yes
@RaitoBezarius
RaitoBezarius / playbook.yml
Created Feb 9, 2017
Playbook to reproduce hang bug with auto-install
View playbook.yml
---
- hosts: gameservers
vars:
lgsm_user: csgoserver
gslt: ""
tasks:
- block:
- name: "Install basic dependencies"
yum: name={{item}} state=latest
with_items:
@RaitoBezarius
RaitoBezarius / start_agent.fish
Created Dec 28, 2016
Boot a SSH agent for Fish
View start_agent.fish
set -gx SSH_ENV $HOME/.ssh/environment
function boot_new_agent
echo "Initializing new SSH agent..."
ssh-agent -c | sed 's/^echo/#echo/' > $SSH_ENV
echo "SSH agent initialized, ready to roll."
chmod 600 $SSH_ENV
. $SSH_ENV > /dev/null
ssh-add
end
@RaitoBezarius
RaitoBezarius / backtrace
Created Oct 10, 2016
Backtrace for eID
View backtrace
[New LWP 9934]
[New LWP 9930]
[New LWP 9931]
[New LWP 9932]
[New LWP 9938]
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
@RaitoBezarius
RaitoBezarius / traceback
Created Jul 19, 2016
Traceback with ESLintBear
View traceback
[WARNING][12:24:09] Bear ESLintBear failed to run. Take a look at debug messages (`-L DEBUG`) for further information.
[DEBUG][12:24:09] The bear ESLintBear raised an exception. If you are the writer of this bear, please make sure to catch all exceptions. If not and this error annoys you, you might want to get in contact with the writer of this bear.
Traceback information is provided below:
Traceback (most recent call last):
File "/home/raito/.virtualenvs/mangaki/lib/python3.5/site-packages/coalib/bears/Bear.py", line 231, in execute
return list(self.run_bear_from_section(args, kwargs) or [])
File "/home/raito/.virtualenvs/mangaki/lib/python3.5/site-packages/bears/js/ESLintBear.py", line 43, in process_output
output = json.loads(output)
View keybase.md

Keybase proof

I hereby claim:

  • I am RaitoBezarius on github.
  • I am raitobezarius (https://keybase.io/raitobezarius) on keybase.
  • I have a public key whose fingerprint is 91AD 5D34 5ACB F9D5 01E9 4622 9B3E 45E4 B604 FF65

To claim this, I am signing this object:

@RaitoBezarius
RaitoBezarius / api_wrapper.js
Created Apr 21, 2016
API wrapper around a magic API which mutates itself while dispatching events
View api_wrapper.js
// Let's say we have three events:
// CONNECTED
// NEW ITEM IN ARRAY
// DELETED ITEM IN ARRAY
// We're a doing a chat with deletion features
// We have an API which is sync'd with our backend.
const API = new SuperAPI()
@RaitoBezarius
RaitoBezarius / index.js
Last active Apr 2, 2016 — forked from gaearon/index.js
Breaking out of Redux paradigm to isolate apps
View index.js
import React, { Component } from 'react'
import Subapp from './subapp/Root'
class BigApp extends Component {
render() {
return (
<div>
{this.props.children}
</div>
)
You can’t perform that action at this time.