Skip to content

Instantly share code, notes, and snippets.

View beardcoder's full-sized avatar
👾
Explore the universe

Markus beardcoder

👾
Explore the universe
View GitHub Profile
@duan-li
duan-li / phpstorm.vmoptions
Last active July 1, 2017 17:48
custom PhpStorm VM options .vmoptions
# custom PhpStorm VM options
## Comm Setting
-Xms512m
-Xmx2048m
-XX:ReservedCodeCacheSize=240m
## Mac OS Setting
-XX:+UseCompressedOops
@DrLulz
DrLulz / osx
Created October 8, 2016 18:27
osx defaults
#!/bin/sh
# This is mostly inspired by @mathiasbynens `.osx`. http://mths.be/osx
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
@thiagoc7
thiagoc7 / .before.laptop.sh
Last active March 23, 2018 09:12
new mac
#!/usr/bin/env bash
set -eu
#
# Binary installer
#
# Check for Homebrew
if test ! $(which brew); then
echo "Installing homebrew..."
@alrnz
alrnz / flexform.xml
Last active September 11, 2019 10:57
TypoLink in flexform for TYPO3 7.6 #TYPO3
<settings.link>
<TCEforms>
<exclude>1</exclude>
<label>
Link to Page or a File or a Content-Element
</label>
<config>
<type>input</type>
<size>30</size>
<eval>trim</eval>
@christophengelmayer
christophengelmayer / Settings.yaml
Last active January 21, 2020 21:35
Neos CMS + webpack-dev-server
# Configuration/Development/Webpack/Settings.yaml
Neos:
Flow:
http:
baseUri: 'http://localhost:3000/'
@pgampe
pgampe / menu.ts
Last active August 4, 2020 12:51
Fully cached menu with TypoScript
page.10 >
page.10 = COA
page.10 {
cache {
key = main-menu
}
10 = TEXT
10 {
@gesellix
gesellix / screen-stuff.md
Created May 1, 2016 22:39
screen and Docker for Mac
screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty



screen -AmdS docker ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
screen -r docker
# enter, then disconnect with Ctrl-a d
screen -S docker -p 0 -X stuff $(printf root\\r\\n)
screen -r docker
@rvanzon
rvanzon / readme.md
Last active September 9, 2021 17:22
Nuxt.js: reduce the number of chunks

To reduce the number of chunks of your project build with Nuxt.js add the next lines:

  if (!this.dev) {
    config.plugins.push(new webpack.optimize.LimitChunkCountPlugin({
      maxChunks: 3        
    }))
  }

right under extend (config, ctx) { of nuxt.config.js. Then build your project with npm run build. Et voilà, No more than 3 chunks :-)

@gguerini
gguerini / macos
Created April 27, 2012 22:05
MacOS Defaults
# Disable menu bar transparency
defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false
# Show remaining battery time; hide percentage
defaults write com.apple.menuextra.battery ShowPercent -string "NO"
defaults write com.apple.menuextra.battery ShowTime -string "YES"
# Expand save panel by default
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
@AndreaMinato
AndreaMinato / auth.ts
Last active June 20, 2023 00:55
Typescript Vuex Module
import axios, { AxiosRequestConfig } from "axios";
import router from "@/router"; //shortcut to src
import { Module } from "vuex";
const authModule: Module<any, any> = {
state: {
loggedIn: false,
loginError: null,
username: null