Skip to content

Instantly share code, notes, and snippets.

View hungdev's full-sized avatar
💭
I may be slow to respond.

Hung Vu hungdev

💭
I may be slow to respond.
View GitHub Profile
@hungdev
hungdev / Proxifier for Mac V2.19 Key
Created January 22, 2019 16:13
Proxifier for Mac V2.19 Key
Proxifier for Mac V2.19 Key
P427L-9Y552-5433E-8DSR3-58Z68
name: any
@hungdev
hungdev / dayjs different between 2 dates.md
Last active February 5, 2024 09:01
dayjs different between 2 dates

docs: https://day.js.org/docs/en/plugin/duration

https://replit.com/@hungdev/dayjs-diff#index.js


const dayjs = require('dayjs');
require('dayjs/locale/vi'); // Import locale để có các chuỗi ngôn ngữ Việt Nam
var durationExt = require('dayjs/plugin/duration')
dayjs.extend(durationExt)
@hungdev
hungdev / charles.md
Last active January 30, 2024 03:00
charles
https://viblo.asia/p/charles-ung-dung-cong-cu-charles-vao-kiem-thu-Qbq5Q1A45D8

https://www.youtube.com/watch?v=AW2vTBRfOrU&fbclid=IwAR2Wx7y_z2lyctwwVPXa_szQe47A60qnjKTDnGE0yUGy7MFmzHCQzs_zx34


với các lần sau:
ở Iphone vào wifi => config proxy => manual => ip laptop port 8888 ( khi config cái này thì ở charles laptop nó sẽ hỏi allow )
general => about => certificate => enable charles CA
general => profile & device management => check xem đã có charles proxy CA chưa.
@hungdev
hungdev / Node switcher version.md
Last active November 19, 2023 03:51
Node switcher version shellscript command

Node switcher:

How to use:

Create file name: node-swicher.sh and copy content below
give permission ( Only need to grant 1 time ): chmod +x node-swicher.sh
run it: ./node-swicher.sh $param
param: 
If no number is passed, it defaults to version 16.16.0.
If 14 is passed, it uses version 14.19.0.
@hungdev
hungdev / fnm.md
Last active November 6, 2023 05:29
fnm
fnm install 16.16.0
fnm use 16.16.0
fnm default 16.16.0
@hungdev
hungdev / iso-language-codes.md
Last active October 6, 2023 04:07
iso-language-codes
@hungdev
hungdev / responsive.scss
Created June 1, 2023 08:34 — forked from yactouat/responsive.scss
a responsive mixin in SCSS
// SO responsive mixin
// a mixin is different from a function as it does not return a value but serves as placeholder for code
@mixin responsive( $breakpoint ) {
/*
breakpoints are viewport arbitrary values,
they are defined with the aim of allowing the SCSS/CSS code of your app' behave accordingly to your user's device width,
the breakpoints I used were inspired by Bootstrap =>
https://getbootstrap.com/docs/5.0/layout/breakpoints/
*/
@if $breakpoint == smartphone-portrait {
@hungdev
hungdev / ngrok run multiple ports at once.md
Last active May 24, 2023 19:15
ngrok run multiple ports at once

create file ngrok.yml

authtoken: ***
version: "2"
region: "us"
tunnels:
  first:
    addr: 6006
 proto: http 
@hungdev
hungdev / Search all field in table.md
Created April 12, 2023 09:17
Search all field in table
const fields = Object.keys(data?.[0]);
const searhResponse = searchVl ? data?.filter(el => fields.find(f => el[f]?.toString()?.toLowerCase()?.includes(searchVl?.toLowerCase()))) : data;
@hungdev
hungdev / app icon and splash.md
Last active December 20, 2022 10:21
app icon and splash
https://www.appicon.co/
https://github.com/MasonLe2497/cli-tools