Skip to content

Instantly share code, notes, and snippets.

@dodying
dodying / chromium-command-line-switches.md
Last active April 24, 2024 15:56
[List of Chromium Command Line Switches] https://peter.sh/experiments/chromium-command-line-switches/ #chrome #lookup

There are lots of command lines which can be used with the Google Chrome browser. Some change behavior of features, others are for debugging or experimenting. This page lists the available switches including their conditions and descriptions. Last automated update occurred on 2018-10-20.

Condition Explanation
-- Report pseudo allocation traces. Pseudo traces are derived from currently active trace events.
--/prefetch:1 /prefetch:# arguments to use when launching various process types. It has been observed that when file reads are consistent for 3 process launches with the same /prefetch:# argument, the Windows prefetcher starts issuing reads in batch at process launch. Because reads depend on the process type, the prefetcher wouldn't be able to observe consistent reads if no /prefetch:# arguments were used. Note that the browser process has no /prefetch:# argument; as such a
@EGARRISXN
EGARRISXN / my-regex-tutorial.md
Created April 24, 2024 15:51
This is a tutorial that explains how a specific regular expression, or regex, functions by breaking down and describing each part of the expression.

My Regex Tutorial!

This tutorial on Regular Expression (Regex) aims to assist you in comprehending and establishing the order of unique characters for validating a search term. A Regex refers to a sequence of characters that outlines a particular search pattern. Whether incorporated into code or search algorithm, regular expressions enable the identification of specific character patterns within a string, as well as the identification and substitution of individual characters or sequences of characters within a string. Moreover, they are commonly employed for validating input data.

Summary

This tutorial will show you how to harness the power of regular expressions to manipulate text based on specific patterns.

Let us explore how to utilize regex for matching emails using the expression /^([a-z0-9_.-]+)@([\da-z.-]+).([a-z.]{2,6})$.

@Souhaylb
Souhaylb / commits_stats.md
Last active April 24, 2024 15:55
codestats

🌞 Morning 16 commits β–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 8.1% πŸŒ† Daytime 49 commits β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 24.7% πŸŒ™ Night 133 commits β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘ 67.2%

@rxb
rxb / feathersJsAppleSignIn.md
Last active April 24, 2024 15:51
Sign in with Apple + FeathersJS: how to implement Apple's OAuth flow with FeathersJS

Sign in with Apple + FeathersJS

Upgrade to FeathersJS 5

FeathersJS uses a package called Grant for most of the OAuth functionality. Grant now supports the Apple OAuth flow, but only in recent versions. FeathersJS v5 (currently in prerelease) uses this new Apple-supporting version of Grant. For this reason, I would suggest first upgrading to FeathersJS v5 (Dove) https://dove.docs.feathersjs.com/guides/migrating.html

Pick a domain for localhost

Sign in with Apple does NOT work with servers set up as localhost. If you haven't already, you'll need to pick a domain for your FeatherJS server. If your main domain is example.com, you might want to pick a subdomain like devapi.example.com. You won't need to change the domain's real dns for this, you can add the alias to your /etc/hosts file:

@itod
itod / split_keyboards.md
Last active April 24, 2024 15:55
Every "split" mechanical keyboard currently being sold that I know of
@chranderson
chranderson / nvmCommands.js
Last active April 24, 2024 15:49
Useful NVM commands
// check version
node -v || node --version
// list locally installed versions of node
nvm ls
// list remove available versions of node
nvm ls-remote
// install specific version of node
@lopspower
lopspower / README.md
Last active April 24, 2024 15:49
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@ih2502mk
ih2502mk / list.md
Last active April 24, 2024 15:48
Quantopian Lectures Saved
func DoReq() error {
resp, err := http.Get("http://localhost:8080/ping")
if err != nil {
return err
}
defer resp.Body.Close()
if resp.StatusCode < 200 || resp.StatusCode >= 300 {
return errors.New("bad response")
}
@fitzypop
fitzypop / starship_git_bash_windows.md
Last active April 24, 2024 15:46
Installing Starship.rs on Git Bash for Windows

Installing Starship prompt on Git Bash for Windows

Source: https://bleepcoder.com/starship/640385008/unable-to-install-on-windows-git-bash-configuration-not

All scripts should be ran in your git bash terminal, not cmd or ps.

  1. Make/Choose folder where to install: mkdir -p ~/bin/starship && cd ~/bin
  2. Download the install script: curl -fsSL https://starship.rs/install.sh > ./install.sh
  3. Run install script: ./install.sh --bin-dir /c/Users/<username>/bin/starship/ --platform pc-windows-msvc
  4. Finally add the following to the end of your .bashrc file: