Skip to content

Instantly share code, notes, and snippets.

View brettsmason's full-sized avatar

Brett Mason brettsmason

View GitHub Profile

Automate GitHub Release

This script automates the publishing of a new release on GitHub and runs npm deploy whenever the version number in package.json is changed.

It requires two secret tokens in the repo settings:

  1. GH_TOKEN - a fine-grained token with read/write permissions for content and pull releases.
  2. NPM_TOKEN - a CI token from your NPM account.

Learn more about how it works here.

@ryleu
ryleu / linuxoverwatch.md
Last active May 31, 2023 07:44
OW 2 on Linux

This guide is completely irrelevant! You no longer need to follow anything here—doing so may actually harm performance rather than helping it. Please tell whoever linked you here that they need to maintain their own guide, if they want to help people set up newer versions of DXVK / etc.

@IlanVivanco
IlanVivanco / devilbox.sh
Last active September 3, 2021 13:53
Utils function for managing Devilbox's virtual hosts
dvb-create-host() {
# Vars
BASE_DIR="~/www/$1/htdocs"
DB_NAME="$1_db"
DB_HOST="mysql"
DB_USER="root"
DB_PASS=""
WP_URL="$1.local"
WP_USER="ilan"
@lukaskleinschmidt
lukaskleinschmidt / app.scss
Last active September 30, 2025 21:18
Utility class generator like tailwindcss but in pure Sass.
@use 'sass:map';
@use 'variants' as * with (
$breakpoints: (
'small': 640px,
'medium': 768px,
'large': 1024px,
'wide': 1280px,
)
);
@TheFeloniousMonk
TheFeloniousMonk / sym-woo-extensions.php
Last active July 6, 2019 18:21
WooCommerce - Display a list of variable products priced by a single or several variant states (attributes)
<?php
/**
* Plugin Name: SYM Woo Extensions
* Plugin URI: https://symphonyagency.com
* Description: A set of utilities for use with WooCommerce
* Version: 1.0.0
* Author: Chris Jenkins
* Author URI: http://symphonyagency.com
* License: GPL3
* Text Domain: sym-woo
@m-e-h
m-e-h / .zshrc
Last active October 22, 2022 19:15
Linux(Ubuntu) Fresh Install
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH
export ZSH="/home/marty/.oh-my-zsh"
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(status custom_meh dir vcs)
POWERLEVEL9K_PROMPT_ON_NEWLINE=true
POWERLEVEL9K_RPROMPT_ON_NEWLINE=true
POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
POWERLEVEL9K_CUSTOM_MEH="echo '\uf11a' meh"
@noelbundick
noelbundick / LICENSE
Last active September 23, 2025 10:49
Exclude WSL installations from Windows Defender realtime protection
MIT License
Copyright (c) 2018 Noel Bundick
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@DanyHenriquez
DanyHenriquez / bulma-sass-scss.rb
Created August 18, 2017 10:49
Convert bulma from sass to scss
#!/usr/bin/env ruby
require 'tmpdir'
require 'fileutils'
dir = Dir.tmpdir()
if File.directory?("#{dir}/bulma")
FileUtils.remove_dir("#{dir}/bulma")
end
@valeryan
valeryan / WindowsSetup.md
Last active May 4, 2021 09:25
Local WSL Setup

Deprecated in favor of Valet Wiki Page

I set up the wiki page for the valet-wsl project and moved the install guide there. This way it can have user contributions. Please have all disscussions or issues under the valet-wsl project so I can be aware of it. Please go to Valet Wsl Installation Guide

@mauri870
mauri870 / manjaro-avell-g1513.md
Last active March 2, 2022 02:23
Installation of Manjaro 17 and nvidia/bumblebee drivers on Avell G1513

After a weekend of research, stress and pain I finally figure out how to install manjaro 17 and configure the nvidia/bumblebee drivers on my avell laptop

Here's my notebook specs:

$ inxi -MGCNA

Machine:   Device: laptop System: Avell High Performance product: 1513
           Mobo: N/A model: N/A v: 0.1 UEFI: American Megatrends v: N.1.02 date: 09/28/2016
Battery    BAT0: charge: 44.0 Wh 100.0% condition: 44.0/44.0 Wh (100%)