Skip to content

Instantly share code, notes, and snippets.

pool:
name: Azure Pipelines
#Your build pipeline references the ‘BuildConfiguration’ variable, which you’ve selected to be settable at queue time. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab, and then select the option to make it settable at queue time. See https://go.microsoft.com/fwlink/?linkid=865971
#Your build pipeline references the ‘BuildConfiguration’ variable, which you’ve selected to be settable at queue time. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab, and then select the option to make it settable at queue time. See https://go.microsoft.com/fwlink/?linkid=865971
steps:
- task: DotNetCoreCLI@2
displayName: Restore
inputs:
command: restore
@chitchcock
chitchcock / 20111011_SteveYeggeGooglePlatformRant.md
Created October 12, 2011 15:53
Stevey's Google Platforms Rant

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real

@austinsonger
austinsonger / AS-Ultimate-Feed.opml
Last active March 28, 2024 14:29
Austin Songer Ultimate RSS Feed (Cyber Security, Vulnerabilities, Threat Intel, and more)
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Austin Songer Ultimate Feed</title>
</head>
<body>
<outline text="InfoSec - Firewall + Network" title="InfoSec - Firewall + Network">
<outline type="rss" text="Keeping It Classless" title="Keeping It Classless" xmlUrl="http://feeds.feedburner.com/keepingitclassless" htmlUrl="http://keepingitclassless.net/"/>
<outline type="rss" text="EtherealMind - Human Infrastructure" title="EtherealMind - Human Infrastructure" xmlUrl="http://feeds.feedburner.com/etherealmind" htmlUrl="http://etherealmind.com"/>
@OrionReed
OrionReed / DOM3D.js
Last active March 28, 2024 14:28
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯
@stewartknapman
stewartknapman / Find what code changed the DOM.md
Last active March 28, 2024 14:28
Find what code changed the DOM

Have you ever tried to track down which piece of javascript modified the DOM? Use a mutationObserver to monitor the DOM for changes. Then run console.trace() inside the callback. This will log a stack trace all the way back to the code that did the DOM modification. Basically copy and paste this code.

@guruevi
guruevi / setup_psrp.yml
Last active March 28, 2024 14:27
This is a quick Ansible script to setup a machine remotely for PSRP with Ansible using PsExec, then switching to PSRP native
- name: Setup Windows machine with Ansible
hosts: all
gather_facts: false
pre_tasks:
- name: Setup WinRM, PSRP
community.windows.psexec:
hostname: '{{ hostvars[inventory_hostname]["ansible_host"] | default(inventory_hostname) }}'
connection_username: '{{ ansible_user }}'
connection_password: '{{ ansible_password }}'
@cassidoo
cassidoo / base-css.md
Created May 4, 2022 06:37
Base CSS for a plain HTML document

If you don't want to deal with styling a mostly text-based HTML document, plop these lines in and it'll look good:

html {
  font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  font-size: 1.3em;
  max-width: 40rem;
  padding: 2rem;
  margin: auto;
 line-height: 1.5rem;
@AndrewFarley
AndrewFarley / generate-random-1gb-csv.py
Last active March 28, 2024 14:27
This simple Python file generates a random massive CSV file efficiently taking almost no RAM while doing so streaming data into your CSV file. I've pre-done the calculation of the rows/columns to the file-size, so you can easily add or remove zeroes from "rows" variable to increase or decrease the size of the file generated
import csv
import random
# 1000000 and 52 == roughly 1GB (WARNING TAKES a while, 30s+)
rows = 1000000
columns = 52
print_after_rows = 100000
def generate_random_row(col):
a = []
@injcristianrojas
injcristianrojas / cybersecurity_feeds.md
Last active March 28, 2024 14:26
RSS/Atom feeds for your Cybersecurity needs