Skip to content

Instantly share code, notes, and snippets.

View IchHabRecht's full-sized avatar

Nicole Hummel IchHabRecht

  • biz-design
  • Berlin, Germany
View GitHub Profile
@IchHabRecht
IchHabRecht / gist:6299561
Created August 21, 2013 20:10
[Mp3tag] iTunes compatible file name converting
$if(%discnumber%,$ifgreater($strchr(%discnumber%,'/'),0,$left(%discnumber%,$strchr(%discnumber%,'/')),%discnumber%)-,)$if(%track%,$num($ifgreater($strchr(%track%,'/'),0,$left(%track%,$strchr(%track%,'/')),%track%),2) ,)%title%
@IchHabRecht
IchHabRecht / gist:6299574
Created August 21, 2013 20:11
[TYPO3] Show pageIds in tree view
options {
pageTree.showPageIdWithTitle = 1
}
@IchHabRecht
IchHabRecht / gist:6299625
Created August 21, 2013 20:15
[GIT] Change commiter name
git filter-branch --commit-filter '
if [ "$GIT_COMMITTER_NAME" = "unknown" ];
then
GIT_COMMITTER_NAME="<New Name>";
GIT_AUTHOR_NAME="<New Name>";
GIT_COMMITTER_EMAIL="<New Email>";
GIT_AUTHOR_EMAIL="<New Email>";
git commit-tree "$@";
else
git commit-tree "$@";
@IchHabRecht
IchHabRecht / gist:6299678
Created August 21, 2013 20:19
[Fritzbox] VPN routen
1. In Shrew Soft eine config anlegen, wie im VPN-Protal von avm angegeben (http://www.avm.de/de/Service/Service-Portale/Service-Portal/VPN_Interoperabilitaet/15729.php?portal=VPN)
2. Die fritzbox.cfg muss an 2 Stellen folgendermaßen angepasst werden:
a) phase2localid {
ipnet {
ipaddr = 0.0.0.0
mask = 0.0.0.0
}
}
b) accesslist = "permit ip any 192.168.100.201 255.255.255.255";
@IchHabRecht
IchHabRecht / gist:6299689
Created August 21, 2013 20:20
[Bash] Find files and grep them
find -type f -name *.php -print0 | xargs -0 grep -l questionnaire
@IchHabRecht
IchHabRecht / gist:6299702
Created August 21, 2013 20:21
[Bash] Count files found by find
find -type f -name *.pdf | wc -l
@IchHabRecht
IchHabRecht / gist:6299725
Created August 21, 2013 20:23
[JS] Columns of same length
<script type="text/javascript">
<!--
jQuery.noConflict();
jQuery(document).ready(function() {
var wrapper = jQuery('div#wrapper_content').find('div#wrapper_columns');
if (wrapper.length > 0) {
jQuery('div#column_left > div').each(function(index){
var h = Math.max(jQuery(this).height(), jQuery('div#column_right > div').eq(index).height());
jQuery(this).height(h);
jQuery('div#column_right > div').eq(index).height(h);
@IchHabRecht
IchHabRecht / gist:6299775
Last active December 21, 2015 11:38
[APACHE] SSL certificate under Windows 7
cd "C:\Program Files (x86)\Apache2\bin"
openssl req -config ../conf/openssl.cnf -new -out XXX.csr -keyout XXX.pem
>> Fill in "PEM pass phrase" and "Common Name"
openssl rsa -in XXX.pem -out XXX.key
>> Delete the .rnd file
@IchHabRecht
IchHabRecht / gist:6299782
Created August 21, 2013 20:28
[CSS] Enable Webfonts local in Firefox
about:config security.fileuri.strict_origin_policy = false
@IchHabRecht
IchHabRecht / gist:6299812
Created August 21, 2013 20:30
[APACHE] Load other PHP version with FastCGI
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "C:/Apache2/htdocs/localhost"
ServerName localhost.local
ErrorLog "logs/localhost-error.log"
CustomLog "logs/localhost-access.log" combined
<Directory "C:/Apache2/htdocs/localhost">
Options FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny