Skip to content

Instantly share code, notes, and snippets.

😃
happy 😀

Manfred Touron moul

😃
happy 😀
Block or report user

Report or block moul

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@moul
moul / node-spawn-stdio.js
Last active Aug 29, 2015
node-spawn-stdio.js
View node-spawn-stdio.js
process.stdout.isTTY;
require('child_process').spawn('ssh', 'localhost -t -- bash'.split(' '), {stdio: 'inherit'});
@alexisrobert
alexisrobert / santanderbikes.md
Last active Jan 11, 2016
Dashing plugin for Santander Bikes (ex Barclays Bikes) realtime availability
View santanderbikes.md

Santander Bikes (ex Barclays Bikes) realtime availability

This widget fetchs the availability of Santander Bikes (ex Barclays Bikes) in realtime using TfL's API.

To install, just type dashing install cfdb32371db7a240263c

Don't forget to add httparty in you Gemfile like this :

    gem 'httparty'
@tbarbugli
tbarbugli / How to build a notification feed.md
Last active Oct 4, 2019 — forked from tschellenbach/notify_tut.md
How to build a notification feed using Stream
View How to build a notification feed.md

How to build a notification feed using Stream

Introduction

In this tutorial we are going to show how easy it is to build a notification feed using GetStream.io. First of all, let's quickly introduce you to our fictional example app. It's called bug-your-friends.com and allows you interact with your friends, ping them, follow them or poke them. Here's a quick list of example interactions:

  • poke another user (eg. Thierry pokes Alessandra)
  • follow a user (eg. Tommaso follows Iris)
  • ping a user (eg. Josie pings Carolina)

Whenever a user is part of one of these interactions, we want to update his notification feed, update the number of unseen and unread

@bluerise
bluerise / armmake
Last active Dec 21, 2017
Wrapper to have make use the correct cross compiler
View armmake
#!/bin/ksh
MACHINE=armv7
MACHINE_ARCH=arm
MACHINE_COMP=armv7
VERSION=1.0
#this is true for most archs
MACHINE_CPU=${MACHINE_ARCH}
TARGET=${MACHINE}
HOST=$(uname -m)
View mt_adaptor.c.patch
--- src/c/src/mt_adaptor.c 2014-10-30 13:40:02.000000000 +0100
+++ src/c/src/mt_adaptor.c 2014-10-30 13:40:58.000000000 +0100
@@ -483,25 +483,9 @@
int32_t fetch_and_add(volatile int32_t* operand, int incr)
{
#ifndef WIN32
- int32_t result;
- asm __volatile__(
- "lock xaddl %0,%1\n"
- : "=r"(result), "=m"(*(int *)operand)
@podshumok
podshumok / gmail_1.csv
Last active Nov 9, 2019
Leaked gmail passwords w/o logins sorted by popularity (at least 11 occurrences)
View gmail_1.csv
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
passw count
123456 47817
password 11548
123456789 11133
12345 8088
qwerty 5915
12345678 5248
111111 3514
abc123 3011
123123 2971
@kachayev
kachayev / concurrency-in-go.md
Last active Oct 30, 2019
Channels Are Not Enough or Why Pipelining Is Not That Easy
View concurrency-in-go.md
View web-of-trust.md

A pseudonymous trust system for a decentralized anonymous marketplace

Dionysis Zindros, National Technical University of Athens dionyziz@gmail.com

Keywords

pseudonymous anonymous web-of-trust identity trust bitcoin namecoin proof-of-burn timelock decentralized anonymous marketplace openbazaar

Abstract

@jdiaz5513
jdiaz5513 / ascii_arty.py
Last active Oct 24, 2019
Console ASCII Art Generator
View ascii_arty.py
#! /usr/bin/env python2
# Requires: PIL, colormath
#
# Improved algorithm now automatically crops the image and uses much
# better color matching
from PIL import Image, ImageChops
from colormath.color_conversions import convert_color
from colormath.color_objects import LabColor
from colormath.color_objects import sRGBColor as RGBColor
@namuol
namuol / INSTALL.md
Last active Nov 15, 2018
rage-quit support for bash
View INSTALL.md

rage-quit support for bash

HOW TO INSTALL

Put flip somewhere in your $PATH and chmod a+x it.

Copy fuck into ~/.bashrc.

You can’t perform that action at this time.