Skip to content

Instantly share code, notes, and snippets.

@frivolta
frivolta / thirdSolution.js
Created April 12, 2021 08:17
jmawd - lastSolution
const result = [...new Set([...firstArr, ...secondArr])]
@rbqueo
rbqueo / MenuUtility.php
Last active January 15, 2023 11:51 — forked from birger-fuehne/MenuUtility.php
Set USERDEF1 (or USERDEF2) in a language menu on record detail pages if the record is not translated. #TYPO3
<?php
namespace BGM\BgmTheme\Utility;
/*
* 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.
*
@PyYoshi
PyYoshi / command.sh
Created September 25, 2017 04:05 — forked from peterdemartini/command.sh
Exclude node_modules in timemachine
find `pwd` -type d -maxdepth 3 -name node_modules | xargs -n1 sudo tmutil addexclusion -p
@gabrielRamaker
gabrielRamaker / parseFunc.ts
Created May 10, 2016 08:00
Typoscript to modify typo3 filelinks to add icon and filesize without userFunc
lib.parseFunc.tags.link {
stdWrap.wrap {
if {
value = file
equals.cObject = TEXT
equals.cObject {
data = parameters:allParams
split {
token = :
cObjNum = 1 || 2
@macmladen
macmladen / remove-all-followers.js
Created March 11, 2016 19:49
Remove all Twitter followers.
/**
* Removes all followers on Twitter, usually added by profile breach.
* Usage: just copy code bellow (triple click on line & CTRL+C ) to the
* Developer console in browser, press ENTER and watch them being deleted.
*/
setInterval(function(){t=$('.following').find('.follow-button');if(!t[0]){window.scrollTo(0,$(document).height());}else{console.log(t.attr('class')); t.trigger('click');}},100)
@arnekolja
arnekolja / MyController.php
Created January 10, 2015 19:05
TYPO3, Extbase: Simple JsonView usage
<?php
/* This is tested with 6.2.9 only */
namespace MY\Extension\Controller;
class MyController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController {
private $ajaxPageType = 133799;
/**
@paulallies
paulallies / gist:0052fab554b14bbfa3ef
Last active August 3, 2024 16:45
Remove node_modules from git repo
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin <branch-name>