Skip to content

Instantly share code, notes, and snippets.

View graphnode's full-sized avatar
🐱
(^・ω・^ )

Diogo Gomes graphnode

🐱
(^・ω・^ )
  • Lisboa, Portugal
View GitHub Profile
@graphnode
graphnode / dewormer.user.js
Last active October 25, 2021 20:56
Spacebattles & Sufficient Velocity DeWormer
// ==UserScript==
// @name Spacebattles & Sufficient Velocity DeWormer
// @namespace https://gist.github.com/graphnode/fbf9013d3eb589a9da52
// @version 1.3.0
// @description Hide threads based on a simple filter on some xenforo forums.
// @author Diogo Gomes <dgomes@graphnode.com>
// @match https://forums.spacebattles.com/*
// @match https://forums.sufficientvelocity.com/*
@DrummerHead
DrummerHead / frontend-programming-design-resources.md
Last active March 28, 2024 20:34
List of Front-end, programming & design resources
anonymous
anonymous / IcoBumpin.cs
Created September 25, 2015 02:14
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using ProBuilder2.Common;
using ProBuilder2.MeshOperations;
using ProBuilder2.Math;
namespace ProBuilder2.Examples
{
@capaj
capaj / app-config.js
Created May 27, 2015 09:07
useful config for your angular apps
app.config(function($compileProvider) {
if (!location.host.match(/localhost/)) {
$compileProvider.debugInfoEnabled(false);
}
})
@bryanthompson
bryanthompson / printf.h
Last active April 14, 2016 16:33
This is an adaptation of several variations of 'getting started' sketches with the nrf24L01+ radios and arduino. These sketches assume that you are using an Arduino Pro Micro on both ends and that you have an LED attached on pin 2 of the transmit side. To run these, you'll need to install the rf24 and spi libraries from jscrane's repo: https://g…
/*
Copyright (C) 2011 J. Coliz <maniacbug@ymail.com>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
version 2 as published by the Free Software Foundation.
*/
/**
* @file printf.h
anonymous
anonymous / cmk-add-host
Created October 16, 2013 14:12
Check MK add host script in bash
#!/bin/bash
site=$1; shift
hostname=$1; shift
mk_file="/opt/omd/sites/$site/etc/check_mk/conf.d/wato/hosts.mk"
wato_file="$(dirname $mk_file)/.wato"
## exit with code 1 if host exists
(
@springmeyer
springmeyer / node_no_dos.diff
Created January 16, 2012 14:37
first stab at a nodew.exe (like pythonw.exe)
diff --git a/common.gypi b/common.gypi
diff --git a/node.gyp b/node.gyp
index f9bc8ca..fe2f821 100644
--- a/node.gyp
+++ b/node.gyp
@@ -196,10 +196,17 @@
],
}],
],
- 'msvs-settings': {
@vstoykov
vstoykov / force_default_language_middleware.py
Last active August 8, 2023 08:24
Force Django to use settings.LANGUAGE_CODE for default language instead of request.META['HTTP_ACCEPT_LANGUAGE']
try:
from django.utils.deprecation import MiddlewareMixin
except ImportError:
MiddlewareMixin = object
class ForceDefaultLanguageMiddleware(MiddlewareMixin):
"""
Ignore Accept-Language HTTP headers