Skip to content

Instantly share code, notes, and snippets.

View jonnitto's full-sized avatar
:octocat:
Web Maniac

Jon Uhlmann jonnitto

:octocat:
Web Maniac
View GitHub Profile
@jonnitto
jonnitto / tailwindcss.config.js
Created May 23, 2022 12:26
Tailwind CSS basic custom plugins
module.exports = {
plugins: [
require("@tailwindcss/forms"),
require("@tailwindcss/typography"),
require("@tailwindcss/aspect-ratio"),
require("@tailwindcss/line-clamp"),
plugin(({ addVariant, addUtilities }) => {
// Add not empty variants
addVariant("not-empty", ["&:not(:empty)"]);
addVariant("group-not-empty", [".group:not(:empty) ~ &"]);
@jonnitto
jonnitto / deploy.yaml
Last active May 30, 2023 22:51
Deployment with Github Actions
name: CI-CD
on:
push:
branches:
- production
jobs:
deploy:
name: Deploy to Production
@jonnitto
jonnitto / .bashrc
Last active March 26, 2018 08:25
Open Neos project from the Command Line
# With the command `NeosProject` you get the site package folder and available folders definded in `ADDITIONAL_FOLDER`
# With `codeProject` you open your project in Visual Studio Code
# With `atomProject` you open your project in Atom
# With `pstormProject` you open your project in PHP Storm
# To disable the fallback (open current folder), change the fallback variable to ""
NeosProject() {
# Places where site packages could are stored
local SITE_FOLDER=(".src" "_src" "Packages/Sites")
#!/bin/bash
# To be able to use the script it must be made executable:
# chmod +x CopyBoilerplate.sh
#
# Call of the script:
# ~/CopyBoilerplate.sh
cloneInSameFolder=false
@jonnitto
jonnitto / .htaccess
Last active November 9, 2017 14:16
Top-level and subdomain based condition
# Force https
RewriteCond %{HTTP_HOST} !\.test$
RewriteCond %{HTTP_HOST} !\.prod$
RewriteCond %{HTTP_HOST} !^stage
RewriteCond %{ENV:HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Force www
RewriteCond %{HTTP_HOST} !\.test$
RewriteCond %{HTTP_HOST} !\.prod$
@jonnitto
jonnitto / Overwrite.fusion
Last active January 14, 2020 08:19
Neos.io: Add a little hint if the shown content is from a different content dimension
prototype(Neos.Neos:Content) {
@process.contentDimensions {
expression = Foo.Bar:ShowContentDimensions
@position = 'end'
}
}
prototype(Neos.Neos:ContentComponent) {
@process.contentDimensions {
expression = Foo.Bar:ShowContentDimensions

Keybase proof

I hereby claim:

  • I am jonnitto on github.
  • I am jonnitto (https://keybase.io/jonnitto) on keybase.
  • I have a public key whose fingerprint is DEB9 7114 5C96 6AF0 09BB 9143 7FBD C5A1 C383 3881

To claim this, I am signing this object: