Skip to content

Instantly share code, notes, and snippets.

View lucasscariot's full-sized avatar
🏗️

Lucas lucasscariot

🏗️
  • Paris, France
  • 05:54 (UTC +01:00)
View GitHub Profile
if ! command -v brew $> /dev/null ; then
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
else
echo "Brew already installed."
fi
function brewInstall() {
if command -v $1 $> /dev/null ; then
echo "$1 Already installed."
return 1
@lucasscariot
lucasscariot / index.js
Created February 4, 2018 10:12
Mongoose index models connections like Sequelize Raw
const fs = require('fs')
const path = require('path')
const mongoose = require('mongoose')
const basename = path.basename(module.filename)
const db = {}
mongoose.connect(process.env.MONGODB_URI)
fs
#logging
logoutput: /var/log/sockd.log
#debug: 1
#server address specification
internal: 192.0.2.1 port = 1080
external: eth1
#server identities (not needed on solaris)
#user.privileged: root
[{
"username": "mewtwo23",
"message": "ouais et toi ?",
"avatarUrl": "https://cdn.joinbits.video/916e9b69-449c-4d86-b3e3-8314ff388a5e.png",
"createdAt": "2021-11-22 17:59:15.15228"
},
{
"username": "lucky_collect",
"message": "hello mewtwo23, ça va ?",
"avatarUrl": "https://cdn.joinbits.video/38564f1a-46f9-457e-98c2-474c30817f5b.png",

Keybase proof

I hereby claim:

  • I am lucasscariot on github.
  • I am lucas_scrt (https://keybase.io/lucas_scrt) on keybase.
  • I have a public key whose fingerprint is 3529 A7ED 29BA BCA1 233A 57DE D028 6828 B61E BD55

To claim this, I am signing this object: