A Pen by Barrett Sonntag on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$amiInfo = aws ec2 describe-images --owners self --query 'Images[*].{ImageId:ImageId, CreationDate:CreationDate, Name:Name}' --output json | ConvertFrom-Json | |
$amiResults = @() | |
# $count = $amiInfo.Length; | |
# Write-Host "getting data for $count AMIs" | |
foreach ($ami in $amiInfo) { | |
$amiId = $ami.ImageId | |
$creationDate = $ami.CreationDate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function CallWhenDoneFunc { | |
$mergedCmd = $args -join " " | |
Invoke-Expression $mergedCmd | |
# use content in payload for discord instead of text | |
$hookUrl = "https://hooks.slack.com/services/yoururlgoeshere" | |
$content = "Finished $mergedCmd" | |
$payload = [PSCustomObject]@{ | |
text = $content | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELIMITER ;; | |
DROP PROCEDURE IF EXISTS Delete_roletouser_Duplicates;; | |
CREATE PROCEDURE Delete_roletouser_Duplicates() | |
BEGIN | |
DECLARE lmt INT DEFAULT 0; | |
DECLARE done INT DEFAULT 0; | |
DECLARE _role_id CHAR(36); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by Barrett Sonntag barretts@github on 3/2/2015. | |
* http://www.sosuke.com/writing-custom-extensions-for-the-remarkable-javascript-markdown-parser | |
* | |
* A plugin tutorial for Remarkable https://github.com/jonschlinkert/remarkable | |
*/ | |
var markdownParser = new Remarkable(); | |
// open links in new windows |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# Usage | |
# 0 * * * * /home/badguy90/bin/change_detection.py | |
from bs4 import BeautifulSoup | |
from selenium import webdriver | |
from selenium.webdriver.chrome.options import Options | |
import difflib | |
import hashlib |
Guide to Caveman Debugging Complex Systems
- Generally state the issue you want to debug
- Specifically identify the answer you seek from the debugging
- List all possible points of failure in the system
- Identify the minimum components required to debug the issue
- Remove all possible points of failure not part of the minimum component list
- Test the issue on this minimum setup. Does it work or not?
If the sytem does not work in the minimum setup you should begin replacing components with others that are known to work.
- Start by switching out the component in question in this issue with one that works
You may at any point in the checklist need to backtrack when making code corrections and adjustments.
- read the issue
- re-read the issue making sure you understand every line, note any questions
- create a list of the features required by this issue (fields, elements, page content)
- if you have any outstanding questions reach out to clarify your concerns adjusting your list as necessary
Grab a new issue (ex: #2468
) from HuBoard's Next Actions
column self assign it and move it to the Development
column
Make branch based of the issue number proceeded by x-
: git checkout -b x-2468
Finish the issue
Run unit tests: bundle exec rake test:unit
Run interaction tests from Visual Studio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServerRole -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServer -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-CommonHttpFeatures -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-StaticContent -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-DefaultDocument -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-DirectoryBrowsing -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-HttpErrors -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-HttpRedirect -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-ApplicationDevelopment -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-ASP -All |
NewerOlder