Skip to content

Instantly share code, notes, and snippets.

View pawndev's full-sized avatar
:octocat:
Trying to quit vim

Coquelet Christophe pawndev

:octocat:
Trying to quit vim
View GitHub Profile
@pawndev
pawndev / keybase.md
Created July 2, 2018 13:40
keybase verification

Keybase proof

I hereby claim:

  • I am pawndev on github.
  • I am pawndev (https://keybase.io/pawndev) on keybase.
  • I have a public key ASBSOJ7OhHYIJtxJeAUQeXPo4EQUFyInM44mxxDjl6D4RAo

To claim this, I am signing this object:

@pawndev
pawndev / cli.sh
Created July 23, 2018 11:53
bash cli argument example
#!/bin/bash
params="$(getopt -o hviuc: -l help,version,install,update,clean: --name "$0" -- "$@")"
eval set -- "$params"
. ./lib/echos.sh
usage() {
shrug "Dotfiles Installer"
echo "Usage:"
echo " --help -h -? Display this help message."
@pawndev
pawndev / lock
Created September 3, 2018 18:20
#!/bin/bash
scrot /tmp/screenshot.png
convert /tmp/screenshot.png -blur 0x3 /tmp/screenshotblur.png
i3lock -i /tmp/screenshotblur.png
@pawndev
pawndev / prepare-commit-msg
Last active July 19, 2019 11:55
pre-commit-msg
#!/bin/sh
BRANCH_NAME=$(git branch 2>/dev/null | grep -e ^* | tr -d ' *')
if [ -n "$BRANCH_NAME" ] && [ "$BRANCH_NAME" != "master" ] && [ "$BRANCH_NAME" != "(nobranch)" ]; then
echo "$BRANCH_NAME | $(cat $1)" > $1
fi
@pawndev
pawndev / france_departments.json
Last active January 21, 2019 08:00
Just a JSON that contains bounding box geocode for all france department
{
"franceDepartments": {
"01": {
"name": "Ain",
"bounds": {
"n": "46.519953",
"e": "6.170198",
"s": "45.611093",
"w": "4.728067"
}
[
{
"assessment":"DEGRADED",
"average":3.4791736666666666,
"healthcheck":{
"name":"Integration (WEB)",
"endpoint":"https://integration.ouicar.fr",
"count":3,
"timeout":10,
"threshold":2
@pawndev
pawndev / index.d.ts
Created February 8, 2019 10:31 — forked from mathieutu/index.d.ts
PackageJson Typescript definitions.
export interface PackageJSON extends Object {
name: string
version?: string
description?: string
keywords?: string[]
homepage?: string
bugs?: string | Bugs
license?: string
author?: string | Author
contributors?: string[] | Author[]
version: '2'
services:
nginx:
extends:
file: docker-compose.common.yml
service: nginx
links:
- node
HTTP/1.1 201 Created
Date: Wed, 13 Mar 2019 16:18:19 GMT
Server: Apache/2.4.27 (Ubuntu)
X-Subject-Token: gAAAAABciS1LloI-ICXgfcRAeQFTX4IEONMM-FhpoBFRjky7239EjZaqLKOQe2ypOFohKngSqTKo7e7xfu7PGggFdnhvxGKKgAyIQnY90Qmn4xny
Vary: X-Auth-Token
Content-Type: application/json
Content-Length: 312
x-openstack-request-id: req-2c026c53-bd6c-4d5c-9826-08c49a44a3d5
Connection: close
@pawndev
pawndev / README.md
Last active July 10, 2023 12:09
Apache Nifi docker-compose local test

docker compose nifi

To launch this project, simply use the docker-compose cli

docker-compose up

Wait a couple of seconds, then execute the next command :