Skip to content

Instantly share code, notes, and snippets.

View ezy's full-sized avatar

Ezy ezy

  • Earth
View GitHub Profile
@ezy
ezy / docker-compose.yml
Created November 20, 2022 02:29
media setup
version: "2.1"
services:
jellyfin:
image: linuxserver/jellyfin
container_name: jellyfin
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
@ezy
ezy / swapToken.ts
Created August 6, 2021 00:07
Solana token transaction dummy run template
export async function createInteractionInstruction(
connection: Connection
): Promise<string> {
console.log('Creating swap token a account');
const owner = await newAccountWithLamports(connection, 1000000000);
const payer = await newAccountWithLamports(connection, 1000000000);
const SWAP_AMOUNT_IN = 100000;
const POOL_TOKEN_AMOUNT = 10000000;
let currentSwapTokenA = 1000000;
let currentSwapTokenB = 1000000;
@ezy
ezy / code.sh
Created May 23, 2021 21:52
VSCode Javascript list
code --install-extension christian-kohler.npm-intellisense
code --install-extension DavidAnson.vscode-markdownlint
code --install-extension dbaeumer.vscode-eslint
code --install-extension dsznajder.es7-react-js-snippets
code --install-extension eamodio.gitlens
code --install-extension eg2.vscode-npm-script
code --install-extension equinusocio.vsc-material-theme-icons
code --install-extension esbenp.prettier-vscode
code --install-extension hashicorp.terraform
code --install-extension infarkt.css-to-jss
@ezy
ezy / docker-compose.yml
Last active January 4, 2021 23:58
Docker compose for home server
version: "2"
services:
jellyfin:
image: linuxserver/jellyfin
container_name: jellyfin
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
@ezy
ezy / aws.xml
Created June 15, 2020 06:14
AWS CORS config for all http methods
<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<AllowedMethod>PUT</AllowedMethod>
<AllowedMethod>POST</AllowedMethod>
<MaxAgeSeconds>3000</MaxAgeSeconds>
<AllowedHeader>*</AllowedHeader>
</CORSRule>
@ezy
ezy / installation.md
Created April 19, 2020 20:52 — forked from paneru-rajan/installation.md
[Installing different packges in Ubuntu 18.04] Everything I Installed in Ubuntu 18.04 #ubuntu18.04 #ubuntu #installation #docker-compose #nodejs #npm #docker #elastic-search

List of Different application installation method

  1. Docker Link

    curl -fsSL https://get.docker.com -o get-docker.sh
    sudo sh get-docker.sh
    sudo groupadd docker
    sudo usermod -aG docker $USER
    
@ezy
ezy / twitter_reset.md
Created April 5, 2020 05:36 — forked from gmolveau/twitter_reset.md
Twitter reset scripts

Twitter Reset

Ces scripts permettent de vider le flux d'activité d'un compte twitter : RT, likes, tweets.

Those scripts will flush your twitter activity feed : likes, RT, tweets...

Ces scripts ne fonctionnent que pour twitter en langue anglaise. (https://twitter.com/settings/language)

Those scripts only work for twitter in english.

@ezy
ezy / setup.sh
Last active March 30, 2020 13:22
[Create react app with typescipt and npm] #eslint #prettier #npm #bash
#!/bin/bash
npx create-react-app formatting-project --template typescript --use-npm
npm i -D --save-exact eslint eslint-config-airbnb eslint-config-airbnb-typescript eslint-config-prettier eslint-config-react-app eslint-import-resolver-typescript eslint-loader eslint-plugin-flowtype eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks babel-eslint @typescript-eslint/parser @typescript-eslint/eslint-plugin
npm i -D --save-exact prettier prettier-eslint prettier-eslint-cli eslint-plugin-prettier
> ".eslintrc"
echo '// .eslintrc
{
"plugins": ["prettier", "@typescript-eslint"],
"extends": ["airbnb-typescript", "react-app", "prettier"],
@ezy
ezy / lint.sh
Created March 30, 2020 03:48 — forked from atkinsio/lint.sh
[Install ESLint & Prettier] #eslint #prettier #npm #bash
#!/bin/bash
npm install -D eslint prettier
npm install -D eslint-config-airbnb eslint-plugin-jsx-a11y eslint-plugin-import eslint-plugin-react babel-eslint
npm install -D eslint-config-prettier eslint-plugin-prettier
> ".eslintrc.js"
echo 'module.exports = {
@ezy
ezy / show-all-commits.sh
Created February 26, 2020 20:10
Show all commits from the previous day
git log --pretty=format:"%ad:%an:%d:%B" --date=short --reverse --all --since=1.day.ago --author=Ezy