Skip to content

Instantly share code, notes, and snippets.

Avatar

Pascal Baljet pascalbaljet

View GitHub Profile
View Fluent.vue
<script>
import Vue from "vue";
export default {
props: ["default"],
data() {
return {
attributes: {},
};
@pascalbaljet
pascalbaljet / imagick-3.4.0-PHP7-forge.sh
Last active Nov 26, 2020
Install Imagick 3.4.0 on PHP 7.0 server (Laravel Forge)
View imagick-3.4.0-PHP7-forge.sh
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
apt-get install pkg-config libmagickwand-dev -y
cd /tmp
wget https://pecl.php.net/get/imagick-3.4.0.tgz
tar xvzf imagick-3.4.0.tgz
View code.sh
openvalet() {
DIR=$(basename "$PWD")
open "http://$DIR.test"
}
vscode() {
if [ -z "$1" ]
then
code -n .
else
@pascalbaljet
pascalbaljet / blackfire-debian-ubuntu.sh
Last active Dec 17, 2016
Install Blackfire on Debian/Ubuntu
View blackfire-debian-ubuntu.sh
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
# Register the packagecloud key
wget -O - https://packagecloud.io/gpg.key | sudo apt-key add -
# Add deb http://packages.blackfire.io/debian any main to /etc/apt/sources.list.d/blackfire.list