Skip to content

Instantly share code, notes, and snippets.

View lexoyo's full-sized avatar
🥰
working full time on silex.me (foss)

Alex Hoyau lexoyo

🥰
working full time on silex.me (foss)
View GitHub Profile
@lexoyo
lexoyo / install-caprover.sh
Created June 23, 2023 07:23 — forked from hivivo/install-caprover.sh
Install CapRover on a brand new Ubuntu 22.04 standard server
#!/bin/bash
# Ubuntu 22.04
# Please also allow `80, 443, 3000` ports in the VM network rules if apply
# run as sudo
if [ "$EUID" -ne 0 ]
then echo "Please run as root or use sudo"
exit
fi
@lexoyo
lexoyo / dabblet.css
Created August 14, 2016 18:50 — forked from anonymous/dabblet.css
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@lexoyo
lexoyo / align-widget.js
Last active March 26, 2016 13:47 — forked from anonymous/align-widget.js
align widget for silex
silex.model.Widget.register(function(model, view, controller) {
return {
title: 'Align tool',
description: 'This widget displays buttons to align selected elements.',
selection: [],
@lexoyo
lexoyo / tmux.conf
Last active December 12, 2015 16:16 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
set-option -g prefix C-a
unbind-key C-b
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
@lexoyo
lexoyo / index.js
Last active October 9, 2015 12:46 — forked from MikeFielden/index.js
Enum-like structure in es2015
const Shape = {
Triangle: new Symbol()
};
// Demo func
function getArea(shape, options) {
var area = 0;
switch (shape) {
case Shape.Triangle:
<?php
/**
* Recurses each directory and runs PHP's lint function against each file
* to test for parse errors.
*
* @param string $dir the directory you would like to start from
* @return array the files that did not pass the test
*/
function lint( $dir = 'C:\dev\\' )