Skip to content

Instantly share code, notes, and snippets.

View Shadow.packages.config
<?xml version="1.0" encoding="utf-8"?>
<packages>
<!-- utils -->
<package id="googlechrome" />
<package id="discord" />
<package id="wincompose" />
<package id="geforce-experience" />
<!-- games -->
<package id="steam" />
<package id="epicgameslauncher" />
View Fake_DBM.toc
## Interface: 80000
## Title: Fake DBM
## Author: chadrien
## Version: 0.1
main.lua
@chadrien
chadrien / webpack.config.babel.js
Last active Apr 5, 2016
Basic webpack configuration for babel
View webpack.config.babel.js
import path from 'path'
let srcDir = 'src'
let distDir = 'dist'
export default {
context: path.join(__dirname, srcDir),
entry: {
app: './index.js'
},
@chadrien
chadrien / README.md
Last active Nov 6, 2015
X application from docker on OS X
View README.md
  • brew install socat
  • brew cask install xquartz
  • Restart
  • socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\" &
  • docker run -e DISPLAY=XXX:0 jess/geary where XXX is the IP from ifconfig vboxnet0
@chadrien
chadrien / README.md
Last active Nov 5, 2022
Debug PHP in Docker with PHPStorm and Xdebug
View README.md

Debug your PHP in Docker with Intellij/PHPStorm and Xdebug

  1. For your local dev, create a Dockerfile that is based on your production image and simply install xdebug into it. Exemple:
FROM php:5

RUN yes | pecl install xdebug \
&amp;&amp; echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" &gt; /usr/local/etc/php/conf.d/xdebug.ini \
View chadrien.zsh-theme
###
### symbols
###
# segments
[ -z "$SEGMENT_SEPARATOR" ] && SEGMENT_SEPARATOR=''
[ -z "$RSEGMENT_SEPARATOR" ] && RSEGMENT_SEPARATOR=''
## git
[ -z "$GIT_CLEAN_SYMBOL" ] && GIT_CLEAN_SYMBOL='%F{black}✔'
@chadrien
chadrien / Makefile
Created Jun 3, 2015
Proxy commands in Makefile (useful for docker for instance)
View Makefile
SUPPORTED_COMMANDS := command1 command2
SUPPORTS_MAKE_ARGS := $(findstring $(firstword $(MAKECMDGOALS)), $(SUPPORTED_COMMANDS))
ifneq "$(SUPPORTS_MAKE_ARGS)" ""
# use the rest as arguments for the command
COMMAND_ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))
# ...and turn them into do-nothing targets
$(eval $(COMMAND_ARGS):;@:)
endif
command1:
@chadrien
chadrien / README.md
Last active Aug 29, 2015
Configure boot2docker for dns-gen
View README.md

Init boot2docker

Create boot2docker instance and start it

$ boot2docker init --dhcp=false --hostip=172.16.0.1
$ boot2docker up

Configure the instance

@chadrien
chadrien / README.md
Created Apr 16, 2015
config.json file for Docker Machine on RunAbove
View README.md

How to use

  • Copy to $HOME/.docker/machine/machines/{{machine_name}}/config.json
  • Set values for the following fields:
    • Username
    • Password
    • TenantName
    • TenantId
    • Region
  • MachineName
@chadrien
chadrien / install.sh
Last active Mar 19, 2019
Install mailcatcher on AlwaysData
View install.sh
#!/bin/bash
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
rbenv install 1.9.3-p551
rbenv global 1.9.3-p551
gem install --no-ri --no-rdoc mailcatcher -v0.5.12
rbenv rehash