Skip to content

Instantly share code, notes, and snippets.

@BenjaminRqt
BenjaminRqt / curl.md
Created July 18, 2023 14:07 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@BenjaminRqt
BenjaminRqt / KongClient.php
Last active January 23, 2021 23:55
Auth0-Kong
<?php
declare(strict_types=1);
namespace Infrastructure\ApiGateway\Kong;
use Domain\Assert;
use Ramsey\Uuid\Uuid;
use Ramsey\Uuid\UuidInterface;
use Symfony\Component\HttpFoundation\Response;
<template>
<button class="button" @click="logInWithFacebook"> Login with Facebook</button>
</template>
<script>
export default {
setup() {
const logInWithFacebook = async () => {
await loadFacebookSDK(document, "script", "facebook-jssdk")
initFacebook().then(r => {

Créer un gitignore global

Linux

    git config --global core.excludesfile ~/.gitignore_global

La configuration a été ajouté dans le ~/.gitconfig

 [core]
@BenjaminRqt
BenjaminRqt / Makefile-help.md
Last active January 9, 2020 14:30
Afficher l'aide sur un Makefile

Créer une commande "make help" pour afficher les commentaires d'une commande

.PHONY: help
help: ## This help
	@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(TARGETS) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m%s\n", $$1, $$2}'
@BenjaminRqt
BenjaminRqt / .gitconfig
Created October 4, 2019 08:35 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
username = pksunkara
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls