Skip to content

Instantly share code, notes, and snippets.

View JesusTheHun's full-sized avatar

Jonathan MASSUCHETTI JesusTheHun

  • Paris
View GitHub Profile
@JesusTheHun
JesusTheHun / Dockerfile.client - npm
Last active September 27, 2021 13:56
React, node, mysql docker compose setup
FROM node:12.15.0-alpine as build
WORKDIR /app
ENV PATH /app/node_modules/.bin:$PATH
RUN apk --no-cache upgrade && apk --no-cache add alpine-sdk python2 libtool autoconf automake git
COPY . ./
RUN npm ci
ENV NODE_ENV production
const {
BaseTransaction,
TransactionError,
utils,
} = require('@liskhq/lisk-transactions');
const _ = require('lodash');
/**
* type asset {
@EnableWebSecurity
@EnableGlobalMethodSecurity(prePostEnabled = true, securedEnabled = true)
@Import(SecurityProblemSupport.class)
public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
@Value("${spring.security.oauth2.client.provider.oidc.issuer-uri}")
private String issuerUri;
private final JwtAuthorityExtractor jwtAuthorityExtractor;
private final SecurityProblemSupport problemSupport;
@JesusTheHun
JesusTheHun / App.js
Created May 22, 2018 10:36
linear gradient dynamic start & end values
import React from 'react';
import {StyleSheet, Text, View, ScrollView, SafeAreaView} from 'react-native';
import {LinearGradient} from "expo";
export default class App extends React.Component {
constructor(props) {
super(props);
this.state = {
<?php
use Monolog\Handler\StreamHandler;
use Monolog\Logger;
require 'vendor/autoload.php';
class MyThread extends Thread
{
public function run()
#!/bin/bash
# PHP 7.0.2
# Pthreads 3.1.5
curl -LsS https://symfony.com/installer -o ./symfony
chmod a+x ./symfony
./symfony new segfault_proof 2.8.2
cd segfault_proof/
mkdir src/AppBundle/Command
<?php
$list = "
Afghanistan
Albania
Algeria
Andorra
Angola
Antigua and Barbuda
Argentina
Armenia