Skip to content

Instantly share code, notes, and snippets.

View SimonWpt's full-sized avatar

Bertram Simon SimonWpt

View GitHub Profile

Keybase proof

I hereby claim:

  • I am simonwpt on github.
  • I am bsimonwppt (https://keybase.io/bsimonwppt) on keybase.
  • I have a public key ASAEJ8T-hCsMmeeMduJL1vbk7y6xIEjbqmZBU6pC7pHw0Ao

To claim this, I am signing this object:

@SimonWpt
SimonWpt / user.txt
Created December 4, 2018 11:37
Typical usernames for brute-force attacks on the backend
0x1999
123456
Administrator
admin
admin1
admin123
admin13
admina
administrwp
adminko
@SimonWpt
SimonWpt / foo.t3
Created November 9, 2013 17:41
Include special record in TYPO3
temp.foo = RECORDS
temp.foo {
tables = tt_content
source = 1
}
@SimonWpt
SimonWpt / t3_empty_temp.sql
Created September 26, 2013 13:38
TYPO3: Löschen der Tabelleninhalte des Caches, der indexed_search und des Crawlers
TRUNCATE TABLE cache_extensions;
TRUNCATE TABLE cache_hash;
TRUNCATE TABLE cache_imagesizes;
TRUNCATE TABLE cache_md5params;
TRUNCATE TABLE cache_pages;
TRUNCATE TABLE cache_pagesection;
TRUNCATE TABLE cache_typo3temp_log;
TRUNCATE TABLE index_fulltext;
TRUNCATE TABLE index_grlist;
TRUNCATE TABLE index_phash;
@SimonWpt
SimonWpt / responsive-background-image.sass
Created April 16, 2013 13:37
Responsive Backgroundimage
img.bg
/* Set rules to fill background
min-height: 100%
min-width: 1024px
/* Set up proportionate scaling
width: 100%
height: auto
/* Set up positioning
position: fixed
top: 0
@SimonWpt
SimonWpt / vendorize.css
Created October 18, 2012 14:33
example for vendor-prefix and rem
.test {
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-ms-border-radius: 5px;
-o-border-radius: 5px;
border-radius: 5px;
-webkit-border-radius: 0.5rem;
-moz-border-radius: 0.5rem;
-ms-border-radius: 0.5rem;
-o-border-radius: 0.5rem;
@SimonWpt
SimonWpt / example.sass
Created October 15, 2012 07:53
Small sass-mixin for the use of retina-images
body
background: url("bg.png") no-repeat
@include image-2x("bg.png", 100px, 25px)
<NotepadPlus>
<InternalCommands />
<Macros>
<Macro name="Trim Trailing and save" Ctrl="no" Alt="yes" Shift="yes" Key="83">
<Action type="2" message="0" wParam="42024" lParam="0" sParam="" />
<Action type="2" message="0" wParam="41006" lParam="0" sParam="" />
</Macro>
<Macro name="Delete t3conf comments" Ctrl="no" Alt="no" Shift="no" Key="0">
<Action type="3" message="1700" wParam="0" lParam="0" sParam="" />
<Action type="3" message="1601" wParam="0" lParam="0" sParam="\#\#\s+INSTALL\s+SCRIPT\s+.*$" />
@SimonWpt
SimonWpt / localconf.php
Created September 8, 2012 18:47
TYPO3 - Weiche für 404 oder FE-Login
$TYPO3_CONF_VARS['SYS']['curlUse'] = '1';
$TYPO3_CONF_VARS['FE']['pageNotFound_handling'] = 'USER_FUNCTION:fileadmin/scripts/pageNotFoundHandling.php:user_pageNotFound->pageNotFound';
@SimonWpt
SimonWpt / extTables.php
Created June 26, 2012 15:41
Wenn man in TYPO3 die Seiteneigenschaften um den Typ Datei/PDF erweitern will...
<?php
/**
* Overriding $TCA
*
* The TYPO3 Configuration Array (TCA) is defined by the distributed tables.php and ext_tables.php files.
* If you want to extend and/or modify its content, you can do so with scripts like this.
* Or BETTER yet - with extensions like those found in the typo3conf/ext/ or typo3/ext/ folder.
* Extensions are movable to other TYPO3 installations and provides a much better division between things! Use them!
*
* Information on how to set up tables is found in the document "Inside TYPO3" available as a PDF from where you downloaded TYPO3.