Skip to content

Instantly share code, notes, and snippets.

View lambda2's full-sized avatar
🌴

André Aubin lambda2

🌴
View GitHub Profile
Verifying my Blockstack ID is secured with the address 1KzeUKEeybTSdoTVXJqz3gpXR3vkW6Ja27 https://explorer.blockstack.org/address/1KzeUKEeybTSdoTVXJqz3gpXR3vkW6Ja27
@lambda2
lambda2 / swagger.json
Created January 15, 2019 13:23
test-schema
{
"components": {
"parameters": {
"Page": {
"description": "Pagination",
"in": "query",
"name": "page",
"required": false,
"schema": {
"oneOf": [

Keybase proof

I hereby claim:

  • I am lambda2 on github.
  • I am lambda2 (https://keybase.io/lambda2) on keybase.
  • I have a public key ASDc75VEqQir2pAYHcRJEnTFuB-CmhB6LC5nYtCtgYVUYwo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am lambda2 on github.
  • I am lambda2 (https://keybase.io/lambda2) on keybase.
  • I have a public key ASBcPfepErYaSeaKmVLQWWC_n_w0gFrAwwV4jiYq2n1sNQo

To claim this, I am signing this object:

@lambda2
lambda2 / install-hook.sh
Last active October 17, 2016 09:43
PandaCore basic pre-commit hook
if [ -d "./.git" ]; then
echo "Installing hook..."
cat > .git/hooks/pre-commit <<- EOM
#!/bin/zsh
echo "Updating Gemfile to PandaCore latest."
if [ -d "$GIT_DIR/../../panda_core" ]; then
echo "Pulling panda core..."
(cd "$GIT_DIR/../../panda_core" && git branch --set-upstream-to=origin/master master && git pull origin) || echo "Failed to pull PandaCore, you're not on the master branch, so you should pull it yourself."
fi
@lambda2
lambda2 / blog.conf
Created September 12, 2016 20:11
Config nginx rails for http and https
upstream unicorn_blog {
server unix:/tmp/unicorn.blog.sock fail_timeout=0;
}
server {
listen 80;
server_name blog.andral.kiwi www.blog.andral.kiwi;
root /home/andral/apps/blog/current/public;
location ^~ /assets/ {
@lambda2
lambda2 / punchlines.json
Created June 25, 2016 13:23
A JSON file of punchline of various french artists
[
{
"content": "« Je suis venu comme un roi, je pars comme une légende. »",
"tags": [
"Ego Trip",
"Foot",
"Sport"
],
"author": "Zlatan Ibrahimović",
"album": "",
@lambda2
lambda2 / bonjourmadame.rb
Last active June 23, 2016 09:18
Redirect all bonjour* tumblr posts to a slack channel
require "tumblr_client"
require 'slack-ruby-client'
POST_DELAY = 30.minutes
SLACK_CHANNEL = '#nsfw'
# bonjourmademoiselle.fr dites.bonjourmadame.fr bonjourlesfesses.tumblr.com
TUMBLR_SOURCE = 'bonjourmademoiselle.fr'
PAGE_LENGTH = 20
@lambda2
lambda2 / evil_bot.rb
Created May 20, 2016 00:19
A twitter bot, here designed to work with some active record models, but the logic is there.
require 'twitter'
require 'logger'
# 🐵 patch search results, because they sucks
module Twitter
class SearchResults
attr_reader :rate_limit
@lambda2
lambda2 / CHANGELOG.md
Last active February 24, 2016 13:55
Api 2.1 changelog

API changelog (2.1)

Routes removal

Some routes has been removed, the data is always accessible, but by an other way.

  • GET /v2/projects/:project_id/projects_users
  • POST /v2/users/:user_id/notes
  • GET /v2/users/:user_id/notes/:id