Skip to content

Instantly share code, notes, and snippets.

View moul's full-sized avatar
🌸
societal evolution engineer

Manfred Touron moul

🌸
societal evolution engineer
View GitHub Profile
@jpillora
jpillora / nginx-gitlab.conf
Created August 21, 2015 01:36
Gitlab go get via SSH
server {
listen {PUBLIC-GITLAB-HTTP-PORT}; #e.g. 80
server_name {PUBLIC-GITLAB-HOST}; #e.g. git.mycompany.com
# add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;
location / {
## Hack to implement && - Concat two strings and compare result
if ($args ~* "^go-get=1") {
set $condition goget;
}
@JogoShugh
JogoShugh / AsyncAwait.js
Last active August 29, 2015 14:27
SpaceMiner gitlab API
// npm install -g babel
// Then run with babel-node like this:
// babel-node --stage 2 index.js
import gitlab from 'gitlab';
import request from 'request';
import Promise from 'bluebird';
let apiBaseUrl = 'http://v1cs-gitlab-dev.cloudapp.net';
request.post = Promise.promisify(request.post, request);
@eddiejaoude
eddiejaoude / most-active-users-on-github-2015.md
Last active November 30, 2017 10:30
Most active users on GitHub 2015

This is the top 1000 users on GitHub

Where are you on here?

For the first 6 months of 2015 (Jan - June).

Query used on Google's BigQuery with GitHubArchive Data

SELECT actor.login as user, COUNT(*) as total FROM (
@moul
moul / boot-1.txt
Last active August 29, 2015 14:20
c1-bitrig.txt
��l�High speed PHY - Ver 2.0.0 (COM-PHY-V20)
DDR3 Training Sequence - Ver 4.0.0
DDR3 Training Sequence - Ended Successfully
Status = MV_OK
BootROM: Image checksum verification PASSED
U-Boot 2011.12 (Mar 23 2015 - 16:06:25) Marvell version: 2012_Q4.0p16
Board: RD-AXP-CUSTOMER
@moul
moul / node-spawn-stdio.js
Last active August 29, 2015 14:19
node-spawn-stdio.js
process.stdout.isTTY;
require('child_process').spawn('ssh', 'localhost -t -- bash'.split(' '), {stdio: 'inherit'});
@alexisrobert
alexisrobert / santanderbikes.md
Last active January 11, 2016 17:52
Dashing plugin for Santander Bikes (ex Barclays Bikes) realtime availability

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 October 17, 2021 20:13 — forked from tschellenbach/notify_tut.md
How to build a notification feed using Stream

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 December 21, 2017 22:08
Wrapper to have make use the correct cross compiler
#!/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)
--- 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)
@code-of-kpp
code-of-kpp / gmail_1.csv
Last active April 4, 2024 16:14
Leaked gmail passwords w/o logins sorted by popularity (at least 11 occurrences)
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