Skip to content

Instantly share code, notes, and snippets.

View Justkant's full-sized avatar
🖥️
Hacking

Quentin Jaccarino Justkant

🖥️
Hacking
View GitHub Profile
@Justkant
Justkant / .zshrc
Last active October 2, 2019 10:00
zgen zshrc
# zgen installation
# git clone https://github.com/tarjoilija/zgen.git "${HOME}/.zgen"
# load zgen
source "${HOME}/.zgen/zgen.zsh"
# add android sdk tools & others for osx
export PATH="$PATH:/usr/local/sbin:${HOME}/Library/Android/sdk/platform-tools"
# enable error redirect from react-native app
@Justkant
Justkant / docker time sync
Created April 20, 2017 13:11
Fix docker time sync after sleep on macOS
brew install sleepwatcher
brew services start sleepwatcher
echo /usr/local/bin/docker run --rm --privileged alpine hwclock -s > ~/.wakeup
chmod +x ~/.wakeup
@Justkant
Justkant / App.jsx
Last active November 7, 2018 22:41
redux like concept with react 16 context and react 16.7 beta hooks (https://codesandbox.io/s/jvklvmp8l9)
import React from "react";
import Provider from "./Provider";
import Counter from "./Counter";
const App = ({ reducer, initialState }) => {
return (
<Provider reducer={reducer} initialState={initialState}>
<Counter />
</Provider>
);
@Justkant
Justkant / keybindings.json
Last active October 2, 2019 09:57
VS Code Settings
// Placez vos combinaisons de touches dans ce fichier pour remplacer les valeurs par défaut
[
{
"key": "ctrl+alt+f",
"command": "eslint.executeAutofix",
"when": "editorTextFocus && !editorReadonly"
}
]
@Justkant
Justkant / i18next-scanner.config.js
Created August 16, 2019 11:37
Scan + merge except for defaultLng, with support for removeUnusedKeys option
/* eslint-disable import/no-extraneous-dependencies */
const _ = require('lodash');
const fs = require('fs');
const eol = require('eol');
const path = require('path');
const VirtualFile = require('vinyl');
const flattenObjectKeys = require('i18next-scanner/lib/flatten-object-keys')
.default;
const omitEmptyObject = require('i18next-scanner/lib/omit-empty-object')
.default;