Skip to content

Instantly share code, notes, and snippets.

@hamsterbacke23
hamsterbacke23 / gist:cfa605bc9de8bebe701a
Created July 16, 2015 08:27
concrete5 core scripts grunt
uglify: {
options: {
banner: '/*! Uglify <%= pkg.name %> <%= grunt.template.today("dd-mm-yyyy hh:MM:ss") %> */\n',
sourceMap: true
},
dist: {
files: {
'js/dist/scripts.min.js': ['<%= concat.dist.dest %>']
}
},
@hamsterbacke23
hamsterbacke23 / c5_getvars.bat
Created June 1, 2015 07:35
concrete5 put lang vars in po
:: usage: c5_getvars.bat", "<searchpath>", "<messages.po-path>", "<file-extension to search>"
SETLOCAL ENABLEDELAYEDEXPANSION :: I wonder what this does ?
:: set extension
SET Extension=%3
SET Extension
CALL :LoCase Extension
SET Extension
@hamsterbacke23
hamsterbacke23 / specialchartest.txt
Last active February 1, 2016 09:51
special char test
Test „tt“ """ '' '' ' ’ ',"..ù ‘‘. ` = ` ` \, asd いい感じじゃない [{ +*f éè – 5% ü ö ä ß ? !"§$" }] \ \ '\mock' me char\ %,;, ( ` ' <script>alert('bla');</script>
aäb cde fgh ijk lmn oöp qrsß tuü vwx yz AÄBC DEF GHI JKL MNO ÖPQ RST UÜV WXYZ ! "§ $%& /() =? * '<> |; ²³~ @`´ ©«» ¼× {} aäb cde fgh ijk lmn oöp qrsß tuü vwx yz AÄBC DEF GHI JKL MNO ÖPQ RST UÜV WXYZ ! "§ $%& /() =?
* '<> |; ²³~ @`´ ©«» ¼× {} aäb cde fgh ijk lmn oöp qrsß tuü vwx yz AÄBC DEF GHI JKL MNO ÖPQ RST UÜV WXYZ ! "§ $%& /() =? * '<> |; ²³~ @`´ ©«» ¼× {} aäb cde fgh ijk lmn oöp qrsß tuü vwx yz AÄBC DEF GHI JKL MNO ÖPQ RST UÜV WXYZ ! "§ $%& /() =?
* '<> |; ²³~ @`´ ©«» ¼× {} aäb cde fgh ijk lmn oöp qrsß tuü vwx yz AÄBC DEF GHI JKL MNO ÖPQ RST UÜV WXYZ ! "§ $%& /() =? * '<> |; ²³~ @`´ ©«» ¼× {} aäb cde fgh ijk lmn oöp qrsß tuü vwx yz AÄBC DEF GHI JKL MNO ÖPQ RST UÜV WXYZ ! "§ $%& /() =? * '<> |; ²³~ @`´ ©«» ¼× {}aäb cde fgh ijk lmn oöp qrsß tuü vwx yz AÄBC DEF GHI JKL MNO ÖPQ RST UÜV WXYZ ! "§
@hamsterbacke23
hamsterbacke23 / git-tricks.sh
Last active August 30, 2016 07:47
git-tricks.sh
# Show commit diff
git diff COMMIT^ COMMIT
# Search for commit with message
git log --all --grep='Build 0051'
# Search for file with globbing
git log --all -- '**/my_file.png'
# Last commit affecting a file
@hamsterbacke23
hamsterbacke23 / gulpfile.js
Last active December 18, 2015 06:07
gulp standard
var gulp = require('gulp'),
sass = require('gulp-sass'),
autoprefixer = require('gulp-autoprefixer'),
minifycss = require('gulp-minify-css'),
jshint = require('gulp-jshint'),
uglify = require('gulp-uglify'),
rename = require('gulp-rename'),
imagemin = require('gulp-imagemin'),
notify = require('gulp-notify'),
concat = require('gulp-concat'),
@hamsterbacke23
hamsterbacke23 / website_de.json
Created January 16, 2015 16:24
elasticsearch templates
{
"template" : "*_de",
"mappings" : {
"page": {
"dynamic": "strict",
"properties": {
"body": {
"type": "string",
"analyzer": "german"
@hamsterbacke23
hamsterbacke23 / st3comment
Last active August 29, 2015 14:12
st3 comment
<snippet>
<content><![CDATA[//${1/./-/g}--
// ${1:Your Comment Goes here}
//${1/./-/g}--]]></content>
<tabTrigger>comm</tabTrigger>
<scope>text.plain, source.js, source.sass, source.less, source.php</scope>
</snippet>
@hamsterbacke23
hamsterbacke23 / error_report_level
Created September 24, 2014 10:20
Display current error report level
<?php
function error_level_tostring($intval, $separator)
{
$errorlevels = array(
E_ALL => 'E_ALL',
E_USER_DEPRECATED => 'E_USER_DEPRECATED',
E_DEPRECATED => 'E_DEPRECATED',
E_RECOVERABLE_ERROR => 'E_RECOVERABLE_ERROR',
E_STRICT => 'E_STRICT',
E_USER_NOTICE => 'E_USER_NOTICE',
@hamsterbacke23
hamsterbacke23 / killtasks
Created September 11, 2014 11:24
kill mulitple windows tasks at once
taskkill /F /IM <processname.exe> /T