Skip to content

Instantly share code, notes, and snippets.

View nop33's full-sized avatar
🏗️
Building at @alephium

Ilias Trichopoulos nop33

🏗️
Building at @alephium
View GitHub Profile
// create a bookmark and use this code as the URL, you can now toggle the css on/off
// thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3
javascript: (function() {
var styleEl = document.getElementById('css-layout-hack');
if (styleEl) {
styleEl.remove();
return;
}
styleEl = document.createElement('style');
styleEl.id = 'css-layout-hack';
@WhiteAbeLincoln
WhiteAbeLincoln / gatsby-node.js
Created June 15, 2019 04:24
gatsby-transformer-remark with frontmatter hack
/**
* In order to resolve frontmatter as markdown using the same infrastructure
* as with the markdown body, we call the `setFieldsOnGraphQLNodeType` function
* exported by gatsby-transformer-remark
*
* We get the field to operate on using the generated MarkdownRemarkFieldsEnum
* In order to resolve field enum to a corresponding value, we must use the
* getValueAt function, which is a utility function internal to gatsby.
* We should find a more stable way of doing this.
*
@subfuzion
subfuzion / curl.md
Last active July 18, 2024 17:12
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@surganov
surganov / essential-bret-victor.md
Created January 6, 2016 13:02
Essential Bret Victor
@staltz
staltz / introrx.md
Last active July 22, 2024 09:31
The introduction to Reactive Programming you've been missing

Nov 2018

Type Item CHF chEUR
Case [be quiet! Dark Base 700][1] 165
PSU [be quiet! Straight Power 11 650W][2] 110
Board [Asus ROG STRIX X470-F Gaming][3] 235
CPU [AMD Ryzen 7 2700X][4] 360
Cooler [Noctua NH-D15 SE-AM4][5] 100
GPU [MSI RTX 2070 Gaming Z][6] 700
@OmeGak
OmeGak / cern_afs_kerberos.md
Last active July 7, 2024 11:08
Authentication at CERN made not-an-ordeal (kind of)

AFS Kerberos at CERN

"Kerberos is not the authentication system CERN deserves, but the one we need". - A wise man

This guide aims to ease the pain of setting up Kerberos authentication in your local (Ubuntu) machine and then completely forget about it.

Ready to fight?

First of all, install the following packages if you want to be successful on this journey:

@nikolaygit
nikolaygit / README.md
Last active December 25, 2015 15:49
Create bootstrap contact form in Django. Uses cmsplugin-contact and django-widget-tweaks.

Create bootstrap contact form in Django. Uses cmsplugin-contact and django-widget-tweaks.

@maximebf
maximebf / gist:3986659
Created October 31, 2012 11:56
Jinja2 macro to render WTForms fields with Twitter Bootstrap
{% macro form_field(field) -%}
{% set with_label = kwargs.pop('with_label', False) %}
{% set placeholder = '' %}
{% if not with_label %}
{% set placeholder = field.label.text %}
{% endif %}
<div class="control-group {% if field.errors %}error{% endif %}">
{% if with_label %}
<label for="{{ field.id }}" class="control-label">
{{ field.label.text }}{% if field.flags.required %} *{% endif %}:
@irae
irae / .gitconfig
Last active February 14, 2020 09:52
Git Vommit -- making typos fun and refreshing
[alias]
vommit = !sh -c \"cat ~/.gitvommit\"