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 / bash
Last active November 13, 2022 03:46
wget crawler (e.g. simple cache warmup)
### crawls all links, writes the result to /tmp/ and deletes the files right away
wget --spider --force-html -r -l10 --directory-prefix=/tmp/ --no-directories --delete-after http://www.example.com
@pixelbrackets
pixelbrackets / Fluid.html
Last active May 15, 2019 17:24
TYPO3 Neos Backend Conditions
<f:if condition="{node.context.workspace.name} == 'live'">
Only visible in live frontend
</f:if>
<f:security.ifAccess privilegeTarget="TYPO3.Neos:Backend.GeneralAccess">
<f:if condition="{node.context.workspace.name} != 'live'">
Only visible in backend workspace
</f:if>
</f:security.ifAccess>
@pixelbrackets
pixelbrackets / homepage.html
Last active August 29, 2015 14:13
Allow/Deny Content Elements in FLUX grids
<!-- Allow ONLY the FCE »Slider« in a column -->
<flux:grid>
<flux:grid.row>
<flux:grid.column name="sliderContent" colPos="1" variables="{allowedContentTypes: 'fluidcontent_content', Fluidcontent: {allowedContentTypes: 'Vendorname.some_extension_key:Slider.html'}}" />
</flux:grid.row>
<flux:grid.row>
<flux:grid.column name="mainContent" colPos="0" variables="{Fluidcontent: {deniedContentTypes: 'Vendorname.some_extension_key:Slider.html'}}" />
</flux:grid.row>
</flux:grid>
@pixelbrackets
pixelbrackets / .bash_aliases
Last active July 2, 2023 14:15
Bash Aliases
### path
alias sl='ls'
alias la='ls -alh'
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
### git
alias gll='git log --graph --pretty=oneline --abbrev-commit'
alias gls='git log -7 --oneline'
@pixelbrackets
pixelbrackets / .gitconfig
Last active March 7, 2019 10:45
Git Commit Message Template
### add this to your gitconfig (~/.config/git/config)
### …or use this command: git config --global commit.template ~/.config/git/gitcommitmessage.txt
[commit]
template = ~/.config/git/gitcommitmessage.txt
@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;

@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 / 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 / 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 / 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,