Skip to content

Instantly share code, notes, and snippets.

View m-rap's full-sized avatar
🐢

Rian Prakoso m-rap

🐢
  • Surabaya, Indonesia
View GitHub Profile
pacman -Sup --print-format %n | xargs -I% bash -c "pacman -Si % | grep Download | awk '{ print \$4\",\"\$5\",%\"
}'" | tee upgradable.csv
@m-rap
m-rap / .vimrc
Last active March 10, 2023 02:31
vimrc
call plug#begin()
"Plug 'tpope/vim-sensible'
" On-demand loading
"Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'kien/ctrlp.vim'
Plug 'junegunn/fzf'
Plug 'junegunn/fzf.vim'
rsync -aHAX --info=progress2 ...
@m-rap
m-rap / rsync ntfs to any fs
Last active December 20, 2024 02:13
rsync ntfs to any fs
rsync -rltDvu --modify-window=1 --progress ...
rsync -rltDvu --modify-window=1 --info=progress2 ...
@m-rap
m-rap / android measurement util
Last active December 20, 2024 02:14
android measurement util
package com.yourpackage;
import android.content.Context;
public class Util {
private Context context;
public Util(Context context) {
this.context = context;
}
@m-rap
m-rap / rotating-square.cpp
Last active November 14, 2023 22:54
Loda demo example source code
//
// Created by Rian Prakoso on 7/28/20.
//
#include <string.h>
#include <dlfcn.h>
#include <EGL/egl.h>
#ifdef __ANDROID_API__
@m-rap
m-rap / HelloWorld.js
Created June 24, 2020 02:54
My React Native Hello World
import React, { Component, useState } from 'react';
//import { Component } from 'react';
import { Text, View, TextInput,
StyleSheet, TouchableOpacity, Button } from 'react-native';
import Rnfs from "react-native-fs";
import Database from "./Database"
function HelloWorldApp() {
return (
<View
tar cf - <paths_to_archive> | pv | xz -T 0 -z > <output.tar.xz>
tar cf - <paths_to_archive> | pigz > <output.tar.gz>
tar cf - <paths_to_archive> | pbzip2 > <output.tar.gz>