Skip to content

Instantly share code, notes, and snippets.


Dino Korah codemedic

View GitHub Profile
codemedic / .Xdefaults
Created Jan 16, 2013
Xdefaults for urxvt pieced together from various sources.Fork it and enjoy!
View .Xdefaults
URxvt*geometry: 110x30
URxvt*termName : rxvt-256color
URxvt.scrollBar: false
URxvt*scrollTtyOutput: false
URxvt*scrollWithBuffer: true
URxvt*scrollTtyKeypress: true
URxvt*skipScroll: false
URxvt*jumpScroll: true
codemedic /
Created Jan 16, 2013
Added paste primary and on_sel_grab functionality!
use strict;
sub on_start {
my ($self) = @_;
$self->{copy_cmd} = $self->x_resource('copyCommand') || 'xclip -l 1 -selection clipboard';
$self->{paste_cmd} = $self->x_resource('pasteClipboardCommand') || 'xclip -l 1 -o -selection clipboard';
$self->{paste_primary_cmd} = $self->x_resource('pastePrimaryCommand') || 'xclip -l 1 -o -selection primary';
View fix.diff
diff --git a/system/core/Kohana.php b/system/core/Kohana.php
index 271f917..287c271 100644
--- a/system/core/Kohana.php
+++ b/system/core/Kohana.php
@@ -722,7 +722,7 @@ final class Kohana {
if (ob_get_level() >= self::$buffer_level)
// Set the close function
- $close = ($flush === TRUE) ? 'ob_end_flush' : 'ob_end_clean';
+ $close = ($flush === TRUE) ? 'ob_end_flush' : 'Kohana::_ob_end_clean';
codemedic / RESTdoc
Last active Jun 9, 2020 — forked from coderofsalvation/RESTdoc
bash utility to generate REST-documentation from sourcecode comments
View RESTdoc
# A quickndirty bash-utility to generate REST-documentation from sourcecode comments.
# (initially aimed at php-files, but js should also work)
# Basically its a c-style comment -> markdown -> html converter
# Dependancies:
# - awk
# - sed
# - bash
# - php
View zero_copy_archives.cpp
// Copyright (c) 2012 Bryce Adelstein-Lelbach
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at
// hpx::util::container_device can be found here:
// The portable binary archives used can be found here:
View asio_range_util.hpp
#include <boost/range/iterator_range.hpp>
#include <boost/range/algorithm/search.hpp>
#include <boost/asio/buffer.hpp>
namespace httpc {
template <typename T>
inline boost::iterator_range<T *> make_iterator_range_from_memory(T *head, size_t size) {
View checktoken.php
// Crude check. Off course this should be stored in a (memory) database. $token is an
// access token that is provided by oauth.
if ($token == "mellon") {
header("X-Api-User: Gandalf");
header("X-Api-Context: Middle-Earth");
header("Cache-Control: public, max-age=120");
View ocp.php
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP)
Author: _ck_ (with contributions by GK, stasilok, n1xim, pennedav, kabel)
Version: 0.2.0
Free for any kind of use or modification, I am not responsible for anything, please share your improvements
* revision history
0.2.0 0000-00-00 Updated page layout/styles and restructure code to be more MVC-like (kabel)
implemented HTTP Basic authentication (pennedav)
View .fonts.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
Documented at
To check font mapping run the command at terminal
$ fc-match 'helvetica Neue'
codemedic / konsole-with-palette-colours.css
Last active Jan 11, 2021
CSS for KDE Konsole minimal, lighter, dark tabs
View konsole-with-palette-colours.css
font-family: "Noto Sans";
font-size: 11px;
height: 16px;
padding: 2px;
border: 0px;
border-bottom: 3px solid palette(dark);
background-color: palette(dark);
You can’t perform that action at this time.