Skip to content

Instantly share code, notes, and snippets.

View bricewge's full-sized avatar

Brice Waegeneire bricewge

View GitHub Profile
@bricewge
bricewge / el-get_fix-typos
Created October 23, 2013 15:31
When installing navi-mode without "" in :pkgname. emacs --debug-init
Debugger entered--Lisp error: (wrong-type-argument stringp tj64/outshine)
string-match("/" tj64/outshine 0)
split-string(tj64/outshine "/" omit-nulls)
el-get-github-parse-user-and-repo(outshine)
el-get-github-url(outshine)
el-get-github-clone(outshine nil el-get-post-install)
funcall(el-get-github-clone outshine nil el-get-post-install)
(let* ((status (el-get-read-package-status package)) (source (el-get-package-def package)) (method (el-get-package-method source)) (install (el-get-method method :install)) (url (plist-get source :url)) (pdir (el-get-package-directory package))) (el-get-error-unless-required-emacs-version source) (cond ((string= "installed" status) (error "Package %s is already installed." package)) ((string= "required" status) (message "Package %s previously failed to install, removing it first." package) (el-get-remove package)) ((file-exists-p pdir) (message "Package %s has an install dir but is not known to be installed. Removing it so we can install a known version." package
@bricewge
bricewge / magit-vcsh.el
Last active August 29, 2015 14:02
magit/magit #460
(defun yingyang-link (gitdir worktree)
(interactive (list (read-directory-name "Gitdir: ")
(read-directory-name "Worktree: ")))
(with-temp-file (expand-file-name ".git" worktree)
(insert "gitdir: " (file-relative-name gitdir worktree) "\n"))
(magit-call-git "config" "-f" (expand-file-name "config" gitdir)
"core.worktree" (file-relative-name worktree gitdir)))
(defun yingyang-unlink (gitdir worktree)
(interactive (list (read-directory-name "Gitdir: ")
@bricewge
bricewge / PKGBUILD
Last active August 29, 2015 14:17
isso PKGBUILD
# Maintainer: Reventlov <[email protected]>
# Contributor: Brice Waegeneire <brice dot wge at gmail dot com>
pkgname=isso
pkgver=0.9.9
pkgrel=2
pkgdesc="A commenting python server similar to disqus"
arch=('any')
url="http://posativ.org/isso/"
license=('MIT')
depends=('python-werkzeug' 'python-html5lib' 'python-misaka' 'python-itsdangerous' 'python-six' 'sqlite' 'python-setuptools')
@bricewge
bricewge / ipython notebook log
Created May 5, 2015 08:32
ipython 3.1.0-1 archlinux bug
~ ipython notebook
Traceback (most recent call last):
File "/bin/ipython", line 5, in <module>
start_ipython()
File "/usr/lib/python3.4/site-packages/IPython/__init__.py", line 120, in start_ipython
return launch_new_instance(argv=argv, **kwargs)
File "/usr/lib/python3.4/site-packages/IPython/config/application.py", line 573, in launch_instance
app.initialize(argv)
File "<string>", line 2, in initialize
File "/usr/lib/python3.4/site-packages/IPython/config/application.py", line 75, in catch_config_error
@bricewge
bricewge / PKGBUILD
Created December 7, 2015 20:59
qemu-user-static 2.4-3
# Maintainer: Sergio Tridente <tioduke at gmail dot com >
# Contributor: Steven Noonan <[email protected]>
pkgname=qemu-user-static
pkgver=2.4
pkgrel=3
pkgdesc="A generic and open source processor emulator which achieves a good emulation speed by using dynamic translation, statically linked."
arch=('i686' 'x86_64')
license=('GPL2' 'LGPL2.1')
url="http://wiki.qemu.org/Index.html"
@bricewge
bricewge / PKGBUILD
Created January 9, 2016 18:01
AUR platformio-git
# Maintainer: Will Price <[email protected]>
# Contributor: Brice Waegeneire <bricewge at gmail dot com>
pkgname=platformio-git
_pkgname=platformio
pkgver=v2.1.1.r554.g3d0aad6
pkgrel=1
pkgdesc="A cross-platform code builder and library manager"
arch=('x86_64' 'i686')
url="http://platformio.com/"
@bricewge
bricewge / Slic3r_config_bundle.ini
Created October 15, 2016 07:24
Slic3r_config_bundle.ini
# generated by Slic3r 1.2.9 on Sat Oct 15 09:22:30 2016
[filament:PETG]
bed_temperature = 50
bridge_fan_speed = 100
cooling = 0
disable_fan_first_layers = 3
extrusion_multiplier = 1
fan_always_on = 0
fan_below_layer_time = 60
@bricewge
bricewge / 11.fillit
Created January 17, 2017 14:33
fillit tests
..#.
..#.
..#.
..#.
....
.##.
.#..
.#..
@bricewge
bricewge / ft_ls-test.sh
Last active January 10, 2019 19:32
ft_ls test
diff -u <(LC_ALL=C ls -lR /usr/bin) <(LC_ALL=C ./ft_ls -lR /usr/bin)
touch -t 999912312459 future ls -lt
ls -l ~/ ''
ls - auteur
ls ////dev///urandom
ls -j ./
ls -- -j ./
ls INVALID Makefile TROLOLOL
ls -aR /Library/Scripts/42/munki
ls -lt /dev
@bricewge
bricewge / corec_d04.sh
Created June 26, 2017 12:08
piscine_php
#!/usr/bin/env sh
export PS4='\e[37m❯ \e[0m'
host=`hostname`
port="8080"
echo "\n==== ex00 ====\n"
set -o xtrace
curl -v -c cook.txt "http://$host:$port/j04/ex00/index.php"
curl -v -b cook.txt "http://$host:$port/j04/ex00/index.php?login=sb&passwd=beeone&submit=OK"