Skip to content

Instantly share code, notes, and snippets.

View wurmr's full-sized avatar
💭
🚀

Jim Karg wurmr

💭
🚀
View GitHub Profile
@wurmr
wurmr / starship.toml
Created February 5, 2024 21:23
starship.toml
# ~/.config/starship.toml
add_newline = true
command_timeout = 1000
format = """
$os$username$hostname$kubernetes$directory$git_branch$git_status
[#](bold green) """
# Drop ugly default prompt characters
[character]
@wurmr
wurmr / sampleblog.md
Created January 5, 2023 22:18
write a blog post on how to use VSCode dev containers to write nodejs applications

Using VSCode Dev Containers to Write Node.js Applications

As a developer, it's important to have a consistent and reliable development environment. This can be especially challenging when working with different languages and technologies, as each may have its own specific dependencies and setup requirements. One way to ensure a consistent development environment is to use a tool called a "dev container."

In this post, we'll look at how to use Visual Studio Code's dev containers to write Node.js applications.

What are Dev Containers?

Dev containers are lightweight, disposable development environments that are built using Docker containers. They allow you to isolate your development environment from your host machine, ensuring that you have a consistent environment regardless of where you are working.

Setting Up a Dev Container

@wurmr
wurmr / InstallPiZero.md
Last active November 27, 2020 16:50
Pool Monitor Install on Pi Zero

Installation Steps for Pi Zero W

Install Node

Node 10.x is the latest version of node that works on the arm6 of the Pi Zero

Get the latest distrobution here https://nodejs.org/dist/latest-v10.x/ and run commands like below:

$ wget https://nodejs.org/dist/latest-v10.x/node-v10.23.0-linux-armv6l.tar.xz
@wurmr
wurmr / main.rs
Created March 15, 2018 20:00
Rust variable shadowing, why?
fn main() {
let foo = 3;
println!("{}", foo);
let foo = "hi";
println!("{}", foo);
let mut foo = 2.3;
println!("{}", foo);
@wurmr
wurmr / _ComcastAlert.js
Last active August 7, 2017 19:31
This is the trash that Comcast is injecting into non SSL webpages to show important messages.
// Copyright (C) 2015 Comcast Cable Communications, LLC
// Contact Us: http://customer.xfinity.com/contact-us/
// Intended use of this message is to display critical and time sensitive notifications to customers.
/*
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
@wurmr
wurmr / chrome56.js
Created February 28, 2017 21:25
babel output difference between chrome56 and ie9
'use strict';
require('core-js/modules/es7.string.pad-start');
require('core-js/modules/es7.string.pad-end');
require('core-js/modules/web.timers');
require('core-js/modules/web.immediate');
@wurmr
wurmr / .babelrc
Last active October 25, 2017 03:23
babel-polyfill transpile output for ie9
{
"presets": [
["env", {
"targets": {
"browsers": ["last 2 versions", "ie >= 9"]
},
"useBuiltIns": true
}]
]
}
@wurmr
wurmr / SwiftDateFormat.swift
Created November 6, 2015 20:08
iOS Date Bug
//: Playground - noun: a place where people can play
import UIKit
let components = NSDateComponents()
components.year = 2015
components.month = 12
components.day = 28
let date = NSCalendar.currentCalendar().dateFromComponents(components)
@wurmr
wurmr / index.js
Created June 4, 2015 04:18
Sonos Subscribe Example client
var Discovery = require('sonos-discovery');
process.env.DISCOVERY_LOG_LEVEL = 'error';
var discovery = new Discovery();
setTimeout(function() {
discovery.getPlayer('office').on('transport-state', function (data) {
console.log('transport-state', data.roomName, data.state.playerState);
});
}, 500);
@wurmr
wurmr / .eslintrc
Created May 15, 2015 14:59
Standard ESLint file
{
"ecmaFeatures": {
"arrowFunctions": true,
"binaryLiterals": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"forOf": true,
"generators": true,
"objectLiteralComputedProperties": true,