Skip to content

Instantly share code, notes, and snippets.

@marble
marble / remote-symlink.sh
Created September 5, 2017 08:08
Bash: Create a symlink on a remote server when 'ln' is disabled
@marble
marble / About-Oh-My-Zsh.rst
Last active November 8, 2017 12:14
About oh-my-zsh

About Oh-My-Zsh

2017-11-06

WIP - work in progress. Just starting

# what we pull
TAG_1=develop-benjaminkott
# what we use
TAG_2="2.5.0-dev-bk"
# where to keep the shell-commands.sh file
T3DOCS_DOCKRUN_SOURCE_FOLDER=~/.dockrun/dockrun_t3rd
# what file gets sourced from .zshrc
T3DOCS_DOCKRUN_SOURCE=~/.dockrun/dockrun_t3rd/shell-commands.sh
headline () {
@marble
marble / vim_cheatsheet.md
Created January 21, 2020 12:41 — forked from awidegreen/vim_cheatsheet.md
Vim shortcuts

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
@marble
marble / how-to-build-and-test-sphinx-theme.sh
Created January 28, 2020 14:09
How to build and test the sphinx_typo3_theme locally
# mb, 2020-01-28, 2020-01-28
# MIT license
# go to the sphinx_typo3_theme
# 1. grunt clean
# 2. grunt default
# 3. python3 setup.py sdist bdist_wheel
# Find the final package:
theme_package=/home/user/Repositories/github.com/TYPO3-Documentation/sphinx_typo3_theme/dist/sphinx_typo3_theme-4.0.3.dev12+g903f566.tar.gz
# Fulfill system requirements: python3, pip, pipenv
@marble
marble / How-to-set-up-Ubuntu-for-TYPO3-Sphinx.sh
Created April 3, 2020 08:20
How to set up Ubuntu (18.04) for TYPO3 Sphinx
##################################################
##################################################
# Prepare Ubuntu 18.04 for TYPO3 Sphinx
#
# How to:
#
# 1. Do step (1) first.
# 2. Afterwards run (2) and (3) in the shell.
# This can be done in one go - if you like.
#
@marble
marble / gist:b02c753abf19368e0f34678601c157f3
Last active January 6, 2021 01:36
render-typo3-viewhelper-docs-from-php-code-whiptail-menu.sh
#! /bin/bash
# This software is MIT licensed.
# Available from https://gist.github.com/marble/b02c753abf19368e0f34678601c157f3/edit
# Designed for a Linux like system that has the 'whiptail' command installed.
# Copyright <2020> <[email protected]>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
@marble
marble / INSTALL.md
Created March 6, 2021 11:45 — forked from okapies/INSTALL.md
How to install akvcam on Ubuntu 18.04

Install DKMS

$ apt install dkms

Prepare for signing kernel modules

TODO

Install

Download the source code.

@marble
marble / FalUpload.php
Created April 9, 2021 09:04 — forked from ghanshyamgohel/FalUpload.php
TYPO3 extBase easy upload example for FAL image. Key: FAL upload single image, FAL upload multiple images, FAL delete single image, FAL delete multiple images
<?php
// Location: your_ext/Classes/Domain/Model/FalUpload.php
namespace VENDOR\YourExt\Domain\Model;
class FalUpload extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
{
/**
* teaserImage
*
@marble
marble / ANSI.md
Created November 20, 2023 16:17 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27