Skip to content

Instantly share code, notes, and snippets.

Avatar
🙋‍♂️

Sean Knox seanknox

🙋‍♂️
  • San Francisco, CA
View GitHub Profile
View get_user_object_id.sh
#!/bin/bash -e
az ad signed-in-user show --output json > $AZ_SCRIPTS_OUTPUT_PATH
View sidekiq.rb
# More about Sidekiq testing modes:
# https://github.com/mperham/sidekiq/wiki/Testing
require 'sidekiq/testing'
RSpec.configure do |config|
config.before(:example) do |example|
Sidekiq::Worker.clear_all
if example.metadata[:sidekiq] == :fake
Sidekiq::Testing.fake!
View loop-issue.md

Loading...

Use the Share button above save this diagnostic report to aid investigating your problem. Issues can be filed at https://github.com/LoopKit/Loop/issues.

Generated: 2019-05-28 21:48:24 +0000

Loop v1.10.0dev

View individual breakout.md

Iteration: Mar 21 - April 17

Story Cycle time
Create links in tools and integrations article 0.56 day(s)
User can login on iOS 2.21 day(s)
User can pay using PayPal 5.67 day(s)
View azure.json
{
"cloud":"${TARGET_ENVIRONMENT}",
"tenantId": "${TENANT_ID}",
"subscriptionId": "${SUBSCRIPTION_ID}",
"resourceGroup": "${RESOURCE_GROUP}",
"location": "${LOCATION}",
"vmType": "${VM_TYPE}",
"subnetName": "${SUBNET}",
"securityGroupName": "${NETWORK_SECURITY_GROUP}",
"vnetName": "${VIRTUAL_NETWORK}",
View cache.rb
require 'pry'
class Cache
attr_reader :value
attr_reader :version
attr_reader :versions
# we are storing values as Ruby hash values
def initialize(value = {}, version = 0, versions = [])
@value = value
@version = version
View sshd_config
# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
View kube-flannel.yaml
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: flannel
rules:
- apiGroups:
- ""
resources:
- pods
View azure_ips.xml
<?xml version="1.0"?>
<Interfaces>
<Interface MacAddress="000D3A060C65" IsPrimary="true">
<IPSubnet Prefix="10.1.0.0/16">
<IPAddress Address="10.1.0.114" IsPrimary="true"/>
<IPAddress Address="10.1.0.115" IsPrimary="false"/>
<IPAddress Address="10.1.0.116" IsPrimary="false"/>
<IPAddress Address="10.1.0.117" IsPrimary="false"/>
<IPAddress Address="10.1.0.118" IsPrimary="false"/>
<IPAddress Address="10.1.0.119" IsPrimary="false"/>
View iptables-sav.txt
# Generated by iptables-save v1.6.1 on Mon May 7 15:06:25 2018
*filter
:INPUT ACCEPT [172:68334]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [183:40154]
:KUBE-EXTERNAL-SERVICES - [0:0]
:KUBE-FIREWALL - [0:0]
:KUBE-FORWARD - [0:0]
:KUBE-SERVICES - [0:0]
-A INPUT -j KUBE-FIREWALL