Skip to content

Instantly share code, notes, and snippets.

View longtth's full-sized avatar

Long NguyenX longtth

View GitHub Profile
@longtth
longtth / gacp.md
Created September 6, 2022 02:01
git add, commit and push in online

in ~/.bashrc (create 1 if not existed)

function gacp() {
    git add .
    git commit -a -m "$1"
    git push
}
2022-08-21 09:33
bọn em xin cám ơn hội đồng phản biện
sau đây
ĐỪNG : "giống như nội dung của report đã gửi"
nên: giới thiệu member đứng đó là được, không cần phả
BAD: trình bày ngữ cảnh dài dòng.
@longtth
longtth / setup-dev-env-ubuntu-virtual-box.md
Last active August 14, 2022 09:47
setup môi trường ubuntu on virtual box

Setup môi trường phát triển với Ubuntu và Virtual box

máy host là Windows, nhưng một số thứ thì không thể làm trên Windows, đặc biệt khi bạn chưa hiểu đủ rõ để nghịch ngợm với WSL và Docker

những thứ cần làm

  1. down & cài đặt virtualbox cái này không có gì đáng nói, vào trong này https://www.virtualbox.org/wiki/Downloads mà tải và click click hoặc có chocolatey trên máy thì cinst virtualbox
@longtth
longtth / remap-capslock-to-control-win10.md
Created August 2, 2022 15:39 — forked from joshschmelzle/remap-capslock-to-control-win10.md
Remap Caps Lock to Control on Windows 10

Ways to remap caps lock to control on Windows 10

These methods in this gist worked for me on my U.S.-based keyboard layouts. I am unsure about other layouts. If you have problems, revert your changes; delete the registry key you created (and reboot).

Update: you should probably scroll down to approach 4 where I suggest using Microsoft PowerToys Keyboard Manager.

Approach 1. Manually through regedit

Navigate to and create a new binary value in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout named Scancode Map.

@longtth
longtth / 2021-09-17-sao-nghe-lap-trinh-kho-the.md
Created September 17, 2021 14:13
Sao nghề lập trình viên khó thế?
title date
Sao nghề lập trình viên khó thế?
2021-09-17 20:08 +0700

Sao nghề lập trình viên khó thế?

https://qr.ae/pGSpux

Trả lời bởi Alan Mellor, bán code từ 1981

@longtth
longtth / sudo-winscp.md
Created September 13, 2021 04:44
`sudo` với WinSCP
layout title date categories tags
post
sudo với WinSCP
2021-06-23 +0700
tips
linux

sudo với WinSCP

@longtth
longtth / install_nvidia_docker_offline.md
Created August 26, 2021 14:17 — forked from lamhoangtung/install_nvidia_docker_offline.md
How to install nvidia-docker offline for Ubuntu 18.04
@longtth
longtth / 2021-08-17-things-you-should-never-do-part-1.md
Last active August 17, 2021 15:54
2021-08-17-things-you-should-never-do-part-1
@longtth
longtth / global-gitignore.md
Created August 2, 2021 14:00 — forked from subfuzion/global-gitignore.md
Global gitignore

There are certain files created by particular editors, IDEs, operating systems, etc., that do not belong in a repository. But adding system-specific files to the repo's .gitignore is considered a poor practice. This file should only exclude files and directories that are a part of the package that should not be versioned (such as the node_modules directory) as well as files that are generated (and regenerated) as artifacts of a build process.

All other files should be in your own global gitignore file. Create a file called .gitignore in your home directory and add anything you want to ignore. You then need to tell git where your global gitignore file is.

Mac

git config --global core.excludesfile ~/.gitignore

Windows

git config --global core.excludesfile %USERPROFILE%\.gitignore
@longtth
longtth / curl.md
Created June 24, 2021 14:28 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.