Skip to content

Instantly share code, notes, and snippets.

View pixelbrackets's full-sized avatar
🧑‍🎓
Looking at other things right now

Dan Kleine (geb. Dan Untenzu) pixelbrackets

🧑‍🎓
Looking at other things right now
View GitHub Profile
@pixelbrackets
pixelbrackets / .gitconfig
Last active May 22, 2019 09:43
Git Aliases
[alias]
# Status
st = status
sti = status
s = status
tst = status
ts = status
str = status
stt = status
# Branch
@pixelbrackets
pixelbrackets / bash
Created January 7, 2013 18:47
Use gzip for imports and exports in MySQL
#export
mysqldump -u username -p dbname | gzip > dbdump.sql.gz
#import
zcat dbdump.sql.gz | mysql -u username -p dbname
@pixelbrackets
pixelbrackets / .htaccess
Last active December 12, 2015 04:38
Combine several language dependend sitemaps using EXT:dd_googlesitemap in TYPO3
#RewriteRule ^sitemap.xml$ /?eID=dd_googlesitemap [L]
RewriteRule ^sitemap_de.xml$ /?eID=dd_googlesitemap&L=0 [L]
RewriteRule ^sitemap_en.xml$ /?eID=dd_googlesitemap&L=1 [L]
@pixelbrackets
pixelbrackets / gfm2html.sh
Last active September 16, 2022 03:13 — forked from evertton/gfm2html.sh
Convert a Github Flavored Markdown Syntax file to HTML./gfm2html <input> [stylesheet] > output
#!/bin/bash
# Convert a Github Flavored Markdown Syntax file to HTML
#
# The MIT License (MIT)
# Copyright © 2012 Evertton de Lima <[email protected]>
# http://evertton.mit-license.org/
# Stylesheet feature by Dan Untenzu <[email protected]>
#
# Requirements: cURL (sudo apt-get install curl)
@pixelbrackets
pixelbrackets / git_commit_message_format.md
Last active February 3, 2021 03:24
GIT Commit Message Format

Commit Message Format

[FEATURE] Short summary of changes introduced by this patch

More detailed explanatory text, if necessary. Wrap it to ca 74 characters.
The first line is treated as the subject of the commit message and
the rest of the text as the body. The blank line separating the
subject from the body is critical (unless you omit the body entirely).

Write your commit message in the imperative present tense ("Fix bug"
@pixelbrackets
pixelbrackets / Phing.sublime-build
Created March 11, 2013 11:26
Sublime 2 Phing Package
{
// Installation: Move into package folder (~/.config//sublime-text-2/Packages/Phing/Phing.sublime-build)
// Usage: Select »Phing« in »Build System«, hit »Strg+B« to build
// Package depends on a sublime project → The project root is a git repository (~/git/hello-world/), the phing files need to be stored inside a »build« subdirectory (~/git/hello-world/build/)
"selector": "phing",
"working_dir":"$file_path",
"shell":true,
@pixelbrackets
pixelbrackets / tx_versionCheck.php
Created July 2, 2013 09:44
TYPO3 Version Check for extensions
$version = class_exists('t3lib_utility_VersionNumber')
? t3lib_utility_VersionNumber::convertVersionNumberToInteger(TYPO3_version)
: t3lib_div::int_from_ver(TYPO3_version);
if ($version < 4006000) {
// do stuff for TYPO3 < 4.6
}
// Version Integer = [Major version XX][Minor version XX][Patch versions XXX] - e.g. »4.7.12« = »4007012«
// Read some discussions about the version check in the mailing list: http://typo3.3.n7.nabble.com/Second-Meeting-for-TYPO3-6-2-LTS-Release-td243944.html
@pixelbrackets
pixelbrackets / TYPO3update.txt
Last active July 4, 2017 13:15
TYPO3 Update via wget
wget get.typo3.org/4.5 -O typo3_src-4.5.40.tar.gz && tar xzf typo3_src-4.5.40.tar.gz && ln -snf typo3_src-4.5.40 typo3_src-4.5
wget get.typo3.org/6.2 -O typo3_src-6.2.27.tar.gz && tar xzf typo3_src-6.2.27.tar.gz && ln -snf typo3_src-6.2.27 typo3_src-6.2
wget get.typo3.org/7 -O typo3_src-7.6.11.tar.gz && tar xzf typo3_src-7.6.11.tar.gz && ln -snf typo3_src-7.6.11 typo3_src-7
wget get.typo3.org/8 -O typo3_src-8.3.1.tar.gz && tar xzf typo3_src-8.3.1.tar.gz && ln -snf typo3_src-8.3.1 typo3_src-8
@pixelbrackets
pixelbrackets / gist:11212440
Last active August 29, 2015 14:00
keybase.md
### Keybase proof
I hereby claim:
* I am pixelbrackets on github.
* I am pixelbrackets (https://keybase.io/pixelbrackets) on keybase.
* I have a public key whose fingerprint is ADCC BE32 2D40 2E9A 4465 2BEC B5BF 7C80 2001 256F
To claim this, I am signing this object:
@pixelbrackets
pixelbrackets / f-widget-paginate-style.md
Last active July 18, 2016 09:35
CSS for Fluid Pagination Widget in TYPO3 Flow

CSS for Fluid Pagination Widget in TYPO3 Flow

CSS

<style type="text/css">
	.typo3-widget-paginator {
		display: inline-block;

border-radius: 4px;