Skip to content

Instantly share code, notes, and snippets.

View Lobbyra's full-sized avatar

Jérémy Caudal Lobbyra

View GitHub Profile
@Lobbyra
Lobbyra / .vimrc
Last active September 13, 2020 19:59
my vim config
set number
syntax on
set mouse=a
set tabstop=4
set shiftwidth=4
set autoindent
@Lobbyra
Lobbyra / .zshrc
Created September 13, 2020 20:03
my zsh config with oh my zsh
# Path to your oh-my-zsh installation.
export ZSH="/Users/jecaudal/.oh-my-zsh"
ZSH_THEME="sunrise"
# Which plugins would you like to load?
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
@Lobbyra
Lobbyra / c.json
Last active September 17, 2020 11:36
VS Code C snippets
{
"main snippet": {
"prefix": "main",
"body": [
"int\t\tmain(int argc, char **argv)",
"{",
"\t${1://code}",
"\treturn (0);",
"}"
]

TITRE

[MAGNIFIQUE BANIERE en 750x256px]


Compétences abordées 📚

  • Liste
  • de
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
#
# This config file uses keycodes (bindsym) and was written for the QWERTY
# layout.
#
# To get a config file with the same key positions, but for your current
# layout, use the i3-config-wizard
#
@heading-color: #ff45ae;
@sub-heading-color: #66f38a;
@color: #9f9f9fb3;
.vc-container {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
height: 100vh;
@Lobbyra
Lobbyra / testGenerateCode.ts
Created December 16, 2021 08:04
sample code to test generateCode, part of auth_nest_template
function generateCode(): number {
var draw: number = Math.random();
draw *= Math.pow(10, 6);
while (draw < 100000) {
draw *= 10;
}
return (Math.round(draw));
}
var test: number;
@Lobbyra
Lobbyra / config.yml
Created February 22, 2022 14:49
[ETELCODE] Working, first version of the POC of ci cd pipeline
# This config is equivalent to both the '.circleci/extended/orb-free.yml' and the base '.circleci/config.yml'
version: 2.1
# Orbs are reusable packages of CircleCI configuration that you may share across projects, enabling you to create encapsulated, parameterized commands, jobs, and executors that can be used across multiple projects.
# See: https://circleci.com/docs/2.0/orb-intro/
orbs:
node: circleci/node@5.0.0
jobs:
main:
docker:
@Lobbyra
Lobbyra / script.js
Created February 26, 2022 17:25
App Script (google) code for connect circleci with telegram channel
var token = "YOUR TELEGRAM API CODE";
var telegramUrl = "https://api.telegram.org/bot" + token;
var webAppUrl = "THE URL OF THE APP SCRIPT INSTANCE"
function setWebhook() {
var url = telegramUrl + "/setWebhook?url=" + webAppUrl;
var response = UrlFetchApp.fetch(url);
}
function sendMessage(chat_id, text) {
@Lobbyra
Lobbyra / gist:613b4551f05a6010b12765961ba64a9a
Created March 15, 2022 15:51
proxy reverse nginx model
server {
listen 80;
server_name example.com;
location / {
proxy_pass https://xxxx/;
}
}