Skip to content

Instantly share code, notes, and snippets.

View noweh's full-sized avatar
:octocat:
Follow me on Twitter @Noweh95

Julien SCHMITT noweh

:octocat:
Follow me on Twitter @Noweh95
View GitHub Profile
@AntoineLemaire
AntoineLemaire / public_linux_mint_21.2_install.sh
Created September 1, 2023 19:44
My Linux Mint install script with all I need
#!/bin/bash
NODE_VERSION=12.13.1
GITHUB_EMAIL=
GITHUB_USERNAME=
NGROK_AUTH_TOKEN=
mkdir -p ~/Install
cd ~/Install
@Rapkalin
Rapkalin / previewSql.php
Last active August 6, 2023 19:15
Preview SQL query with Laravel
<?php
Function previewSql()
{
$users = User::where(‘id’, 0);
$users->union(User::where(‘id’, 1));
$users->union(User::where(‘id’, 2));
$users->union(User::where(‘id’, 3));
// Preview sql statement using getBindings() and toSql() builder methods
@DragonBe
DragonBe / azure-ad-connect.php
Last active May 26, 2024 21:06
A simple PoC to access Azure AD for authentication
<?php
declare(strict_types=1);
use League\OAuth2\Client\Provider\GenericProvider;
use Microsoft\Graph\Graph;
use Microsoft\Graph\Model;
const APP_SESS_ID = 'AZPHPSID';
const OAUTH_APP_ID = '';
@cjzopen
cjzopen / Organization json-ld
Last active March 29, 2023 17:03
Organization json-ld example
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [{
"@type": "Organization",
"@id": "https://www.example.com/#organization",
"name": "{{ your name }}",
"url": "https://www.example.com/",
"address": "{{ address }}",
"email": "{{ email }}",
@tmpvar
tmpvar / my-first-module.md
Last active December 20, 2021 18:48
how to create your very first node.js module and publish it to the npm registry

building your first node module

This is pretty simple, lets dive in!

choose a name

Find a name that isn't taken and clearly describes what your module is doing

$ npm view your-first-node-module