210-400-2340
[email protected]
linkedin.com/in/knight1776
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
source ~/.profile | |
# Docker | |
# Simply use 'dka' to stop and delete all containers and images | |
alias dka='dkc;dki;dkv' | |
alias dkc='docker ps -aq | xargs docker rm -f' | |
alias dki='docker images -aq | xargs docker rmi -f' | |
alias dkv='docker volume ls -qf dangling=true | xargs docker volume rm' | |
# Git |
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
#!groovy | |
import jenkins.model.* | |
import hudson.security.* | |
import jenkins.security.s2m.AdminWhitelistRule | |
import hudson.security.csrf.DefaultCrumbIssuer | |
import jenkins.security.s2m.AdminWhitelistRule | |
def instance = Jenkins.getInstance() | |
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
using UnityEngine; | |
using System.Collections.Generic; | |
using UnityEditor; | |
public class CloneGameObject : ScriptableWizard | |
{ | |
public GameObject firstObjectToClone; | |
public GameObject secondObjectToClone; | |
public GameObject parentObjectForClones; | |
public int xCount = 1; |
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
--- | |
# | |
# Settings Parameter Names for the Filecloud Admin API | |
# For reference: | |
# https://medium.com/@eddieknight_1896/filecloud-api-getting-started-56b1ec25e3c2 | |
# https://www.getfilecloud.com/apidocs/fcadmin/adminapi/doc/index.html#api-Settings_Related_API | |
# | |
admin_settings: | |
# Server Settings | |
- TONIDOCLOUD_SERVICENAME |
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
import requests | |
from bs4 import BeautifulSoup, element | |
class Fetcher(): | |
def __init__(self, base, endpoint=None): | |
self.base = base | |
self.endpoint = endpoint | |
def url(self): |
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
import random | |
class deck_builder(): | |
suit = [ | |
"A", "K", "Q", "J", | |
"10", "9", "8", | |
"7", "6", "5", | |
"4", "3", "2" | |
] |
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
anchors: | |
tf_init: &tf_init | | |
terraform init -lock=false \ | |
-backend-config="resource_group_name=terraform" \ | |
-backend-config="key=${{ env.TF_BACKEND_KEY }}" \ | |
-backend-config="access_key=${{ secrets.TF_BACKEND_ACCESS_KEY }}" \ | |
-backend-config="storage_account_name=${{ secrets.TF_BACKEND_SA }}" | |
setup_backend_key: &setup_backend_key "githubdeployment.${{ github.event.inputs.environment }}.aks_setup.terraform.tfstate" | |
configure_backend_key: &configure_backend_key "githubdeployment.${{ github.event.inputs.environment }}.aks_configure.terraform.tfstate" |
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
import csv | |
## Player Weapons | |
################# | |
# 2h Weapons Note! | |
# two-handed weapons disable usage of the multi-tool (grapple, interact, repair, etc) | |
# Melee weapons are special two-handed weapons that specialize in ship DEFENSE |
Within one hour, design and implement the behavior of a microwave oven.
It has a numeric keypad and a START button. You are responsible for the logic triggered when any of these buttons is pressed.
- Pressing a numeric key sends your code one digit.
- Pressing START tells your code to start "cooking".
This microwave is not fancy. It cannot be stopped or paused once started. Input cannot be cleared. There is no “quick cook” option.
OlderNewer