Skip to content

Instantly share code, notes, and snippets.

View guiyomh's full-sized avatar
😀

Guillaume Camus guiyomh

😀
View GitHub Profile
@guiyomh
guiyomh / gist:a10281a7190acfde4dc4
Last active September 18, 2015 07:43 — forked from AstonJ/gist:2896818
Install/Upgrade Ruby on CentOS 6.2
#get root access
$su -
$ cd /tmp
#Remove old Ruby
$ yum remove ruby
# Install dependencies
$ yum groupinstall "Development Tools"
$ yum install zlib zlib-devel
@guiyomh
guiyomh / .gitattributes
Last active January 25, 2016 15:26
Sample Git Attributes File
# Encrypt the repository
# Remove/modify this line if the repository is meant to be open-source
*.* filter=git-crypt diff=git-crypt
.gitattributes !filter !diff
# These files are text and should be normalized (Convert crlf => lf)
*.php text
*.phtml text
*.twig text
*.css text
@guiyomh
guiyomh / Builder.php
Created July 24, 2016 21:39 — forked from fsevestre/ README.md
Symfony 2 breadcrumbs based on KnpMenuBundle (KnpMenu 2.1)
<?php
namespace AppBundle\Menu;
use Knp\Menu\FactoryInterface;
class Builder
{
/**
* @var FactoryInterface
@guiyomh
guiyomh / yosemite ntfs read+write.txt
Created September 21, 2017 12:28 — forked from bjorgvino/yosemite ntfs read+write.txt
osxfuse + ntfs-3g + Yosemite = NTFS R/W
Remove osxfuse if installed via homebrew:
> brew uninstall osxfuse
Install osxfuse binary and choose to install the MacFUSE compatibility layer:
http://sourceforge.net/projects/osxfuse/files/latest/download?source=files
Reboot (optional but recommended by osxfuse)
Install ntfs-3g via homebrew:
> brew update && brew install ntfs-3g
@guiyomh
guiyomh / iterm2-solarized.md
Created February 19, 2018 19:36 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k

@guiyomh
guiyomh / docker.md
Created February 20, 2018 13:39 — forked from f3l1x/aliases
Docker - installation, tips, commands, aliases

Docker

Shortcuts

$ curl -fsSL https://raw.github.com/tcnksm/docker-alias/master/zshrc >> ~/.bashrc && source ~/.bashrc
# ------------------------------------
#!/bin/sh
#
# Run the hook command.
# Note: this will be replaced by the real command during copy.
#
CONTAINER="php"
ROOT_DIR="/var/www/app"
GIT_USER=$(git config user.name)
GIT_EMAIL=$(git config user.email)
@guiyomh
guiyomh / README.md
Created October 19, 2018 13:51 — forked from hassansin/README.md
Remote Debugging with XDebug 2.1

XDebug

A PHP extension that allows you to:

  1. walk through your code by Remote Debugging
  2. find bottlenecks in your application by Profiling
  3. find Code Coverage in a single request
  4. trace your application by logging all function calls
@guiyomh
guiyomh / igdump
Created December 3, 2018 10:37 — forked from michelv/igdump
igdump : a command line utility to unserialize and dump igbinary-serialized PHP data
#!/usr/bin/env php
<?php
if (isset($argv[1]) && ($argv[1] == '--help' || $argv[1] == '-h')) {
echo sprintf(
"Usage: \n [igbinary-serialized data] | %s\n",
basename(__FILE__)
);
exit();
}
@guiyomh
guiyomh / addContext.js
Created June 17, 2019 12:52 — forked from NicholasBoll/addContext.js
Cypress mochawesome report. All files go into `cypress` directory
const addContext = (report, screenshots, videoUrl) => {
const getTests = t => t.tests
const getSuites = t => t.suites
const addSuiteContext = (suite, previousTitles = []) => {
const titles = suite.title ? previousTitles.concat(suite.title) : previousTitles
getTests(suite).forEach(test => {
test.timedOut = false // for some reason this is dropped
const context = [
{