Skip to content

Instantly share code, notes, and snippets.

@voquanghoa
voquanghoa / Disable Macbook Play button.md
Last active December 31, 2020 11:14
Disable iTunes (or Music) auto launch when click the play button (often by accident)

Disable

launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist

Enable

@voquanghoa
voquanghoa / Convert IIS PFX.md
Created January 5, 2021 05:18
Convert certification to IIS pfx
openssl pkcs12 -export -in certificate.crt -inkey private.key -out output.pfx
git checkout <branch>
git reset $(git merge-base develop $(git branch --show-current))
git add *
git commit -m "Comments ..."
git push --force
@voquanghoa
voquanghoa / Android Useful Commands.md
Last active March 18, 2022 16:07
Some useful adb commands for all developers

1. Get Device local IP

adb shell ifconfig wlan0

2. Wireless ADB

adb tcpip 5556
module.exports = {
publicPath: "/",
devServer: {
proxy: {
"^/api": {
target: "https://localhost:5001/",
ws: true,
changeOrigin: true,
},
},
@voquanghoa
voquanghoa / SuggestComboBox.cs
Last active March 10, 2024 11:07
C# SuggestCombobox
public class SuggestComboBox : ComboBox
{
#region fields and properties
private readonly ListBox suggestionListBox = new ListBox { Visible = false, TabStop = false };
private readonly BindingList<string> suggBindingList = new BindingList<string>();
private Expression<Func<ObjectCollection, IEnumerable<string>>> propertySelector;
private Func<ObjectCollection, IEnumerable<string>> propertySelectorCompiled;
private Expression<Func<string, string, bool>> filterRule;