Skip to content

Instantly share code, notes, and snippets.

View ezy's full-sized avatar

Ezy ezy

  • Earth
View GitHub Profile
@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 / 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 / docker-compose.yml
Last active September 27, 2019 04:07 — forked from shinhyo/docker-compose.yml
docker-compse plex, transmission
version: "2"
services:
plex:
image: linuxserver/plex:latest
network_mode: host
volumes:
- ./plex_config:/config
- ./plex_transcode:/transcode
- /media/wdusb/movies:/movies
@ezy
ezy / deletealltwitter.js
Last active December 17, 2019 00:31 — forked from Eskuero/deletealltwitter.js
Updated version of the tweet deleter and retweet undoer for the 2019 version of Twitter.
var deleteall = async function() {
// The position of the "Delete" menuitem is +1 on search pages
position = 0 + document.location.toString().includes("search?q=")
console.log("Undoing Retweets")
// Keep iterating until there's no retweet to do
while (retweet = document.querySelector('[data-testid="unretweet"]')) {
console.log(retweet)
retweet.click();
// Sleep a bit to make sure the confirm prompt appeared
await new Promise(r => setTimeout(r, 1000));
@ezy
ezy / twitter-cleanup.js
Created February 7, 2019 05:27 — forked from virenratan/twitter-cleanup.js
Delete twitter content
// delete tweets.
[].slice.call(document.getElementsByClassName('js-actionDelete')).map(tweet => {
tweet.childNodes[1].click()
document.getElementsByClassName('delete-action')[0].click()
})
// un-retweet.
[].slice.call(document.getElementsByClassName('ProfileTweet-actionButtonUndo')).map(retweet => {
retweet.click()
document.getElementsByClassName("js-close")[0].click()
@ezy
ezy / Angular-cli.md
Created May 22, 2017 07:47 — forked from cortesben/Angular-cli.md
Bash commands and Angular CLI commands

#Angular-cli oh shit!

https://cli.angular.io/reference.pdf

Commands Description
ng help returns all commands with flags they can take as a param
ng new [project-name] create a brand new angular project with live server BANG!
ng init grabs name from folder that already exist
@ezy
ezy / ember-owner.js
Last active May 21, 2017 23:16 — forked from eliotsykes/current-route-query-params-ember-component.js
How to lookup or resolve other class instances, or register new factories into the owner.
/**
* For Ember < 2.4
*/
this.get('container').lookup('router:main').router.state;
/**
* For Ember > 2.4
*/
import Ember from 'ember';
const { getOwner } = Ember;
@ezy
ezy / emberjs-cheat-sheet.md
Created September 6, 2016 08:10 — forked from dreikanter/emberjs-cheat-sheet.md
Ember.js Cheat Sheet

Core concepts

Model

  • An object that stores data (data persistance layer abstraction).
  • Templates transforms models into HTML.
  • Same thing as Rails model.

Template

@ezy
ezy / comparison.md
Created September 2, 2016 00:31 — forked from makmanalp/comparison.md
Angular vs Backbone vs React vs Ember notes

Note: these are pretty rough notes I made for my team on the fly as I was reading through some pages. Some could be mildly inaccurate but hopefully not terribly so. I might resort to convenient fiction & simplification sometimes.

My top contenders, mostly based on popularity / community etc:

  • Angular
  • Backbone
  • React
  • Ember

Mostly about MVC (or derivatives, MVP / MVVM).