Skip to content

Instantly share code, notes, and snippets.

View bsclifton's full-sized avatar
🦁

Brian Clifton bsclifton

🦁
View GitHub Profile
@Ta180m
Ta180m / WSL 2 GNOME Desktop.md
Last active May 3, 2024 17:09
Set up a GNOME desktop environment on WSL 2

WSL 2 GNOME Desktop

NOTE: If you want the ultimate Linux desktop experience, I highly recommend installing Linux as your main OS. I no longer use Windows (except in a VM) so I will not be maintaining this guide anymore.

Think Xfce looks dated? Want a conventional Ubuntu experience? This tutorial will guide you through installing Ubuntu's default desktop environment, GNOME.

GNOME is one of the more complex — and that means more difficult to run — desktop environments, so for years people couldn't figure [o

@ayumi
ayumi / compare-bookmarks.rb
Created July 12, 2017 20:28
Compare/Diff bookmark export HTML files in netscape formats
#!/usr/bin/env ruby
# Take 2 bookmark HTML files in netscape format, and look for differences.
# Doesn't compare hierarchy.
# Requirements: Ruby 2.x; oga ruby gem (gem install oga)
# License: MPL 2.0
HELP_MSG = "Usage: compare-bookmarks.rb [Bookmarks HTML 1] [Bookmarks HTML 2]".freeze
# HTML parser
@NejcZdovc
NejcZdovc / npm.bash
Last active May 18, 2017 07:05
Clean install of brave development
// Clean
npm cache clean
rm -rf ~/.node-gyp
rm -rf ~/.electron
rm -rf ~/Library/Application Support/brave-development
rm -rf node_modules
// Install
npm i
@kevinlawler
kevinlawler / fix-new-build-runbook.txt
Last active November 3, 2017 18:56
New Release Runbook (if it doesn't work on your system) - Brave
New Release Runbook (if it doesn't work on your system)
(if you get git network failures, try raising config http.postBuffer)
Definitions:
B-L-B: .../browser-laptop-bootstrap
B-L: .../browser-laptop-bootstrap/src/browser-laptop
MUON: .../browser-laptop-bootstrap/src/electron
1. Download it:
@echosa
echosa / Brave-issues.md
Last active March 30, 2018 19:04
Brave browser issues
@evanwill
evanwill / gitBash_windows.md
Last active April 26, 2024 03:58
how to add more utilities to git bash for windows, wget, make

How to add more to Git Bash on Windows

Git for Windows comes bundled with the "Git Bash" terminal which is incredibly handy for unix-like commands on a windows machine. It is missing a few standard linux utilities, but it is easy to add ones that have a windows binary available.

The basic idea is that C:\Program Files\Git\mingw64\ is your / directory according to Git Bash (note: depending on how you installed it, the directory might be different. from the start menu, right click on the Git Bash icon and open file location. It might be something like C:\Users\name\AppData\Local\Programs\Git, the mingw64 in this directory is your root. Find it by using pwd -W). If you go to that directory, you will find the typical linux root folder structure (bin, etc, lib and so on).

If you are missing a utility, such as wget, track down a binary for windows and copy the files to the corresponding directories. Sometimes the windows binary have funny prefixes, so

@Overv
Overv / HelloTriangle.cc
Created April 24, 2016 18:54
Vulkan hello triangle
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <algorithm>
#include <chrono>
#include <functional>
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
@alirobe
alirobe / reclaimWindows10.ps1
Last active April 26, 2024 17:59
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
###
@paulirish
paulirish / what-forces-layout.md
Last active May 6, 2024 07:54
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent

Git Cheat Sheet

Commands

Getting Started

git init

or