Skip to content

Instantly share code, notes, and snippets.

@bskiefer
bskiefer / README.md
Last active June 10, 2024 14:50
VSCodium Update Extensions from VS Marketplace

This script will gather the extensions currently installed for VSCodium and update them from marketplace.visualstudio.com automatically.

  • Packages defined under $SKIP are ignored.
  • Old extension folders are removed before the update is installed.

Why?

  • open-vsx.org doesn't get updated very quickly, if at all
  • it's "illegal" to use the VS Marketplace as the extension source in non-M$ products
@nrjdalal
nrjdalal / QEMU-Silicon-Mac-Virtualization.md
Last active February 1, 2024 05:31
Create Virtual Machines using QEMU on Silicon based Apple Macs

Install QEMU on Silicon based Apple Macs (June 2021)

Option 1 - Automatically

zsh -c "$(curl -fsSL https://raw.githubusercontent.com/nrjdalal/silicon-virtualizer/master/install-qemu.sh)"

Option 2 - Manually

  • Install Xcode command line tools

xcode-select --install
@alyssais
alyssais / vpn
Created May 8, 2018 17:12
A tiny command line interface to Viscosity
#!/usr/bin/env bash
run_list() {
osascript <<OSA
tell application "Viscosity"
repeat with theConnection in connections
set theName to name of theConnection
set theState to state of theConnection
log theName & ": " & theState
end repeat
@CarsonF
CarsonF / composer.sh
Last active January 19, 2024 11:10
Global Composer Setup
#!/usr/bin/env bash
# As root
# Make config and data dirs
mkdir /etc/composer -p || exit 1
mkdir /var/lib/composer -p
# Set composer home dir to global location
cat << EOF > /etc/profile.d/composer.sh
#!/usr/bin/env bash
@versluis
versluis / webError.m
Created August 1, 2012 16:24
How to handle an error while loading a UIWebView
- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error {
[self.spinningWheel stopAnimating];
UIApplication *application = [UIApplication sharedApplication];
application.networkActivityIndicatorVisible = NO;
UIAlertView *infoMessage;
infoMessage = [[UIAlertView alloc]
initWithTitle:@"The internet is broken" message:@"Looks like there's a problem with your internet connection. Please check and try again later."
delegate:self cancelButtonTitle:@"Bloody technology!" otherButtonTitles:nil];