Skip to content

Instantly share code, notes, and snippets.

@bsiegel
bsiegel / index.html
Created November 19, 2019 22:59
dependencygraph
<!DOCTYPE html>
<html lang="en">
<head>
<title>Dependency Graph</title>
<meta charset="utf-8">
<script src="https://cdn.jsdelivr.net/npm/cytoscape@3.11.0/dist/cytoscape.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dagre/0.8.4/dagre.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/cytoscape-dagre@2.2.2/cytoscape-dagre.min.js"></script>
<script type="application/javascript">
const renderGraph = (data) => {
@bsiegel
bsiegel / index.html
Created July 31, 2019 03:02
dependency-report-js
<!DOCTYPE html>
<html>
<head>
<title>Azure-sdk-for-js Dependency Report</title>
<meta charset="UTF-8" />
<style>
body {
font-family: Verdana, sans-serif;
font-size: 14px;
@bsiegel
bsiegel / blacklist
Last active March 4, 2024 18:04
diversion_hosted
127.0.0.1 cdn.staticneo.com
127.0.0.1 clarium.global.ssl.fastly.net
127.0.0.1 ib.adnxs.com
127.0.0.1 lgad.cjpowercast.com.edgesuite.net
127.0.0.1 manifest.googlevideo.com
127.0.0.1 ngfts.lge.com
127.0.0.1 pagead2.googlesyndication.com
127.0.0.1 wms-na.assoc-amazon.com
@bsiegel
bsiegel / index.html
Last active June 22, 2019 01:05
dependency-report-net
<!DOCTYPE html>
<html>
<head>
<title> Dependency Report</title>
<meta charset="UTF-8"/>
<style>
body {
font-family: Verdana, sans-serif;
font-size: 14px;
@bsiegel
bsiegel / Monokai.minttyrc
Created June 19, 2019 23:50
Monokai.minttyrc
Black= 22, 22, 22
Red= 236, 57, 43
BoldGreen= 179, 228, 57
BoldYellow= 254, 165, 37
BoldBlue= 207, 163, 255
BoldMagenta= 253, 66, 133
BoldCyan= 118, 223, 243
BoldWhite= 244, 244, 244
Green= 179, 228, 57
Yellow= 255, 166, 37
@bsiegel
bsiegel / post.md
Last active June 12, 2019 20:31
Power usage improvements in Firefox 67

Power usage improvements in Firefox 67

WebGL is a technology used to render 3D graphics on the web. This technology shows up in more places than you might expect - one common example is Google Maps which uses WebGL to render the map. When a site uses WebGL, it can optionally specify the 'powerPreference' option to request that browser render the content using the high-performance dedicated GPU or the low-power integrated GPU in a device such as a laptop which contains both.

Firefox defaults to high-performance mode if the site does not specify, which can use a lot of power because. Firefox 67 includes some new about:config flags that can be used to customize and improve the power usage of the browser when WebGL is active:

  • gl.allow-high-power (default true) This setting can be set to false to force the browser never to use the high-performance GPU when rendering WebGL content.

  • webgl.default-low-power (default false)

diff --git a/sdk/servicebus/service-bus/src/connectionContext.ts b/sdk/servicebus/service-bus/src/connectionContext.ts
index 968a3e85..f81ebb12 100644
--- a/sdk/servicebus/service-bus/src/connectionContext.ts
+++ b/sdk/servicebus/service-bus/src/connectionContext.ts
@@ -11,7 +11,8 @@ import {
CreateConnectionContextBaseParameters,
Dictionary,
delay,
- TokenProvider
+ TokenProvider,
diff --git a/sdk/servicebus/service-bus/test/testUtils.ts b/sdk/servicebus/service-bus/test/testUtils.ts
index dbc74573..4fe78608 100644
--- a/sdk/servicebus/service-bus/test/testUtils.ts
+++ b/sdk/servicebus/service-bus/test/testUtils.ts
@@ -194,54 +194,42 @@ export function getEnvVars(): { [key: string]: string } {
async function recreateQueue(queueName: string, parameters: SBQueue): Promise<void> {
const env = getEnvVars();
- await msRestNodeAuth
- .loginWithServicePrincipalSecret(env.clientId, env.clientSecret, env.tenantId)
<!DOCTYPE html>
<html>
<head>
<title>Azure-sdk-for-python Dependency Report</title>
<meta charset="UTF-8"/>
<style>
body {
font-family: Verdana, sans-serif;
font-size: 14px;
text-size-adjust: none;
@bsiegel
bsiegel / meraki_strongswan_notes.md
Last active December 21, 2018 11:40 — forked from psanford/meraki_strongswan_notes.md
connect to meraki client vpn from strongswan (ubuntu 16.04 edition)

These are my notes for connecting to a meraki client vpn from ubuntu 16.04. This configuration assumes you are using a psk for the ipsec auth.

Install the following packages:

apt-get install -y strongswan xl2tpd

Configure strong swan