Skip to content

Instantly share code, notes, and snippets.

@chadrien
chadrien / Shadow.packages.config
Last active July 18, 2021 17:08
Shadow choco/scoop
<?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" />
@chadrien
chadrien / Fake_DBM.toc
Created November 5, 2018 20:01
Fake_DBM
## Interface: 80000
## Title: Fake DBM
## Author: chadrien
## Version: 0.1
main.lua
@chadrien
chadrien / webpack.config.babel.js
Last active April 5, 2016 12:16
Basic webpack configuration for babel
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 November 6, 2015 11:00
X application from docker on OS X
  • 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 September 1, 2023 12:43
Debug PHP in Docker with PHPStorm and Xdebug

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 \
@chadrien
chadrien / chadrien.zsh-theme
Last active September 2, 2015 08:28
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 June 3, 2015 12:21
Proxy commands in Makefile (useful for docker for instance)
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 August 29, 2015 14:21
Configure boot2docker for dns-gen

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 April 16, 2015 15:55
config.json file for Docker Machine on RunAbove

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 March 19, 2019 00:50
Install mailcatcher on AlwaysData
#!/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