Skip to content

Instantly share code, notes, and snippets.

View naxhh's full-sized avatar
💻
Devoping

Ignacio Tolstoy naxhh

💻
Devoping
  • Barcelona
View GitHub Profile
@naxhh
naxhh / docker-compose.yml
Created June 18, 2022 08:40
sonarr & radarr setup
version: "3"
services:
sonarr:
image: lscr.io/linuxserver/sonarr
container_name: sonarr
environment:
- PUID=0
- PGID=0
- TZ=Europe/Madrid
volumes:
// ==UserScript==
// @name MoneyMeikah2
// @namespace https://www.mintos.com
// @version 0.1
// @description Calculates the profit generated on each loan and profit per day
// @author DonNadie
// @match https://www.mintos.com/*
// @grant none
// ==/UserScript==
@naxhh
naxhh / config.json
Created October 4, 2016 10:21
Sublime nice config
{
"color_scheme": "Packages/User/SublimeLinter/Monokai (SL).tmTheme",
"create_window_at_startup": false,
"folder_exclude_patterns":
[
".svn",
".git",
".DS_Store",
"__pycache__",
"*.pyc",
@naxhh
naxhh / gist:e5eafaa0813fb59fb69e
Created January 13, 2016 17:22
2016 proposals you will never do...
- Finish 1st scala course (coursera)
- Start and finish 2nd scala course (coursera)
- Learn android development (at least 1 usefull app, camlistore app?)
- .?
@naxhh
naxhh / keybase.md
Created March 22, 2015 19:35
keybase

Keybase proof

I hereby claim:

  • I am naxhh on github.
  • I am nax (https://keybase.io/nax) on keybase.
  • I have a public key whose fingerprint is 5A2F 8C93 E77B D548 8715 9CD8 BF85 FA9A F8DF ED6E

To claim this, I am signing this object:

@naxhh
naxhh / turkish-love.php
Last active August 29, 2015 14:10
PHP POC of an error
<?php
/**
* POC of an error.
*
* Error log was confusing:
*
* PHP Fatal error: Call to undefined method Config::getClassInfo() in /path/Config.php on line 475
* PHP Fatal error: Class 'GetEnvironmentInfo' not found in /path/autoprepend5.lib.php on line 327
*
* Finally problem was related to I18N class.
@naxhh
naxhh / interpreter.rkt
Last active January 15, 2019 10:05
MUPL interpreter in racket
#lang racket
(provide (all-defined-out)) ;; so we can put tests in a second file
;; definition of structures for MUPL programs
(struct var (string) #:transparent) ;; a variable, e.g., (var "foo")
(struct int (num) #:transparent) ;; a constant number, e.g., (int 17)
(struct add (e1 e2) #:transparent) ;; add two expressions
(struct ifgreater (e1 e2 e3 e4) #:transparent) ;; if e1 > e2 then e3 else e4
(struct fun (nameopt formal body) #:transparent) ;; a recursive(?) 1-argument function
(struct call (funexp actual) #:transparent) ;; function call
@naxhh
naxhh / gist:e85bd52715e856b73e1d
Last active March 1, 2017 16:24
Behat Scenario parser
<?php
require __DIR__ . '/vendor/autoload.php';
$features_path = __DIR__ . 'test/Behat/';
$project = 'project';
$keywords = new Behat\Gherkin\Keywords\CachedArrayKeywords( __DIR__ . '/vendor/behat/gherkin/i18n.php' );
$lexer = new Behat\Gherkin\Lexer($keywords);
$parser = new Behat\Gherkin\Parser($lexer);
### Keybase proof
I hereby claim:
* I am naxhh on github.
* I am nax (https://keybase.io/nax) on keybase.
* I have a public key whose fingerprint is 15D7 69FE 422E 1A3F 5DFB DDD4 6810 EE31 37A8 BF52
To claim this, I am signing this object:
@naxhh
naxhh / Mongo utilities
Created October 29, 2012 12:46
Useful mongo-shell-admin commands
# Login admin
> use admin
> db.auth('user','pass')
#Basic shows
> show dbs
> show collections
> db.collection.getIndexes()
#Create Index