🖱️

Computer & Internet tricks

Anh-Thi Dinh
Keep light mode for Chrome on MacOS
Using below command and don't forget to restart Chrome.
1defaults write com.google.Chrome NSRequiresAquaSystemAppearance -bool YES
Change keyboard shortcut for Dev Tools of Chromium browsers
We cannot change directly in the browser.
  • Native: In the Settings page of Dev Tools, click on "Experiments", search for "key" and tick "Enable keyboard shortcut editor". Reload the Dev Tools and click on "Shortcuts", you will see the edit button on right of each shortcut.
  • (Another way) On Mac, we can add the custom by going to System Preferences > Keyboard > App Shortcuts > "+" > Choose the app (eg. "Google Chrome.app") > Type exactly the name of commands, eg "Inspect elements".
Connect localhost of another computer from this computer
On the "host" computer, use ifconfig (linux, macos) or ipconfig (windows) to know the ip address (something like 192.168.1.109). From the "client" computer, browser http://192.168.1.109:4000 (make sure on the "host", localhost:4000 is working).
Change default directory in cmder
  1. Go to settings
  1. Then, Startup > Tasks
  1. Choose {cmd::Cmder}
  1. Choose the below-right box, let the cursor at the end of the text
  1. Click on "Startup dir…"
  1. Choose your desired directory > OK
  1. Remove the current line with the new appearing one (new_console:d:%USERPROFILE%)
  1. Click on Save settings
Disable navigation by cursor on Brave (cursor showing up in the window at all times)
Toggle F7.
Cortana uses Chrome instead of Edge
  • Download and install this app (reinstall it after every update of Windows).
  • Choose EdgeDeflector as the default web browser if it asks.
  • Install this extension in Chrome to force to redirect from Bing to Google Search Engine.
Change default directory in PowerShell
  • Create a folder in your Documents folder called WindowsPowerShell
  • Create a file called profile.ps1 inside this folder
  • Add following command Set-Location c:\\abc
  • Every time you launch PowerShell, the profile script will be executed
Remove apps permission from Google Apps (Youtube, Google Play Music, …)
Problem of hsts
Cannot open a page with security problem.
  1. Go to chrome://net-internals/#hsts
  1. "Query HSTS/PKP domain", fill domain, e.g. gitlab.powerop.io.
  1. "Delete domain security policies", fill domain and click on Delete.
  1. Try again > Click on "Advanced" > Click on ...unsafe....
Download flash video
In the case browser extensions cannot capture the url, you can open the Developer Tools (in Chrome, press <kbd>F12</kbd>) > Reload the page and click to play again the video > Network tab > Media tab > click on any sources on the left column (videoplayback?expire...) > On the right column, in tab Headers > General > Copy the content in Request URL, something like below,
1<https://r4---sn-25ge7ns7.googlevideo.com/videoplayback?expire=1568040368&ei=kEl2Xb...f_cW7qE=>
Open a new tab in your browser, <kbd>Ctrl</kbd> + <kbd>S</kbd> to save the video. You can also open the Downloads manager in your browser (<kbd>Ctrl</kbd> + <kbd>J</kbd>) to copy the download link and use other Download Manager tools to download this video without using the browser!
Github README on localhost
In stall grip.
1# go to the file's directory
2grip # if file is README.md
3grip file.md
Split mp3 audio into tracks
  1. Download & Install Audacity (free, available for macos, linux, windows).
  1. Check this official manual. Shortly,
    1. Select start and end (type number) at the sectio below "Start and End of Selection".
    2. Using [[cmd]] + [[B]] to "Add label at selection"
    3. Name for labels: Whenever a label is created, a small rectangle box appear next to the label point, click there to name the label.
    4. After adding all necessary labels, File > Export > Export Multiple > Split file based on "Labels" (tick on "Include audio before the first label) > "Name file" (should choose "Using Label/Track Name") option and then "Export".
Loading comments...