Skip to content

Instantly share code, notes, and snippets.

//PASTE INTO CONSOLE!
//Can be used to check for new and changed flags in updated versions, or in any other version of Chromium.
//From "Get current Chromium flags.js": copy the "finalSetts" array contents and paste between "const setTo=" and the semicolon (and uncomment "const setTo="), or you can download the setter generated by the "Download setter" button.
//Manually set the flags that remain visible after this script is run, then relaunch the browser, then run "Get current Chromium flags.js".
//const setTo=;
function getAncestors(el){
firstParent=el;
@dseeni
dseeni / regular_expression_engine_comparison.md
Created April 21, 2023 17:56 — forked from CMCDragonkai/regular_expression_engine_comparison.md
Regular Expression Engine Comparison Chart

Regular Expression Engine Comparison Chart

Many different applications claim to support regular expressions. But what does that even mean?

Well there are lots of different regular expression engines, and they all have different feature sets and different time-space efficiencies.

The information here is just copied from: http://regular-expressions.mobi/refflavors.html

@dseeni
dseeni / regular_expression_engine_comparison.md
Created April 21, 2023 17:55 — forked from ninmonkey/regular_expression_engine_comparison.md
Forked CSS Test - Regular Expression Engine Comparison Chart

About

  • Style[s] don't affect github's render
  • it works on local markdown previews

Render from VS Code

render-of-gist

@dseeni
dseeni / curl.md
Created April 18, 2023 04:34 — forked from tee-vee/curl.md
A curl tutorial using GitHub's API

Introduction

An introduction to curl using GitHub's API.

The Basics

Makes a basic GET request to the specifed URI

curl https://api.github.com/users/caspyin
@dseeni
dseeni / PowerShell Customization.md
Created April 18, 2023 03:34 — forked from jchandra74/PowerShell Customization.md
PowerShell, Cmder / ConEmu, Posh-Git, Oh-My-Posh, Powerline Customization

Pimping Up Your PowerShell & Cmder with Posh-Git, Oh-My-Posh, & Powerline Fonts

Backstory (TLDR)

I work as a full-stack developer at work. We are a Windows & Azure shop, so we are using Windows as our development platform, hence this customization.

For my console needs, I am using Cmder which is based on ConEmu with PowerShell as my shell of choice.

Yes, yes, I know nowadays you can use the Linux subsystem on Windows 10 which allow you to run Ubuntu on Windows. If you are looking for customization of the Ubuntu bash shell, check out this article by Scott Hanselman.

@dseeni
dseeni / rdiff.ps1
Created April 3, 2023 04:58 — forked from cchamberlain/rdiff.ps1
Recursively diffs 2 directories (files and contents) using MD5 hashes - Includes validation for paths and optional summary export. Requires PowerShell 3.0 or later.
#########################################################################
### USAGE: rdiff path/to/left,path/to/right [-s path/to/summary/dir] ###
### ADD LOCATION OF THIS SCRIPT TO PATH ###
#########################################################################
[CmdletBinding()]
param (
[parameter(HelpMessage="Stores the execution working directory.")]
[string]$ExecutionDirectory=$PWD,
[parameter(Position=0,HelpMessage="Compare two directories recursively for differences.")]
@dseeni
dseeni / pre-commit.sh
Created March 24, 2023 04:38 — forked from reactorcoremeltdown/pre-commit.sh
Zettelkasten automation
#!/usr/bin/env bash
set -e
## Using line feed as a delimeter when cycling through tags
IFS=$'\n'
## Starting an index page here
echo -e "## Zettelkasten Index\n\n" > zettelkasten.md
@dseeni
dseeni / vimdiff.md
Created March 24, 2023 03:57
vimdiff cheat sheet

vimdiff cheat sheet

##git mergetool

In the middle file (future merged file), you can navigate between conflicts with ]c and [c.

Choose which version you want to keep with :diffget //2 or :diffget //3 (the //2 and //3 are unique identifiers for the target/master copy and the merge/branch copy file names).

:diffupdate (to remove leftover spacing issues)

:only (once you’re done reviewing all conflicts, this shows only the middle/merged file)

@dseeni
dseeni / sed cheatsheet
Created March 23, 2023 21:49 — forked from ssstonebraker/sed cheatsheet
Sed Cheatsheet
FILE SPACING:
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'