Skip to content

Instantly share code, notes, and snippets.

Avatar

José Albornoz eljojo

View GitHub Profile
@eljojo
eljojo / Item URI2.js
Created December 21, 2022 16:54
zotero uri
View Item URI2.js
{
"translatorID":"90ed0f17-6ead-42fe-afb9-d34adb230099",
"translatorType":2,
"label":"Item URI para cucho",
"creator":"jojo",
"target":"html",
"minVersion":"2.0",
"maxVersion":"",
"priority":200,
"inRepository":false,
@eljojo
eljojo / hardware-raspberry-pi.nix
Created January 9, 2022 01:12
nixos raspberry pi
View hardware-raspberry-pi.nix
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[
"${fetchTarball "https://github.com/NixOS/nixos-hardware/archive/2a7063461c3751d83869a2a0a8ebc59e34bec5b2.tar.gz" }/raspberry-pi/4"
];
boot.kernelPackages = pkgs.linuxPackages_rpi4;
boot.kernel.sysctl."vm.swappiness" = 0;
View gist:885b007b510e211d53451b15d4f60edd
[Unit]
After=docker.service docker.socket
After=ifup@eth0.service
Wants=ifup@eth0.service
[Service]
ExecStart=/usr/bin/docker run \
--rm \
--name=traefik \
@eljojo
eljojo / 0_reuse_code.js
Created July 5, 2017 13:17
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@eljojo
eljojo / hash_manipulation.rb
Created December 8, 2015 19:41
some playing with functional programming and ruby
View hash_manipulation.rb
# A HashManipulation is a helper object.
# The idea is to aid when modifying hashes.
# changes = HashManipulation.new
# changes.key { |key| key.upcase }
# changes.value { |value| value.length }
# changes.("children" => [1, 2, 3]) # {"CHILDREN" => 3}
module Reports
class HashManipulation
def initialize
@key = -> (obj) { obj }
@eljojo
eljojo / growth_hacking.md
Last active August 29, 2015 14:22
Growth Hacking
View growth_hacking.md

I know about the existence of Growth Hacking and I know that as a StartUp one of your goals is to, well, grow as much as possible.
I also know about the existence of promotional posts, and how they can benefit both writers and companies looking to reach audiences.
What I didn't know, is how low some companies can go in order to promote their business for free.
Without further ado, here's an email I got yesterday. Let it speak by itself.

Hi Jose Tomas,

We’d love to see what tips you have for social media marketers. 

We would like you to create a post on your personal blog where you share

View example_html.html
<html>
<head>
<title>This is the title</title>
<link rel="stylesheet" href="http://railsgirls.com/assets/bootstrap.css">
<link rel="stylesheet" href="http://railsgirls.com/assets/bootstrap-theme.css">
</head>
<body>
<h1>Hello HTML!</h1>
<p>How's it going?</p>
<form action="/add_to_list" method="get">
@eljojo
eljojo / gist:be8a0feff34b4d02509b
Created May 4, 2015 17:38
dokku_on_debian_after_fixing_nginx
View gist:be8a0feff34b4d02509b
root@dokku:~/dokku# make install
apt-get update
Hit http://security.debian.org jessie/updates InRelease
Hit http://ftp.de.debian.org jessie InRelease
Hit http://security.debian.org jessie/updates/main Sources
Hit http://ftp.de.debian.org jessie-updates InRelease
Hit http://security.debian.org jessie/updates/main amd64 Packages
Hit http://ftp.de.debian.org jessie/main Sources
Hit http://security.debian.org jessie/updates/main Translation-en
Hit http://ftp.de.debian.org jessie/main amd64 Packages
View gist:883518d6608507c10758
root@dokku:~# wget -qO- https://raw.github.com/progrium/dokku/master/bootstrap.sh|DOKKU_BRANCH=master bash
Hit http://security.debian.org jessie/updates InRelease
Hit http://ftp.de.debian.org jessie InRelease
Hit http://security.debian.org jessie/updates/main Sources
Hit http://ftp.de.debian.org jessie-updates InRelease
Hit http://security.debian.org jessie/updates/main amd64 Packages
Hit http://security.debian.org jessie/updates/main Translation-en
Hit http://ftp.de.debian.org jessie/main Sources
Hit http://ftp.de.debian.org jessie/main amd64 Packages
Hit http://ftp.de.debian.org jessie/main Translation-en
@eljojo
eljojo / rant.md
Created April 9, 2015 10:14
little rant
View rant.md

My problem is mainly when, because of sofware, database (or anything related to IT) architecture impose its way into how the real world works.

For example, imagine Deutsche Telekom. If you have a contract for both mobile phone and internet at home with them, it's completely reasonable that they have different internal systems and thus your name is stored in different locations.

Let's say you change your name. You call Deutsche Telekom (mobile) and tell them that you changed your name, the lady tells you that she updated your name in the computer and all is good. Next month you get the invoice and it shows your old name.

My question is: is this acceptable?