Skip to content

Instantly share code, notes, and snippets.

@tyurderi
tyurderi / trello.css
Last active October 9, 2018 06:57
Better trello style
.list-wrapper {
width: 240px !important;
margin: 0 2px;
}
.list-cards {
margin: 0;
}
.list-cards .list-card {
margin: 0 0 4px 0;
}
@tyurderi
tyurderi / adminer.css
Last active October 1, 2018 14:54
Better adminer style
* {
box-sizing: border-box;
}
fieldset {
border-color: #ccc;
}
fieldset legend {
font-size: 12px;
}
p.count {
@tyurderi
tyurderi / shell.php
Created December 6, 2016 09:25
A script to grant shell access through the web.
<?php
define('PRIVATE_KEY', 'YouMayChangeThis');
error_reporting(E_ALL);
ini_set('display_errors', 'on');
function array_value($array, $key, $default = null) { return isset($array[$key]) ? $array[$key] : $default; }
function param($key, $default = null) { return array_value($_GET, $key, $default); }
function post($key, $default = null) { return array_value($_POST, $key, $default); }
<?php
function t()
{
static $time = null;
if($time !== null)
{
$result = round((microtime(true) - $time) * 1000, 4) . 'ms';
$time = null;
@tyurderi
tyurderi / GithubX-Custom.icls
Last active July 15, 2016 07:23
GitHub Colors for PhpStorm (from GitHub at July 14th, 2016)
<scheme name="GithubX Custom" version="142" parent_scheme="Default">
<option name="LINE_SPACING" value="1.0" />
<option name="EDITOR_FONT_SIZE" value="12" />
<option name="EDITOR_FONT_NAME" value="DejaVu Sans Mono" />
<colors>
<option name="CARET_ROW_COLOR" value="ffffcc" />
<option name="GUTTER_BACKGROUND" value="ffffff" />
<option name="INDENT_GUIDE" value="e5e5e5" />
<option name="LINE_NUMBERS_COLOR" value="b7b7b7" />
<option name="METHOD_SEPARATORS_COLOR" value="" />