This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
[ | |
{ "keys": ["ctrl+super+g"], "command": "find_all_under" }, | |
{ "keys": ["super+f2"], "command": "find_all_under" }, | |
{ "keys": ["super+alt+l"], "command": "split_selection_into_lines" }, | |
{ "keys": ["super+b"], "command": "toggle_side_bar" }, | |
{ "keys": ["super+shift+b"], "command": "build" }, | |
{ "keys": ["alt+up"], "command": "swap_line_up" }, | |
{ "keys": ["alt+down"], "command": "swap_line_down" }, | |
{ "keys": ["shift+home"], "command": "move_to", "args": { "to": "bol", "extend": true } }, | |
{ "keys": ["shift+end"], "command": "move_to", "args": { "to": "eol", "extend": true } }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: Run a powershell file saving its output to format YYYY-MM-DD_HHMM.txt AKA 2022-03-28_1359.txt | |
:: | |
powershell -f report.ps1 > %date:~6,4%-%date:~3,2%-%date:~0,2%_%time:~0,2%%time:~3,2%.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (args.Length == 1 && args[0].ToLower() == "seeddata") | |
{ | |
SeedData(app); | |
} | |
void SeedData(IHost app) | |
{ | |
var scopedFactory = app.Services.GetService<IServiceScopeFactory>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
pc=$(hostname) | |
echo "macupdater 2 pro command line via $pc on $(date +"%Y-%m-%d %T")" | |
echo '--------------------------------------------------------------' | |
echo '' | |
echo '' | |
echo 'checking for prerequisites...' | |
echo '[] jq' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Settings in here override those in "Default/Preferences.sublime-settings", | |
// and are overridden in turn by syntax-specific settings. | |
{ | |
"font_face" : "IntelOne Mono", | |
"font_size" : 16, | |
"font_options" : ["ss01"], | |
"font_family" : "'IntelOne Mono','CaskaydiaCove Nerd Font','JetBrains Mono',Monaco, 'Anonymous Pro','Liberation Mono', SFMono-Regular, Consolas, 'Dank Mono','Fira Code','Source Code Pro', Menlo, Monaco, 'Courier New', monospace", | |
"dark_theme": "Adaptive.sublime-theme", | |
"light_theme": "Adaptive.sublime-theme", | |
"theme": "Default.sublime-theme", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Reflection; | |
namespace web | |
{ | |
public class Startup | |
{ | |
public static void Main(string[] args) | |
{ | |
if (args?.Length > 0) |
extension_id=jifpbeccnghkjeaalbbjmodiffmgedin # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=stable&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc"
unzip -d "$extension_id-source" "$extension_id.zip"
Thx to crxviewer for the magic download URL.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.monaco-shell { | |
font-family: "Monaco,'Anonymous Pro','Liberation Mono', SFMono-Regular, Consolas, 'Dank Mono','Fira Code','Source Code Pro', Menlo, Monaco, 'Courier New', monospace"; | |
} | |
/* This makes the dirty tab circle yellow */ | |
.vs-dark .monaco-workbench>.part.editor>.content .editor-group-container>.title .tabs-container>.tab.dirty .close-editor-action { | |
background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' height='16' width='16'%3E%3Ccircle fill='%23ffc600' cx='8' cy='8' r='4'/%3E%3C/svg%3E") 50% no-repeat; | |
} | |
.monaco-workbench>.part.editor>.content .editor-group-container { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(async function () { | |
const response = await fetch('https://cors-anywhere.herokuapp.com/https://www.domainsfortherestofus.com/'); | |
const text = await response.text(); | |
const parser = new DOMParser(); | |
const document = parser.parseFromString(text, 'text/html'); | |
const domain = document.querySelector("body > div.content > div > div > div.left-side > div.domain > a").text; | |
console.log('domain', domain); | |
})(); |