Skip to content

Instantly share code, notes, and snippets.

@kritollm
kritollm / bulmatoscss_gulpfile.js
Last active December 25, 2018 13:04
Converts Bulma CSS framework from SASS to SCSS
// Bulma to scss gulp script
// In your terminal
// 1. npm install -D sass-convert gulp bulma gulp-sass gulp-replace
// 2. gem install sass
var gulp = require("gulp"),
replace = require('gulp-replace'),
converter = require('sass-convert'),
sass = require('gulp-sass');
@t-mat
t-mat / Win32FileVersionInfoBuildPostprocessor.cs
Created March 22, 2017 18:27
[Unity] Editor Extension - Show Win32 Executable FileVersionInfo
using System;
using System.Collections.Generic;
using System.Reflection;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
using UnityEditor.Callbacks;
#endif
@fearthecowboy
fearthecowboy / gulp-tab.ps1
Last active August 25, 2017 10:35
Better gulp tab expansion script
# Copyright (c) 2014 Jason Jarrett
#
# Tab completion for the `gulp`
#
# Usage:
#
# To enable powershell <tab> completion for gulp you need to be running
# at least PowerShell v3 or greater and add the below to your $PROFILE
#
# Invoke-Expression ((gulp --completion=powershell) -join [System.Environment]::NewLine)
@jarun
jarun / chrome_extensions.md
Last active July 13, 2024 00:23
A collection of useful Google Chrome extensions
'use strict';
function getInstance(consumer_key, consumer_secret) {
return new TwitterWebService_(consumer_key, consumer_secret);
}
var TwitterWebService_ = function (consumer_key, consumer_secret) {
this.consumer_key = consumer_key;
this.consumer_secret = consumer_secret;
}
@fearthecowboy
fearthecowboy / test.cmd
Created December 9, 2016 02:00
Make a powershell script with a .cmd (or .bat) extension
@powershell -noninteractive "& ([Scriptblock]::Create( ((gc -raw '%~df0') -replace '^@powershell.*' ) )) %*" & goto :eof
###
### Example : Just use that first line in a .cmd file and it will execute this file with powershell!
###
param( $name, $lastname )
write-host -fore green "Well, hello $name $lastname"
<# Notes:
this works just fine from cmd (or powershell) - even with named parameters:
###
### Save this file as "install-software.ps1"
###
# check for elevated powershell
write-host -nonewline -fore cyan "Info: Verifying user is elevated:"
If (-Not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {
write-host -fore Red "NO"
return write-error "You must run this script elevated."
}
@fearthecowboy
fearthecowboy / Install-Stack.ps1
Created October 13, 2016 01:01
Install software stack.
###
### Save this file as "install-software.ps1"
###
# check for elevated powershell
write-host -nonewline -fore cyan "Info: Verifying user is elevated:"
If (-Not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {
write-host -fore Red "NO"
return write-error "You must run this script elevated."
}
@adisib
adisib / youtube_hd.user.js
Last active February 10, 2026 15:09
Make youtube videos in HD and automatically resize
// ==UserScript==
// @name Youtube HD
// @author adisib
// @namespace namespace_adisib
// @description Select a youtube resolution and resize the player.
// @version 2025.04.13
// @match https://*.youtube.com/*
// @noframes
// @grant GM.getValue
// @grant GM.setValue
@Beej126
Beej126 / !genFaPng.ps1
Last active September 11, 2017 14:51
# ____
# / __ \________ ________ ____ ______
# / /_/ / ___/ _ \/ ___/ _ \/ __ `/ ___/
# / ____/ / / __/ / / __/ /_/ (__ )
#/_/ /_/ \___/_/ \___/\__, /____/
# /_/
# this script will automatically pull font awesome files from github via .net framework "WebClient"
# install fantastically handy ImageMagick tool from => http://www.imagemagick.org/script/binary-releases.php
# and add it to your path
if (-not [bool](Get-Command "magick.exe" -ErrorAction SilentlyContinue)) { throw "Magick.exe not in path" }