This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$link = mysql_connect("host", "db", "pw"); | |
if (!$link) die('Could not connect: ' . mysql_error()); | |
$sql = 'SHOW VARIABLES LIKE "%version%"'; | |
$result = mysql_query($sql,$link); | |
print "MySQL server version: " . mysql_get_server_info(); | |
while($row = mysql_fetch_assoc($result)){ | |
foreach($row as $cname => $cvalue){ | |
print "$cname: $cvalue\t"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tar -cvzf ./backup_$(date +"%Y%m%d").tgz ./ --exclude='*.tgz' --exclude './zugang.txt' --exclude './tmp/*' --exclude './logs/*' --exclude './var/*' --exclude './htdocs/build/*' --exclude './.git/*' --exclude './node_modules' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'regex-replace' : { | |
htmlsnapshots: { | |
src: ['build/**/*.html'], | |
actions: [ | |
{ | |
name: 'changelinks', | |
search: '<\s*a(.*?)href\s*=\s*(?:"|\')(?:\/)(.*?)(?:"|\')[^>]*>(.*?)<\s*?\/\s*?a\s*?>', // jshint ignore:line | |
replace: '<a $1 href="/build/$2">$3</a>', | |
flags: 'gi' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | |
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> | |
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Bootstrap 101 Template</title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// strg - h | |
(.*)echo(?:\s.*)isset\(\$areas\['(.*)'\]\).+ | |
$1$a = new Area('$2');\n$1$a->display($c); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"cmd": ["grunt", "version"], | |
"shell" : "true", | |
"variants": [ | |
{ "cmd": ["grunt", "build"], | |
"name": "Concrete5 package: Get rid of grunt and cli stuff", | |
"shell": true | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rmdir /s /q "%userprofile%\AppData\Local\Spotify\Storage"; | |
rmdir /s /q "%userprofile%\AppData\Local\Spotify\Browser"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Coda</string> | |
<key>settings</key> | |
<array> | |
<dict> | |
<key>settings</key> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
echo '<pre class="${2:debug-me}" style="color:#${3:666}; width:500px; font-size:11px; white-space: pre-wrap;">'; | |
echo '($1): '; | |
var_dump($1); | |
echo '</pre>'; | |
exit; | |
]]></content> | |
<tabTrigger>pre</tabTrigger> |