Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name TweetXer
// @namespace https://gist.github.com/lucahammer/a4d1e957ec9e061e3cccafcbed599e16/
// @version 0.6
// @description Delete all your Tweets for free.
// @author Luca
// @match https://x.com/*
// @icon https://www.google.com/s2/favicons?domain=twitter.com
// @grant unsafeWindow
// ==/UserScript==
@BugBuster1701
BugBuster1701 / mig480.php
Last active March 11, 2020 10:55
Contao 4.8.0 DB Migration wichtiger Teil eines Bildes
<?php
//ich muss ins web/ Verzeichnis, Aufruf über Browser oder Kommandozeile
//vorher DB Backup durchführen der tl_files Tabelle zur Sicherheit
define('TL_SCRIPT', 'MIGRATION480');
define('TL_MODE' , 'FE');
include __DIR__.'/../system/initialize.php';
<?php
die ('This is not executable now! Please comment out this line.');
$config = array(
'url' => 'https://getcomposer.org/composer.phar',
'dir' => __DIR__ . '/composer',
'bin' => __DIR__ . '/composer/composer.phar',
'json' => __DIR__ . '/composer/composer.json',
'command' => 'install' // The composer command update/install
@discordier
discordier / endlessscroll.js
Created March 22, 2017 22:11
Endless scrolling for MetaModels content elements.
jQuery(document).ready(function () {
var j= jQuery,
container = '.ce_metamodel_content',
list = '.layout_full',
entry = '.item',
pagination = j('.pagination');
var urls = [],
scrolled = function (elem) {
var
@RavuAlHemio
RavuAlHemio / contao3.conf
Last active July 21, 2017 21:51
Contao 3 and 4 nginx.conf
index index.php index.html;
location ~ ^/(favicon\.ico|robots\.txt)$ {
allow all;
log_not_found off;
access_log off;
}
# don't show templates
location ~* \.(tpl|html5|xhtml)$ {
@fiedsch
fiedsch / Contao backup script
Last active October 20, 2018 16:42
Contao Backup
moved to repository https://github.com/fiedsch/contao-backup-script
see also https://github.com/fiedsch/contao-4-backup-script (for Contao 4)
@stefansl
stefansl / contao-db-update.php
Last active October 17, 2019 21:01
Modified path upgrade script for contao. No config editing necessary. Copy in your Contao root and run.
<?php
/*
When updating from Contao 2 to Contao 3, you must not rename the tl_files folder to files!
If you want to re­name the folder, you have to take the following steps:
· Complete the version 3 update in the install tool
· Then rename the upload folder in the back end settings to files
· Last run the modified version of Tristan's script
@psi-4ward
psi-4ward / contao.conf
Last active October 19, 2016 10:44
NGINX Contao 3 Config with PHP-FPM
index index.php index.html index.html;
client_max_body_size 200M;
sendfile on;
error_page 404 /404.html;
location / {
try_files $uri $uri/ /index.php?$args;
}
location = /favicon.ico {
@stefansl
stefansl / dcaconfig.php
Last active June 15, 2018 17:31
Some personal improvements in Contao (/system/config/dcaconfig.php)
// Reihenfolge der Headline-Typen ändern
$GLOBALS['TL_DCA']['tl_content']['fields']['headline']['options']= array('h2', 'h3', 'h4', 'h5', 'h6', 'h1');
// Artikel und Seiten standardmäßig auf 'veröffentlicht' stellen
$GLOBALS['TL_DCA']['tl_article']['fields']['published']['default'] = true;
$GLOBALS['TL_DCA']['tl_page']['fields']['published']['default'] = true;
// HTML in Überschriften erlauben
$GLOBALS['TL_DCA']['tl_content']['fields']['headline']['eval']['allowHtml'] = true;
@chani
chani / Contao2srcTo3.php
Last active December 26, 2015 12:39
Script to convert old contao 2 src format to the new one by simply replacing the path with the id's. check comment in file for details.
<?php
/**
* Copyright (c) 2013 Jean Bruenn
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions: