Skip to content

Instantly share code, notes, and snippets.

View leo91000's full-sized avatar

Léo Coletta leo91000

  • Groupama
  • France
View GitHub Profile
@leo91000
leo91000 / .zshrc
Last active May 27, 2024 11:47
.zshrc
export ZSH="$HOME/.oh-my-zsh"
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
setopt autocd nomatch
unsetopt beep extendedglob notify
autoload -Uz compinit
compinit
@leo91000
leo91000 / .ideavimrc
Created March 31, 2024 06:07
My Ideavim Rc for jetbrain
set scrolloff=5
set surround
set multiple-cursors
set argtextobj
set easymotion
set textobj-entire
set ReplaceWithRegister
set exchange
set clipboard+=unnamed
set visualbell
@leo91000
leo91000 / profile.ps1
Created March 17, 2024 17:20
Powershell Profile
function Invoke-Starship-PreCommand {
$loc = $executionContext.SessionState.Path.CurrentLocation;
$prompt = "$([char]27)]9;12$([char]7)"
if ($loc.Provider.Name -eq "FileSystem")
{
$prompt += "$([char]27)]9;9;`"$($loc.ProviderPath)`"$([char]27)\"
}
$host.ui.Write($prompt)
}
@leo91000
leo91000 / configuration.nix
Created January 22, 2024 10:12
Nix Configuration
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
let
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/release-23.11.tar.gz";
astronvimSrc = builtins.fetchGit "https://github.com/AstroNvim/AstroNvim";
userConfigSrc = builtins.fetchGit "https://github.com/leo91000/astronvim_config";
[21:04:36] [Server thread/FATAL] [minecraft/MinecraftServer]: Error executing task
java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Cannot accept empty stack
at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_242]
at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_242]
at net.minecraft.util.Util.func_181617_a(SourceFile:47) [h.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:723) [MinecraftServer.class:?] at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:397) [nz.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526) [MinecraftServer.class:?]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_242]
Caused by: java.lang.IllegalArgumentException: Cannot accept empty stack
[12:00:27] [Server thread/INFO] [packcrashinfo]: No manfiest present, attempting to load the minecraftinstance.json file.
[12:00:27] [Server thread/ERROR] [packcrashinfo]: No manifest or minecraftinstance.json present
[12:00:27] [Server thread/FATAL] [FML]: ---- Minecraft Crash Report ----
WARNING: coremods are present:
Quark Plugin (Quark-r1.5-168.jar)
BedPatch (bedpatch-2.2-1.12.2.jar)
Do not report to Forge! (If you haven't disabled the FoamFix coremod, try disabling it in the config! Note that this bit of text will still appear.) (foamfix-0.10.5-1.12.2.jar)
AppleCore (AppleCore-mc1.12.2-3.2.0.jar)
OpenModsCorePlugin (OpenModsLib-1.12.2-0.12.2.jar)
@leo91000
leo91000 / index.js
Last active November 24, 2018 17:45
Project stylus isn't working
const express = require('express')
const consola = require('consola')
const apiConfig = require('./config')
const mongoose = require('mongoose')
const bodyParser = require('body-parser')
const passport = require('passport')
const LocalStrategy = require('passport-local').Strategy
const { Nuxt, Builder } = require('nuxt')
// Controller
import Vuex from 'vuex'
import api from '~/api'
import {setAuthToken, resetAuthToken} from '~/utils/auth'
import cookies from 'js-cookie'
import cparse from 'cookie'
const createStore = () => {
return new Vuex.Store({
state: {
snackbar: {
api.get('/', authenticate, async function (req, res) {
let adminState = await isAdmin(req.user.id)
if (adminState) {
console.log("test 0")
let query = User.find({}).sort('username', 1).skip(req.query.skip || 0).limit(req.query.limit || 20)
console.log("test 1")
try {
var users = await query.exec()
} catch (err) {
res.status(500).json({ error: "Erreur lors de la récupération des données"})
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# Mailer Configuration
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
address: 'smtp.gmail.com',
port: 587,
domain: 'gmail.com',
user_name: 'someemail@gmail.com',