Skip to content

Instantly share code, notes, and snippets.

@gilbertsoft
gilbertsoft / typo3-aimeos-dev.sh
Last active November 30, 2020 18:28
Install and Setup Aimeos Dev Packages using TYPO3 and DDEV
#!/bin/bash
# ---------------------------------------------------------------------------
# start configuration
# ---------------------------------------------------------------------------
project=typo3-aimeos-dev
projectFolder=${project}
githubOrg=yourorg
typo3Version=9.5
packages='aimeos-core ai-controller-frontend ai-client-jsonapi ai-controller-jobs ai-client-html ai-admin-jsonadm ai-admin-jqadm ai-typo3 ai-gettext aimeos-typo3'
@edPratt
edPratt / mac-osx-node-npm.md
Last active December 19, 2019 21:56
Fixing npm On Mac OS X; When npm install -g does not work

Nuke Everything node/npm related

(If you have setup another prefix)
rm -rf .npm-global

sudo rm -rf /usr/local/lib/node_modules
sudo rm -rf ~/.npm
brew uninstall node --ignore-dependencies node
rm -rf /usr/local/lib/node_modules

@netsmertia
netsmertia / imageScaleAndRotate.dart
Last active May 24, 2020 13:40
image rotate and scale
import 'dart:async';
import 'dart:math';
import 'dart:typed_data';
import 'dart:ui' as ui;
import 'package:flutter/services.dart' show rootBundle;
import 'package:flutter/material.dart' hide Image;
void main() => runApp(new MyApp());
@atomjar
atomjar / product_style
Last active January 22, 2024 11:57
Stylesheet for Vue Mastery's Intro to Vue course
body {
font-family: tahoma;
color:#282828;
margin: 0px;
}
.nav-bar {
background: linear-gradient(-90deg, #84CF6A, #16C0B0);
height: 60px;
margin-bottom: 15px;
@pjobson
pjobson / MKVToolNix_notes.md
Last active January 31, 2023 13:06
Notes for creating, editing, and extracting MKV files.

MKVToolNix Notes

Various notes for using MKVToolNix.

Probe a Video

mkvinfo lists all elements contained in an MKV container file.

mkvinfo container.mkv
@eek
eek / slugify.js
Last active August 4, 2021 14:23
Vanilla JavaScript Slugify + Accent removal - Just another JavaScript Slugifier with an extra line for Accent Removal
function slugify(text) {
return text.toString().toLowerCase().trim()
.normalize('NFD') // separate accent from letter
.replace(/[\u0300-\u036f]/g, '') // remove all separated accents
.replace(/\s+/g, '-') // replace spaces with -
.replace(/&/g, '-and-') // replace & with 'and'
.replace(/[^\w\-]+/g, '') // remove all non-word chars
.replace(/--+/g, '-') // replace multiple '-' with single '-'
}
@kagarlickij
kagarlickij / powerlevel9k.zsh-theme
Last active May 29, 2019 17:02
This is my config for Powerlevel9k theme for ZSH located in ~/.oh-my-zsh/custom/themes/powerlevel9k
# vim:ft=zsh ts=2 sw=2 sts=2 et fenc=utf-8
################################################################
# powerlevel9k Theme
# https://github.com/bhilburn/powerlevel9k
#
# This theme was inspired by agnoster's Theme:
# https://gist.github.com/3712874
################################################################
################################################################
@NamelessCoder
NamelessCoder / AdditionalConfiguration.php
Created March 12, 2017 18:17
Using namelesscoder/typo3-cms-multilevel-cache
<?php
/*
* Demonstrates how to configure `namelesscoder/typo3-cms-multilevel-cache` for
* added L1 (runtime) and L2 (memcached) caches on existing database-backed caches.
*
* Tip: if your site changes frequently, consider assigning a low expiration time
* on the "default_memcached" cache configuration.
*/
@NamelessCoder
NamelessCoder / injectionmethods.md
Last active February 12, 2020 15:59
Why you should never use @Inject in TYPO3 Extbase

This mini-article describes the methods of dependency injection, what each method implies in terms of both performance and simplicity.

  1. Constructor injection

This method is half manual and quite well known. Declare your classes' dependencies as constructor and pass the dependencies when you construct your instances. This approach completely skips the automation around detection of injections - but performs the best of all methods.

@rbanffy
rbanffy / gist:9c806ba406dba9a5afa324d0be3b8f13
Last active November 19, 2021 20:08
Find out more about your CPU
open http://www.google.com/?q=$(sysctl -n machdep.cpu.brand_string | awk '{FS=" " ; print $2 "+" $3 "+" $4}')+site:ark.intel.com
or, on a Linux machine
xdg-open http://www.google.com/?q=$(fgrep 'model name' /proc/cpuinfo | head -n 1 | awk '{FS=" " ; print $5 "+" $6}')+site:ark.intel.com