Skip to content

Instantly share code, notes, and snippets.

@bsiegel
bsiegel / index.html
Created Nov 19, 2019
dependencygraph
View index.html
<!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 Jul 31, 2019
dependency-report-js
View index.html
<!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 Apr 12, 2020
diversion_hosted
View blacklist
127.0.0.1 lgad.cjpowercast.com.edgesuite.net
127.0.0.1 ngfts.lge.com
127.0.0.1 manifest.googlevideo.com
@bsiegel
bsiegel / index.html
Last active Jun 22, 2019
dependency-report-net
View index.html
<!DOCTYPE html>
<html>
<head>
<title> Dependency Report</title>
<meta charset="UTF-8"/>
<style>
body {
font-family: Verdana, sans-serif;
font-size: 14px;
View 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 Jun 12, 2019
Power usage improvements in Firefox 67
View post.md

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)

View rollup.diff
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,
View refactor_then_await.patch
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)
View example.html
<!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 Dec 21, 2018 — forked from psanford/meraki_strongswan_notes.md
connect to meraki client vpn from strongswan (ubuntu 16.04 edition)
View meraki_strongswan_notes.md

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

You can’t perform that action at this time.