Skip to content

Instantly share code, notes, and snippets.

View jezdez's full-sized avatar
🚴
💨

Jannis Leidel jezdez

🚴
💨
View GitHub Profile
@beckermr
beckermr / test_solver.ipynb
Last active December 2, 2022 21:18
test conda solver
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MarkusH
MarkusH / totp.sh
Last active September 24, 2019 01:14
Simple Bash TOTP client
#!/bin/bash
# Copyright (c) 2018, info AT markusholtermann DOT eu
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
@andrew
andrew / transative-moz-deps.txt
Created November 28, 2015 17:00
Transitive dependencies that mozilla depends on
npm/mocha - 2477
npm/istanbul - 723
npm/chai - 722
npm/grunt - 672
npm/tape - 666
npm/should - 600
npm/eslint - 470
npm/grunt-contrib-jshint - 464
npm/jshint - 455
npm/lodash - 399
@dripolles
dripolles / EuroPythonPodcast
Last active October 31, 2018 16:35
Django girs, django gays
Django girls, Django gays
(E: entrevistador. A y B son los entrevistados, no consigo identificarlos por su
voz al 100% con los que se presentan al principio del podcast)
- E: Tenéis pensada alguna actividad para fomentar una sociedad “más mejor”? Es
una pregunta un poco rara.
- A: Je, ¿una sociedad más mejor? Hombre, pues mira, ahí va a haber como es la
<no se entiende bien> Django Girls, los Django Gays, los Django... (se oyen
risas) de todos los colores (más risas). Digo yo, por aquello de las cosas
@Suor
Suor / test_works.py
Created March 12, 2015 09:31
Test against real database with pytest-django
import pytest
@pytest.fixture()
def real_db(_django_cursor_wrapper):
_django_cursor_wrapper.enable()
def test_index(client, real_db):
response = client.get('/')
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
@Psycojoker
Psycojoker / a.md
Last active October 10, 2017 17:51
Github's pages targeted by porn industry DMCA request to google

Apparently the porn industry is going after github pages (by sending DMCA to google), you can read the story here (found there).

Using https://www.chillingeffects.org/notices/search?page=1&sort_by=&term=github.com (https://github.com/berkmancenter/chillingeffects/blob/master/doc/api_documentation.mkd#example-successful-response-2) (and an horribly quick and dirty script), here is the list all the concerned users and repositories page (you can find the data bellow):

Users pages

@pmclanahan
pmclanahan / contribute.json
Last active November 25, 2023 02:33
Proposal Schema for contribute.json
{
// required
"name": "Name of the project. (e.g. Bedrock)",
"description": "Awesome website of sweetness",
"repository": {
"type": "git",
"url": "https://github.com/mozilla/bedrock"
},
// optional
@mitsuhiko
mitsuhiko / .gitconfig
Last active January 30, 2021 20:22
Adds the ultimate of all pull request commands to git
# Alternatively don't use slog but something else. I just like that more.
[aliases]
slog = log --pretty=format:"%C(auto,yellow)%h%C(auto)%d\\ %C(auto,reset)%s\\ \\ [%C(auto,blue)%cn%C(auto,reset),\\ %C(auto,cyan)%ar%C(auto,reset)]"
addprx = "!f() { b=`git symbolic-ref -q --short HEAD` && \
git fetch origin pull/$1/head:pr/$1 && \
git fetch -f origin pull/$1/merge:PR_MERGE_HEAD && \
git rebase --onto $b PR_MERGE_HEAD^ pr/$1 && \
git branch -D PR_MERGE_HEAD && \
git checkout $b && echo && \
git diff --stat $b..pr/$1 && echo && \
@kyledrake
kyledrake / ferengi-plan.txt
Last active April 6, 2024 00:30
How to throttle the FCC to dial up modem speeds on your website using Nginx
# The blog post that started it all: https://neocities.org/blog/the-fcc-is-now-rate-limited
#
# Current known FCC address ranges:
# https://news.ycombinator.com/item?id=7716915
#
# Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft
#
# In your nginx.conf:
location / {