Skip to content

Instantly share code, notes, and snippets.

View brianly's full-sized avatar
🦙
Don't get much time to hack right now due to 👶

Brian Lyttle brianly

🦙
Don't get much time to hack right now due to 👶
View GitHub Profile
@brianly
brianly / install-iis.ps1
Created March 20, 2016 21:15
PowerShell to install more IIS features than normally required. Pare this down for a production environment.
Install-WindowsFeature Web-Server
Install-WindowsFeature Web-Default-Doc
Install-WindowsFeature Web-Dir-Browsing
Install-WindowsFeature Web-Http-Errors
Install-WindowsFeature Web-Static-Content
Install-WindowsFeature Web-Http-Redirect
Install-WindowsFeature Web-Http-Logging
Install-WindowsFeature Web-Custom-Logging
Install-WindowsFeature Web-Log-Libraries
Install-WindowsFeature Web-Request-Monitor
@brianly
brianly / unifi_ubuntu_2004.sh
Last active February 9, 2022 18:24 — forked from davecoutts/unifi_ubuntu_2004.sh
Install Ubiquiti Unifi Controller on Ubuntu 20.04
# Install Ubiquiti Unifi Controller on Ubuntu 20.04.
# As tested on a fresh install of ubuntu-20.04.1-live-server, February 9th 2022.
# Thanks to https://gist.github.com/tmuncks for posting the updated install steps.
sudo apt update
sudo apt install --yes apt-transport-https
echo 'deb https://www.ui.com/downloads/unifi/debian stable ubiquiti' | sudo tee /etc/apt/sources.list.d/100-ubnt-unifi.list
sudo wget -O /etc/apt/trusted.gpg.d/unifi-repo.gpg https://dl.ui.com/unifi/unifi-repo.gpg
@brianly
brianly / docker node tip.txt
Created November 14, 2021 20:56 — forked from rain-1/docker node tip.txt
Easily build NodeJS projects inside a docker container
Here's a quick dockerfile:
----------------8<-------------[ cut here ]------------------
FROM debian:latest
RUN apt-get update && apt-get install -y nodejs npm
----------------8<-------------[ cut here ]------------------
save that as Dockerfile and do: docker build -t node-builder .
@brianly
brianly / Solarized Dark.xml
Created January 16, 2012 18:47
Solarized Dark for PyCharm (Brian's edits of https://github.com/jkaving/intellij-colors-solarized)
<?xml version="1.0" encoding="UTF-8"?>
<scheme name="Solarized Dark" version="1" parent_scheme="Default">
<option name="LINE_SPACING" value="1.0" />
<option name="EDITOR_FONT_SIZE" value="14" />
<option name="EDITOR_FONT_NAME" value="Consolas" />
<colors>
<option name="ADDED_LINES_COLOR" value="" />
<option name="ANNOTATIONS_COLOR" value="2b36" />
<option name="ANNOTATIONS_MERGED_COLOR" value="" />
<option name="CARET_COLOR" value="dc322f" />
<#
Copyright 2014 Microsoft
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@brianly
brianly / amznymous.md
Created May 21, 2020 19:44 — forked from bricker/amznymous.md
An Amazon Programmer's Perspective (http://pastebin.com/BjD84BQ3)

Originally posted at http://pastebin.com/BjD84BQ3

Trigger warning: mention of suicidal ideation

tl;dr: I burned out as a developer at Amazon at the end of my second year. I’ve since found a healthy and sustainable work-life balance and enjoy work again. I write this to A) raise awareness, especially for new-hires and their families, and B) help give hope and advice to people going through the same at Amazon or other companies.

Hello, world

There’s been no shortage of anecdotes, opinions, and rebuttals regarding Amazon’s corporate culture as of late. I write this not to capitalize on the latest news-feed fad, but to share what I had already written and promptly deleted. I didn’t think anyone would want to hear my story, but it’s apparent people are going through a similar experience and don’t have a voice.

I’m a Software Development Engineer II at Amazon; SDE II basically means a software developer with at least 2–3 years of industry experience. I started at Amazon as an SDE I.

@brianly
brianly / LIMITS.md
Created March 13, 2020 16:48 — forked from keithchambers/LIMITS.md
LIMITS.md

Limits for Microsoft Yammer

This article describes some of the limits that apply to Yammer.

Groups

Feature Maximum limit
Number of users per Office 365 Group 100,000
@brianly
brianly / watchgroup.py
Created April 5, 2019 14:17
Use the Yammer REST API to dump new thread starters. Requires a modern version of Python 3.
import requests
from dataclasses import dataclass
from time import sleep
TOKEN = ''
GROUP_ID = '15824708'
@brianly
brianly / gameoflife.js
Created December 10, 2018 21:27 — forked from ponyta/gameoflife.js
Conway's Game of Life
// source can be found at https://git.chunli.me/life.git/
// For a demo, please see https://chunli.me/life/
// initialization
let canvas = document.querySelector("#canvas");
var ctx = canvas.getContext("2d");
var running = false;
var UPDATE_INTERVAL = 100; // time between updates in ms
var CELL_SIZE = 10; // 10x10px cell size
// game grid size
@brianly
brianly / how_to_take_an_etl_trace.md
Created July 31, 2018 21:31 — forked from nolanlawson/how_to_take_an_etl_trace.md
Instructions for taking an ETL trace for Edge or IE

How to take a trace of a website issue in Edge/IE

Taking a trace

Method 1: Feedback Hub

  1. In Feedback Hub, click "Add new Feedback"
  2. Choose "Microsoft Edge" as the category