Skip to content

Instantly share code, notes, and snippets.

View r17x's full-sized avatar
🤘
REconciling...

RiN r17x

🤘
REconciling...
View GitHub Profile
@r17x
r17x / mutt_mbsync_multipleaccounts.md
Created November 3, 2019 15:50 — forked from chandraratnam/mutt_mbsync_multipleaccounts.md
Mutt + isync mbsync + gmail + multiple accounts.

Mutt + isync multiple accounts Unfinished

This is the setup that I use for mutt, I have two google domain account (read as gmail) and an institution where I work and study account. This means I have two gmail accounts and one outlook 365 account that i want to sync and read via mutt.

I want to store all my email locally as I travel a lot and will be in countries without easy internet access. For this I use mbsync (iSync). As it can handle multiple account types easily and efficently.

The setup works this way

[Remote Mail Servers] <= mbsync => [Local Mail Folders]

@r17x
r17x / clean-react-native.md
Created July 26, 2019 10:42
CLEAN REACT-NATIVE

Yarn

watchman watch-del-all &&
rm -rf $TMPDIR/react-native-packager-cache-* &&
rm -rf $TMPDIR/metro-bundler-cache-* && 
rm -rf node_modules/ && 
yarn cache clean &&
yarn install && 
yarn start -- --reset-cache
@r17x
r17x / build.gradle
Last active July 23, 2019 14:49
ANDROID FUCKING PROBLEM with REACT-NATIVE-CAMERA
android {
...
defaultConfig {
...
missingDimensionStrategy 'react-native-camera', 'general' <-- insert this line
}
}
@r17x
r17x / introrx.md
Created May 18, 2019 05:59 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@r17x
r17x / example.js
Created April 29, 2019 05:21 — forked from developit/example.js
Preact + Web Components = <333 Demo: http://www.webpackbin.com/VJyU9wK5W
import { h, Component } from 'preact';
import Markup from 'preact-markup';
import register from './preact-custom-element';
// just a proxy component: WC -> Preact -> WC
const A = () => <x-b foo="initial foo from <x-a>" />;
// stateful component that can re-render
class B extends Component {
render(props, state) {
@r17x
r17x / cli-apps-dev.md
Created April 23, 2019 09:14 — forked from wayanjimmy/cli-apps-dev.md
I curate a list of interesting CLI tools, below are some command line tools that I personally love and use

I curate a list of interesting CLI tools, below are some command line tools that I personally love and use

  • ripgrep - Search text for patterns fast.
  • fzf - Command-line fuzzy finder.
  • exa - Replacement for ls written in rust.
  • git - Version control.
  • youtube-dl - Download videos from YouTube and other video sites.
  • tmux - Terminal multiplexer.
  • direnv - Environment switcher for the shell.
  • trash - Move files and folders to the trash.
@r17x
r17x / js-terms.md
Created April 9, 2019 03:18 — forked from AllThingsSmitty/js-terms.md
10 terms to help you better understand JavaScript

10 JavaScript Terms You Should Know

From currying to closures there are quite a number of special words used in JavaScript. These will not only help you increase your vocabulary but also better understand JavaScript. Special terms are normally found in documentation and technical articles. But some of them like closures are pretty standard things to know about. Knowing what the word itself means can help you know the concept it's named for better.

  1. Arity
  2. Anonymous
  3. Closure
  4. Currying
  5. Hoisting
  6. Mutation
@r17x
r17x / install_nodejs_and_yarn_homebrew.md
Created April 5, 2019 13:50 — forked from nijicha/install_nodejs_and_yarn_homebrew.md
Install NVM, Node.js, Yarn via Homebrew

Install NVM, NodeJS, Yarn via Homebrew

Prerequisites

  • Homebrew should be installed (Command line tools for Xcode are included).

Getting start

Install NVM and NodeJS

  1. Install nvm via Homebrew
@r17x
r17x / docker-cleanup-resources.md
Created March 26, 2019 10:14 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

#!/usr/bin/env node
/**
* @description Image Generator for Splash Screen Mobile Development.
* @author ri7nz <[email protected]>
*
* @todo - [ ] handle sharp if not available in environment.
* @todo - [ ] add image dimensions list for iOS (.ipa) splash image.
* @todo - [ ] handle image type
* @todo - [ ] Send Your Request Feature
* @todo - [ ] handle for potrait or landscape type