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
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>
@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
@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 / 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 / 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 ...
rsync -aHAX --info=progress2 ...
@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'
pacman -Sup --print-format %n | xargs -I% bash -c "pacman -Si % | grep Download | awk '{ print \$4\",\"\$5\",%\"
}'" | tee upgradable.csv
@m-rap
m-rap / rclone with progress stats
Last active December 20, 2024 02:17
rclone with progress stats
rclone mount --vfs-cache-mode writes --stats 1m --stats-one-line <remote> <local> -v
@m-rap
m-rap / bt_csr_5.13.0-35.patch
Last active May 1, 2022 22:21
bt_csr_5.13.0-35.patch
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index 4fe15e1434b0..80c11ef5465a 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -1935,6 +1935,8 @@ static int btusb_setup_csr(struct hci_dev *hdev)
*/
set_bit(HCI_QUIRK_BROKEN_STORED_LINK_KEY, &hdev->quirks);
set_bit(HCI_QUIRK_BROKEN_ERR_DATA_REPORTING, &hdev->quirks);
+ set_bit(HCI_QUIRK_BROKEN_FILTER_CLEAR_ALL, &hdev->quirks);
+ set_bit(HCI_QUIRK_NO_SUSPEND_NOTIFIER, &hdev->quirks);