Skip to content

Instantly share code, notes, and snippets.

View daretodave's full-sized avatar
💫
mterm.io

David Rehmat daretodave

💫
mterm.io
View GitHub Profile
@daretodave
daretodave / install-nerdfonts.ps1
Last active March 15, 2024 01:50
nerd-fonts windows install script. accepts optional argument for the font to install, otherwise all patched-fonts are installed
# run this with an argument to install a nerdfont on windows
# run this with no arguments to install all fonts
# font name, as seen on https://www.nerdfonts.com/font-downloads
param(
[Parameter(Mandatory=$False, Position=0, ValueFromPipeline=$false)]
[System.String]
$fontTarget="*"
)
# build temp directory for git clone
@daretodave
daretodave / ws-right-click.ps1
Created February 4, 2019 23:34
Add WebStorm to right click context menu on windows. Save as a "ps1", run as admin.
$BIN = ("C:\Program Files\Jetbrains","$env:LOCALAPPDATA\Jetbrains")
$TOOL = Get-Childitem `
-Recurse `
–Path $BIN `
-Filter webstorm64.exe `
| Select-Object -first 1 `
| %{$_.FullName}
if (!$TOOL) {
Write-Output "This script could not find webstorm "
@M1chaelTran
M1chaelTran / WebStorm.cmd
Created August 17, 2017 11:04
Add `Open with WebStorm` to Windows right click context menu
@echo off
:: change the path below to match your installed version
SET WebStormPath=C:\Program Files\JetBrains\WebStorm 2017.2.2\bin\webstorm64.exe
echo Adding file entries
@reg add "HKEY_CLASSES_ROOT\*\shell\WebStorm" /t REG_SZ /v "" /d "Open with WebStorm" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\WebStorm" /t REG_EXPAND_SZ /v "Icon" /d "%WebStormPath%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\WebStorm\command" /t REG_SZ /v "" /d "%WebStormPath% \"%%1\"" /f
@niksurff
niksurff / auto-mdl-to-mdr.js
Last active February 12, 2017 14:17
A hacked together http://www.getmdl.io/components/index.html scraper for automating creation of components for nikvm/material-design-react
var scrapeMDLComponents = require('./scrape-mdl-components');
var parseScrapeData = require('./parse-scrape-data');
var fs = require('fs');
scrapeMDLComponents()
.then(function(data) {
var parsed = parseScrapeData(data);
fs.writeFileSync('./parsed.json', JSON.stringify(parsed, null, 2))
return Promise.resolve(parsed);
})