Skip to content

Instantly share code, notes, and snippets.

View benjaminkott's full-sized avatar
💻
Impossible is not a fact. It's an opinion.

Benjamin Kott benjaminkott

💻
Impossible is not a fact. It's an opinion.
View GitHub Profile
@benjaminkott
benjaminkott / gist:eaa577aaaa7140a099d1
Created April 27, 2015 21:35
Convert Boostrap variables less file to typoscript constants
<?php
$contents = file('variables.less', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
$data = array();
$categoryName = "bootstrap package: styling";
$defaultType = "string";
$categoryOffset = 300;
$currentCategory = false;
@benjaminkott
benjaminkott / gist:c1524d21df1c8ef8a8b7
Created July 5, 2015 06:50
Enable localhost access to Microsoft Edge
CheckNetIsolation LoopbackExempt -a -n=Microsoft.MicrosoftEdge_8wekyb3d8bbwe
@benjaminkott
benjaminkott / countCSSRules.js
Last active August 29, 2015 14:25 — forked from krisbulman/countCSSRules.js
Count the number of rules and selectors for CSS files on the page. Flags up the >4096 threshold that confuses IE. — This snippet has been modified to count more than just the first level of CSSStyleRule objects within CSSMediaRule.
function countCSSRules() {
var results = '',
log = '';
if (!document.styleSheets) {
return;
}
for (var i = 0; i < document.styleSheets.length; i++) {
countSheet(document.styleSheets[i]);
}
function countSheet(sheet) {
<?php
namespace Bk2k\Client\Slots;
/**
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
@benjaminkott
benjaminkott / WindowsInstallChecklist.md
Last active May 1, 2018 20:59
Windows Install Checklist

Install Windows

Disable UAC for actions that need elevations

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

ConsentPromptBehaviorAdmin = 0

Disable PowerShell Beeps

@benjaminkott
benjaminkott / .env.dist
Last active November 22, 2018 13:25
Create TYPO3 Project Windows
# Database Credentials
TYPO3_DB_CONNECTIONS_DEFAULT_HOST = "db"
TYPO3_DB_CONNECTIONS_DEFAULT_PORT = 3306
TYPO3_DB_CONNECTIONS_DEFAULT_USER = "db"
TYPO3_DB_CONNECTIONS_DEFAULT_PASS = "db"
TYPO3_DB_CONNECTIONS_DEFAULT_NAME = "db"
# Graphics
TYPO3_GFX_PROCESSOR = "ImageMagick"
TYPO3_GFX_PROCESSOR_PATH = "/usr/bin/"
sudo apt-get install wget
sudo apt-get install docker-ce -y
wget https://www.dropbox.com/s/332lj9d1zkp9t84/runc-chromeos?dl=1 -O runc-chromeos
sudo mv runc-chromeos /usr/local/bin/
sudo chmod +x /usr/local/bin/runc-chromeos
wget https://www.dropbox.com/s/camzt33ueudubc1/daemon.json?dl=1 -O daemon.json
sudo mv daemon.json /etc/docker/
sudo service docker restart
@benjaminkott
benjaminkott / constants.typoscript
Last active June 18, 2019 14:22
Constant Editor
# cat=Constant Editor/Test/120; type=string; label=String: Description
constantEditor.string = string
# cat=Constant Editor/Test/120; type=boolean; label=boolean
constantEditor.boolean = 1
# cat=Constant Editor/Test/120; type=options[Foo=FooValue, Bar=BarValue]; label=options[Foo=FooValue, Bar=BarValue]
constantEditor.options = BarValue
abhivijay96.automaton-schema-intellisense
alexcvzz.vscode-sqlite
benjaminkott.typo3-typoscript
dawhite.mustache
dbaeumer.vscode-eslint
dcortes92.FreeMarker
eamodio.gitlens
EditorConfig.EditorConfig
felixfbecker.php-debug
felixfbecker.php-intellisense
@benjaminkott
benjaminkott / Canon_SELPHY_CP1500.ppd
Last active January 5, 2024 20:16
CUPS Canon SELPHY CP1500 PostScript Printer Driver - PPD
*PPD-Adobe: "4.3"
*cupsMandatory: attributes-charset attributes-natural-language printer-uri
*% PPD created by ipp2ppd (v2:Feb 1 2018)
*FormatVersion: "4.3"
*FileVersion: "2.0"
*LanguageVersion: English
*LanguageEncoding: ISOLatin1
*PSVersion: "(3010.000) 0"
*LanguageLevel: "3"
*FileSystem: False