This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# I recommend you first install ubuntu-unity-desktop, do not clean off apt cache, then sudo apt autoremove --purge "gnome*" | |
# then install again ubuntu-unity-desktop without rebooting once and with a network connection. This gets rid of Gnome | |
# entirely except for what unity needs to function | |
# Run this if the background image on the login greeter for your user doesn't change as you change desktop backgrounds | |
gsettings org.gnome.settings-daemon.plugins.background active true | |
# This will install a patched version of nemo without cinnamon deps, then make it the default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### | |
# Copyright (C) 2018 Luis Pabon | |
# | |
# This software may be modified and distributed under the terms | |
# of the MIT license. See the LICENSE file for details. | |
### | |
# This script will try to run first phpunit installed in your project (assumes standard vendor bin location, modify if otherwise) | |
# then fall back to a phar installed version. | |
# Usage: create and chmod +x an empty file somewhere in your path (eg ~/bin/phpunit) then tweak PHPUNIT_PHAR below for your system. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# NOTE: decided to actually make a more reusable version with README and all, to be found at | |
# this repo: https://github.com/luispabon/borg-s3-home-backup | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace AppBundle\Entity; | |
/** | |
* Interface that identifies entities which have fields that can contain base64 encoded images | |
* | |
* @package AppBundle\Entity | |
*/ | |
interface Base64EncodedImagesInterface | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Generate timestamped filename | |
TIMESTAMPED_TAG=`date +%Y-%m-%d-%H%M%S` | |
BACKUP_ARCHIVE="./jenkins-backup-${TIMESTAMPED_TAG}.tar.gz" | |
# Inconceivable race condition avoidance | |
if [-f $BACKUP_ARCHIVE ]; then | |
rm ${BACKUP_ARCHIVE} | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Basic reverse proxy, no SSL (useful in Kodi) | |
# You need to install modules proxy, proxy_http, ssl | |
<VirtualHost *:80> | |
ServerName your.address | |
ProxyPreserveHost Off | |
ProxyRequests Off | |
ProxyTimeout 60 | |
SSLProxyEngine on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# The following runs latest node container providing with a writable .npm folder for npm cache, node_modules will be owned by the running user | |
# usage: run-docker-npm npm install | |
mkdir -p .npm | |
touch .babel.json | |
docker run \ | |
-u $(id -u):$(id -g) \ | |
-v "`pwd`:/workdir" \ | |
-v "`pwd`/.npm:/.npm" \ | |
-v "`pwd`/.babel.json:/.babel.json" \ |
NewerOlder