Skip to content

Instantly share code, notes, and snippets.

View ascdso2020's full-sized avatar

Aries Systems Consulting, LLC ascdso2020

View GitHub Profile
@ascdso2020
ascdso2020 / AWSDevOpsStudyNotes
Created May 7, 2024 19:06 — forked from ejlp12/AWSDevOpsStudyNotes
AWS DevOps Engineer Professional Study Notes
CI & CD:
========
2 core software development processes
CI process of automating regular code commits followed by an automated build and test process designed to highlight intergration issues early.
Additional tooling and functionality provided by Bamboo, CruiseControl, Jenkins, Go and TeamCity etc.
workflow based
CD takes the form of a workflow based process which accepts a tested software build payload from a CI server. Automates the deployment into a working QA, Pre-prod or Prod environment.
AWS CodeDeploy and CodePipeline provide CI/CD services
Elasticbeanstalk and CFN provide functionality which can be utilized by CI/CD servers.
####################################################
# Installing The Windows Subsystem for Linux (WSL) #
####################################################
# Only if Windows
sudo apt-add-repository ppa:git-core/ppa
# Only if Windows
sudo apt update
@ascdso2020
ascdso2020 / Debian-apt-get-contrib-non-free.md
Created July 11, 2020 15:35 — forked from ChristopherA/Debian-apt-get-contrib-non-free.md
How to enable contrib and non-free repos in Debian

As root you need to edit /etc/apt/sources.lst

Then add contrib and non-free at the end of each line that begins with deb and deb-src just like the example:

deb http://http.us.debian.org/debian jessie main contrib non-free

deb http://security.debian.org jessie/updates main contrib non-free
@ascdso2020
ascdso2020 / DisableGuestAccount.applescript
Created July 7, 2020 20:08 — forked from justinpawela/DisableGuestAccount.applescript
Disable macOS Guest user account script
#!/usr/bin/osascript
-- License: https://justinpawela.github.io/default-gist-license/
(*
1) Disables signing in as Guest from the login screen.
2) Disables Guest access to file shares over AFP.
3) Disables Guest access to file shares over SMB.
Commands are chained together so that the user only needs to authorize once.
*)
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@ascdso2020
ascdso2020 / mac-upgrade.sh
Created February 17, 2020 23:15 — forked from arturmartins/mac-upgrade.sh
How to keep your mac software updated easily (2019)
#!/bin/bash
# Requirements:
# - homebrew: https://brew.sh/
# - homebrew tap: buo/cask-upgrade - https://github.com/buo/homebrew-cask-upgrade
# - homebrew mas (Mac App Store command-line interface - https://github.com/mas-cli/mas)
# Update, upgrade all and cleanup
brew update && brew upgrade && brew cu --all --yes --cleanup && mas upgrade && brew cleanup
# Dump all taps, apps, casks and mac apps into ~/Brewfile
@ascdso2020
ascdso2020 / web-servers.md
Created January 7, 2020 00:21 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@ascdso2020
ascdso2020 / playbook_centos_install_docker.yaml
Created January 1, 2020 20:48 — forked from yonglai/playbook_centos_install_docker.yaml
An Ansible playbook to install docker-ce on Centos
---
- name: Install docker
gather_facts: No
hosts: default
tasks:
- name: Install yum utils
yum:
name: yum-utils
state: latest
@ascdso2020
ascdso2020 / VSCode-extensions
Created December 18, 2019 20:38 — forked from deepu105/VSCode-extensions
VSCode plugins I use
code --install-extension QassimFarid.ejs-language-support
code --install-extension SirTori.indenticator
code --install-extension TimonVS.ReactSnippetsStandard
code --install-extension TwentyChung.jsx
code --install-extension abusaidm.html-snippets
code --install-extension asvetliakov.move-imports
code --install-extension aws-scripting-guy.cform
code --install-extension bierner.markdown-preview-github-styles
code --install-extension ccitiriga.TSMethodCreator
code --install-extension christian-kohler.npm-intellisense
@ascdso2020
ascdso2020 / Copy Bitbucket repo to GitHub.md
Created September 24, 2019 03:11 — forked from lsloan/Copy Bitbucket repo to GitHub.md
Copy Bitbucket repo to GitHub

Copy Bitbucket repo to GitHub

Whenever possible, use GH's "Import repository" feature.

The import feature doesn't always work, though. In my experience, I tried to import a repo and it failed with a generic message. I had to contact GH support to ask for help. They told me my repo had a large file (>100MB), which couldn't be added to GH directly. I had to either remove the file or store it in GH LFS. In this case, one of the CLI methods below are needed:

CLI: Copy the master branch only (OK)