Skip to content

Instantly share code, notes, and snippets.

View huseyint's full-sized avatar

Hüseyin Tüfekçilerli huseyint

View GitHub Profile
@rca
rca / mongrel.rb
Created February 14, 2011 22:16 — forked from metaskills/mongrel.rb
if ['2.3.8', '2.3.9', '2.3.10', '2.3.11'].include?(Rails.version) && Gem.available?('mongrel', '~>1.1.5') && self.class.const_defined?(:Mongrel)
# Pulled right from latest rack. Old looked like this in 1.1.0 version.
#
# def [](k)
# super(@names[k] ||= @names[k.downcase])
# end
#
module Rack
module Utils
@praeclarum
praeclarum / SingleThreaded.cs
Created January 25, 2014 23:36
Use single threaded blocking code from your UI
using System;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Concurrent;
namespace Praeclarum
{
/// <summary>
/// Wraps a value and only allows access to it using a single thread
/// of execution (see SingleThreadQueue).
@hasegawayosuke
hasegawayosuke / CustomeRule.js
Last active August 17, 2020 05:58
Hide CSS files of Fiddler tracif
// Open Fiddler and Choose "Rules" menu, click "Customize Rules..." and add this code to CustomRule.js
class Handlers
{
// ....
public static RulesOption("Hide CSS")
BindPref("fiddlerscript.rules.HideCSS")
var m_HideCSS: boolean = false;
// ....
static function OnBeforeResponse(oSession: Session) {
@matiaskorhonen
matiaskorhonen / toggle-tv-power off.sh
Created January 28, 2016 16:04
A quick script to control the power state of a TV attached to a Raspberry Pi over HDMI.
#!/usr/bin/env bash
iso8601_date () {
date +%Y-%m-%dT%H:%M:%S%z
}
turn_on () {
echo 'on 0' | cec-client -s -d 1 RPI
}
@davidteren
davidteren / nerd_fonts.md
Last active July 5, 2024 07:58
Install Nerd Fonts via Homebrew [updated & fixed]