Skip to content

Instantly share code, notes, and snippets.

View tchap's full-sized avatar

Ondra Kupka tchap

  • Red Hat
  • Prague, Czech Republic
View GitHub Profile
@tchap
tchap / jai_ambe
Last active August 29, 2015 14:01
Dmol C Dmol C Dmol (doby: 4 - 4 - 2 - 2 - 4)
Jai Ambe Jagadambe Mata Bhavaniki Jai Ambe. (2x)
Dmol F C Dmol (doby: 4 - 4 - 4 - 4)
Durga Vinashini Durga Jaya Jaya Kala Vinashini Kali Jaya Jaya. (2x)
C F C Amol Dmol (doby: 4 - 4 - 2 - 2 - 4)
Uma Rama Brahmani Jaya Jaya Radha Rukamani Sita Jaya Jaya. (2x)
Ayahuasca urkumanta (ayahuasca desde el cerro) F, Bb
taki takimuyki (bis) (te vengo cantando) Dm, Am
Chuyay chuyay hampikuyni (limpiando y sanado) Am, Dm
miski ñuñu cuerpo chaita (bis) (dulce leche teta para el cuerpo) Bb, Dm
Ayahuasca curandera...
Ayahuasca lucerito manta...
Ayahuasca chacrunera...
Ayahuasca pinturera...
@tchap
tchap / cunaq
Last active August 29, 2015 14:01
Cuñaq
Desde Cuñaq viene, agüita serpenteando Amol, C
por las acequias y en remolinos Emol, Amol
hacia nuestras vidas (bis) C, Amol
Desde Cuñaq viene, agüita serpenteando Amol, C
por las acequias y en remolinos Emol, Amol
hacia nuestras vidas (bis) C, Amol
Soy un niño salvaje, inocente, libre, silvestre
Tengo todas las edades, mis abuelos viven en míii (vyslovnost: toda das edades)
Soy hermano de las nubes, solo sé compartir (vyslovnost: de las nuves)
Sé que todo es de todos y que todo está vivo en míii (vyslovnost: todo e de todos)
Mi corazón es una estrella y soy hijo de la tierra (vyslovnost: es unestreja, iho)
Viajo a bordo de mi espíritu y camino a la eternidad
-----
Blessing angels come be with me,
heal my spirit, mind and body.
Blessing angels come be with me,
heal my spirit, mind and body.
Blessing angels of green and gold,
heal my heart and heal my soul.
Blessing angels of violet and blue,
open my eyes to the visions of truth.
import (
"http"
"code.google.com/p/go.net/websocket"
)
mux := http.NewServeMux()
mux.Handle("/", r)
mux.Handle("/ws", websocket.Server{
Handshake: s.handleWSHandshake,
Handler: s.handleWSConnection,
// Explain the following benchmark results:
//
// Benchmark____SingleThread 10 155639126 ns/op
// Benchmark_MultipleThreads 5 885528027 ns/op
//
// Run on a Core i7 processor (4 cores).
package benchmarks
import (
@tchap
tchap / NodeJS_MongoDB_Dockerfile
Last active December 19, 2015 18:59
Dockerfile to run a Node.js server backed by MongoDB.
FROM tchap/centos-epel
MAINTAINER Ondrej Kupka "[email protected]"
# Update packages
RUN yum update -y --exclude=upstart
# Install Node.js
RUN yum install -y nodejs npm
@tchap
tchap / ReviewBoard_Dockerfile
Last active December 19, 2015 11:29
Run Review Board inside of a Docker container.
# Run Review Board in a Docker container.
FROM ubuntu:latest
MAINTAINER Ondrej Kupka "[email protected]"
# Get all packages we need
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get update
# Install Python
@tchap
tchap / passportjs-github-returnto.js
Last active November 22, 2024 03:00
Set the path to return to after a successful authentication in Passport.js GitHub strategy (Express.js).
/**
* Part 1: Set up the authentication endpoints.
*/
// Point 1: Notice the checkReturnTo middleware, is defined at the bottom.
app.get('/auth/github', checkReturnTo, passport.authenticate('github', {state: 'Bublifuk'}));
// Point 2: Use 'successReturnToOrRedirect', otherwise the middleware will not work.
app.get('/auth/github/callback',
passport.authenticate('github', { successReturnToOrRedirect: '/', // IMPORTANT!