This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export ZSH="$HOME/.oh-my-zsh" | |
HISTFILE=~/.histfile | |
HISTSIZE=1000 | |
SAVEHIST=1000 | |
setopt autocd nomatch | |
unsetopt beep extendedglob notify | |
autoload -Uz compinit | |
compinit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set scrolloff=5 | |
set surround | |
set multiple-cursors | |
set argtextobj | |
set easymotion | |
set textobj-entire | |
set ReplaceWithRegister | |
set exchange | |
set clipboard+=unnamed | |
set visualbell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', |
NewerOlder