Skip to content

Instantly share code, notes, and snippets.

View hienlt0610's full-sized avatar

Lê Trung Hiển hienlt0610

View GitHub Profile
This file has been truncated, but you can view the full file.
@hienlt0610
hienlt0610 / dio_client.dart
Created April 29, 2025 03:58 — forked from DattatreyaReddy/dio_client.dart
DIo Client is a wrapper around Dio to support decoder with Compute (Threads)
import 'package:dio/dio.dart';
import 'package:flutter/foundation.dart';
import 'dio_error_util.dart';
typedef ResponseDecoderCallBack<DecoderType> = DecoderType Function(dynamic);
class DioClient {
final Dio dio;
DioClient(this.dio);
#!/usr/bin/env bash
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
# Copyright (c) 2021-2025 tteck
# Author: tteck (tteckster)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://alpinelinux.org/
APP="My App"
var_tags="os;alpine"
var_cpu="1"
{"data": "Make me great again"}
@hienlt0610
hienlt0610 / nested_will_pop_scope.dart
Created June 21, 2023 08:27 — forked from schultek/nested_will_pop_scope.dart
An improved WillPopScope widget to allow for nested navigators. See https://github.com/flutter/flutter/issues/47088
import 'package:flutter/material.dart';
class NestedWillPopScope extends StatefulWidget {
const NestedWillPopScope({
Key? key,
required this.child,
required this.onWillPop,
}) : super(key: key);
final Widget child;
@hienlt0610
hienlt0610 / open-voz-app.user.js
Last active May 4, 2023 11:09
open-voz-app.user
// ==UserScript==
// @name Open Voz App
// @version 1.0.0
// @author beebeo
// @match *://*.voz.vn/*
// @downloadURL https://gist.github.com/hienlt0610/b60b38ac2bf23523d214a5d96d6a8786/raw/d7180f4e9d0c511bc372042793008a3d1720e794/open-voz-app.user.js
// @updateURL https://gist.github.com/hienlt0610/b60b38ac2bf23523d214a5d96d6a8786/raw/d7180f4e9d0c511bc372042793008a3d1720e794/open-voz-app.user.js
// @homepage https://gist.github.com/hienlt0610/b60b38ac2bf23523d214a5d96d6a8786
// ==/UserScript==
@hienlt0610
hienlt0610 / flutter_all_fastlane.sh
Created May 18, 2022 07:50 — forked from samuelematias/flutter_all_fastlane.sh
Using Fastlane for Flutter to deploy iOS, Mac, Android and Web
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
# https://docs.fastlane.tools/plugins/available-plugins
@hienlt0610
hienlt0610 / cf-ddns.rsc
Created February 22, 2022 04:35 — forked from tophrr/cf-ddns.rsc
Mikrotik RouterOS Cloudflare Dynamic DNS Script
# Cloudflare Dynamic DNS update script
# Required policy: read, write, test, policy
# Add this script to scheduler
# Install DigiCert root CA or disable check-certificate
# Configuration ---------------------------------------------------------------------
:local TOKEN "__APITOKEN__"
:local ZONEID "__ZONEIDENTIFIER__"
:local RECORDID "__RECORDIDENTIFIER__"
:local RECORDNAME "__DNSRECORD__"
@hienlt0610
hienlt0610 / Twitter Guest Search.py
Created February 10, 2022 10:02 — forked from K0lb3/Twitter Guest Search.py
public Twitter search as json
import requests
import re
class Twitter:
def __init__(self):
self.s = requests.Session()
self.get_tokens()
def get_tokens(self):
@hienlt0610
hienlt0610 / flutter-singleton-db.dart
Created July 30, 2021 20:12 — forked from madebycm/flutter-singleton-db.dart
Flutter singleton DatabaseHelper
import 'dart:io';
import 'package:path/path.dart';
import 'package:sqflite/sqflite.dart';
import 'package:path_provider/path_provider.dart';
class DatabaseHelper {
static final _databaseName = "MyDatabase.db";
static final _databaseVersion = 1;