Skip to content

Instantly share code, notes, and snippets.

View kernelp4nic's full-sized avatar

Sebastián Moreno kernelp4nic

  • Prisma Campaigns
  • Montevideo-Uruguay
View GitHub Profile
@kernelp4nic
kernelp4nic / sources.list
Created February 6, 2012 17:01 — forked from fedesilva/sources.list
el sources.list con non-free y contrib configurados
# cat /etc/apt/sources.list
deb http://ftp.us.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.us.debian.org/debian/ squeeze main contrib non-free
deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free
# squeeze-updates, previously known as 'volatile'
@kernelp4nic
kernelp4nic / ssh-copy-id
Created March 28, 2012 20:06
ssh-copy-id
#!/bin/sh
# Shell script to install your public key on a remote machine
# Takes the remote machine name as an argument.
# Obviously, the remote machine must accept password authentication,
# or one of the other keys in your ssh-agent, for this to work.
#
# http://www.devthought.com/2009/09/19/get-ssh-copy-id-in-mac-os-x/
#

Simplistic Full-Text Search With Redis's Sorted Sets

Howto

git clone git://gist.github.com/923934.git redisearch

cd redisearch
@kernelp4nic
kernelp4nic / Redis-Ruby_Inverted-Index-Search-(Antirez)
Last active December 7, 2020 19:08 — forked from antirez/gist:120067
Build an inverted index for a full-text search engine with Redis.
--
//The Amplituhedron TM®
//By nikoclass@gmail.com
#ifdef GL_ES
precision highp float;
#endif
// Uniform es constante mientras corre el shader
uniform float time;
@kernelp4nic
kernelp4nic / Clojure learning
Last active August 29, 2015 14:01
Clojure learning
.
@kernelp4nic
kernelp4nic / musicforprogramming.py
Last active August 29, 2015 14:04
wget music for programming
#!/usr/bin/python
# brew install python
# pip install feedparser
import feedparser
from subprocess import call
feed = feedparser.parse('http://musicforprogramming.net/rss.php')
@kernelp4nic
kernelp4nic / http_test.lua
Created July 21, 2014 19:29
luanode http/https connection (luanode http_test.lua secure)
local net = require "luanode.net"
local host = "userstream.twitter.com"
local secure = process.argv[1] == "secure"
if secure then
console.log("Using secure connection (HTTPS)")
local c = net.createConnection(443, host)
c:on("connect", function()
@kernelp4nic
kernelp4nic / title-case.clj
Created May 12, 2015 17:29
title case word clojure
(defn- title-case-word [w]
(if (zero? (count w))
w
(str (Character/toTitleCase (first w))
(subs w 1))))
/*
* Copyright (C) 2014 Jared Rummler <jared.rummler@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software