Skip to content

Instantly share code, notes, and snippets.

View Musinux's full-sized avatar

Louis Cherel Musinux

View GitHub Profile
@Musinux
Musinux / Dockerfile
Created January 19, 2021 13:35
Dockerfile for building a java application
FROM maven:3.6.3-openjdk-16-slim
WORKDIR /app
COPY . /app
RUN mvn clean package
# copy the packaged jar file into our docker image
RUN cp target/*-SNAPSHOT.jar /app/app.jar
@Musinux
Musinux / drive-v3-fetch-children.js
Created January 17, 2018 00:00
nodejs drive api v3 fetch children files from folder
const GoogleAuth = require('google-auth-library')
const OAuth2Client = GoogleAuth.OAuth2Client
const google = require('googleapis')
const clientId = '<YOUR_CLIENT_ID>'
const clientSecret = '<YOUR_CLIENT_SECRET>'
const redirectUri = '<Your URI Callback>'
const oauth2Client = new OAuth2Client(clientId, clientSecret, redirectUri)
// your oauth method, see documentation
@Musinux
Musinux / install-packages.sh
Last active March 29, 2021 12:49
VNC xstartup for unity WARNING ! THIS WAS WRITTEN A LONG TIME AGO (2018), IT MAY NOT BE RELEVANT ANYMORE
#!/bin/bash
# WARNING ! THIS WAS WRITTEN A LONG TIME AGO (2018), IT MAY NOT BE RELEVANT ANYMORE
sudo apt-get install vnc4server ubuntu-desktop
sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal
<html>
<head>
<meta charset="utf-8">
<style>
#entree {
width: 100%;
height: 300px;
}
#regex {
<template>
<div class="hello">
<button class="dropdown-printer" v-on:click="showTrucs">click me! </button>
<div ref="dropdown" id="dropdown" v-show="show" :style="styleDropdown()">
<button v-for="item of items" :key="item">{{ item }}</button>
</div>
</div>
</template>
<script>
#include <unistd.h>
#include <execinfo.h>
void print_backtrace () {
void *array[10];
size_t size;
// get void*'s for all entries on the stack
size = backtrace(array, 10);
/** eslint camelcase: 0 */
const accessRightsDefinition = {
exercise: {
view: 'exercise.view',
do: 'exercise.do'
},
session: {
view: 'session.view',
do: 'session.do'
},
/**
*
* entrez la commande suivante:
* npm install --save express body-parser morgan cors
*/
const express = require('express')
const bodyParser = require('body-parser')
const morgan = require('morgan')
const cors = require('cors')
<template>
<v-container>
<v-layout text-center wrap>
<v-form v-model="valid">
<v-container>
<v-row>
<v-col cols="12" md="4">
<v-text-field
v-model="title"
label="Title"
from bs4 import BeautifulSoup
import requests
import regex
def get(url):
mycontent = requests.get(url)
soup = BeautifulSoup(mycontent.text, "html.parser")
return soup
# the links we want to visit