Skip to content

Instantly share code, notes, and snippets.

View BernardoSilva's full-sized avatar
🏠
Working from home

Bernardo Vieira da Silva BernardoSilva

🏠
Working from home
View GitHub Profile
@BernardoSilva
BernardoSilva / ohmyzsh.md
Created May 21, 2021 11:08 — forked from yovko/ohmyzsh.md
ZSH (using Oh My ZSH) on Manjaro Linux

ZSH (using Oh My ZSH) on Manjaro Linux

0. If ZSH is not already installed on your Manjaro system you can do it with the command:

sudo pacman -Syu zsh

You do not need to install manjaro-zsh-config and all the other related packages like zsh-syntax-highlighting, zsh-history-substring-search, zsh-autosuggestions, etc., as we will use Oh My Zsh.

@BernardoSilva
BernardoSilva / User.php
Created October 3, 2016 22:38 — forked from Ocramius/User.php
Doctrine 2 ManyToMany - the correct way
<?php
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
/**
* @ORM\Entity()
* @ORM\Table(name="user")
*/
class User
@BernardoSilva
BernardoSilva / install_mcrypt.sh
Last active August 29, 2015 14:10 — forked from phillpafford/install_mcrypt.sh
Compile and install mcrypt.so PHP extension for Mac OS X Mountain Lion, Yosemite
#!/usr/bin/sh
# NOTE: To execute this script: bash install_mcrypt.sh
# Pre Reqs, These are important!!!
# Install xCode
# Launch xCode and open Preferences
# Select the Downloads Tab in the Preference Panel
# Under Components install Command Line Tools
#!/bin/bash
# GTK+ and Firefox for Amazon Linux
# Written by Joseph Lawson 2012-06-03
# http://joekiller.com
# http://joekiller.com/2012/06/03/install-firefox-on-amazon-linux-x86_64-compiling-gtk/
# chmod 755 ./gtk-firefox.sh
# sudo ./gtk-firefox.sh