Skip to content

Instantly share code, notes, and snippets.

View blaues0cke's full-sized avatar
🏠
Working from home

Thomas Kekeisen blaues0cke

🏠
Working from home
View GitHub Profile
@blaues0cke
blaues0cke / lowercaseAllFilesInFocussedWindowsExplorerWindowOnWindowsM.ahk
Last active August 29, 2015 14:25
Lowercase all files in a active windows explorer window using autohotkey
#m::
WinGetActiveTitle, windowTitle
IfExist, %windowTitle%
{
Loop, %windowTitle%\*, , 1
{
currentName = %A_LoopFileName%
StringLower, lowerPath, currentName
@blaues0cke
blaues0cke / gist:6937dc65075c027a7255
Created July 19, 2015 14:23
Change chrome page tabs using additional mouse keys
XButton1::
; Previous tab
Send ^{PgUp}
return
XButton2::
; Next tab
Send ^{PgDn}
return
@blaues0cke
blaues0cke / gist:f8d17a4dbdb3eb79894b
Created July 19, 2015 14:33
Automatically convert a unix timestamp to human readable data when copied to the clipboard
#Persistent
return
OnClipboardChange:
currentClipboardData = %clipboard%
if currentClipboardData is integer
{
if currentClipboardData > 1000000000
Set fileSystemObject = CreateObject("Scripting.FileSystemObject")
inputFilePathFull = WScript.Arguments(0)
Set fileObject = fileSystemObject.GetFile(inputFilePathFull)
inputFileName = fileSystemObject.GetFileName(fileObject)
inputFilePath = fileSystemObject.GetParentFolderName(fileObject)
Set fileSystemObject = CreateObject("Scripting.FileSystemObject")
inputFilePathFull = WScript.Arguments(0)
Set fileObject = fileSystemObject.GetFile(inputFilePathFull)
inputFileName = fileSystemObject.GetFileName(fileObject)
inputFilePath = fileSystemObject.GetParentFolderName(fileObject)
@blaues0cke
blaues0cke / EmptyFilter.php
Created September 21, 2015 13:30
DunglasApiBundle "IS NULL" custom filter
<?php
namespace Foo\AppBundle\Api\Filter;
use Dunglas\ApiBundle\Doctrine\Orm\Filter\AbstractFilter;
use Doctrine\Common\Persistence\ManagerRegistry;
use Doctrine\ORM\QueryBuilder;
use Dunglas\ApiBundle\Api\IriConverterInterface;
use Dunglas\ApiBundle\Api\ResourceInterface;
@blaues0cke
blaues0cke / OrderByRelationFilter.php
Last active October 14, 2015 08:15
A filter that allows you to sort by related entities using DunglasApiBundle (https://github.com/dunglas/DunglasApiBundle).
<?php
namespace Your\AppBundle\Api\Filter;
use Dunglas\ApiBundle\Doctrine\Orm\Filter\AbstractFilter;
use Doctrine\Common\Persistence\ManagerRegistry;
use Doctrine\ORM\QueryBuilder;
use Dunglas\ApiBundle\Api\IriConverterInterface;
use Dunglas\ApiBundle\Api\ResourceInterface;
<?php
if (!empty($_POST['imageData']))
{
$image = base64_decode($_POST['imageData']);
file_put_contents('last-image.png', $image);
}
@blaues0cke
blaues0cke / workshop.php
Created November 3, 2015 14:59
Socialbit Workshop Code 03.11.2015
<pre><?php
set_time_limit(2);
//require('dark.php');
//require('reload.php');
interface LebewesenInterface
{
public function getName();
@blaues0cke
blaues0cke / style.css
Created April 6, 2016 12:23
JIRA agile board and confluence calendars 9:16 style
.calendar-panel {
margin-right: 0;
}
.fc-view, .timeline-frame {
height: 1410px ;
}
.fc-view.fc-view-agendaWeek.fc-agenda > div > div:last-child {
height: 1000px ;