Skip to content

Instantly share code, notes, and snippets.

View azkadev's full-sized avatar
🏠
Working from home

AZKA azkadev

🏠
Working from home
View GitHub Profile
@azkadev
azkadev / android_chroot.sh
Created August 9, 2024 23:41 — forked from qb0C80aE/android_chroot.sh
run linux on android by chroot in case that android device doesn't have enought free space.
#!/system/bin/sh
cd /data/local/tmp
mount -o bind /dev /data/local/tmp/linux_root/dev
mount -o bind /dev/pts /data/local/tmp/linux_root/dev/pts
mount -t sysfs /sys /data/local/tmp/linux_root/sys
mount -t proc /proc /data/local/tmp/linux_root/proc
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/system/bin:/system/xbin
export TERM=xterm
export HOME=/root
chroot /data/local/tmp/linux_root /bin/bash
// ignore_for_file: unnecessary_brace_in_string_interps
import 'dart:convert';
//import 'package:utility/utility.dart';
void main() {
var str = jsonToDart({
"external_id": "external_id",
"status": "PENDING",
@azkadev
azkadev / index.html
Created October 13, 2021 21:57
Responsive CSS Grid Masonry Gallery
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Masonry Layout con CSS Grid</title>
</head>
<body>
<h1>Masonry Gallery</h1>
@azkadev
azkadev / hide_data.js
Created September 22, 2021 09:29
hide data phone number / credit card / passsword / email node javascript
function hidedata(message, start = 4, end = 2) {
var array = [...String(message)];
var message = "";
var num_start = start;
var num_end = array.length - end;
for (var i = 0; i < array.length; i++) {
var loop_data = array[i];
if (i == num_end) {
num_end--;
message += loop_data