Skip to content

Instantly share code, notes, and snippets.

View lmayorga1980's full-sized avatar

lmayorga lmayorga1980

  • Spearfishing Co.
  • Bahamas
View GitHub Profile
@ECHO OFF
REM -- Automates cygwin installation
SETLOCAL
REM -- Change to the directory of the executing batch file
CD %~dp0
REM -- Configure our paths
SET SITE=http://mirrors.kernel.org/sourceware/cygwin/
@byplayer
byplayer / git ignore ssl verify
Created January 12, 2012 07:31
git ignore ssl verify
export GIT_SSL_NO_VERIFY=true
@Bekbolatov
Bekbolatov / tmux.md
Last active October 7, 2024 04:03
Clean tmux cheat-sheet

Clean tmux cheat-sheet

By resources

sessions

list-sessions        ls         -- List sessions managed by server
new-session          new        -- Create a new session
@luhn
luhn / cleanup.py
Last active March 12, 2023 11:54
An AWS Lambda function to delete old AMIs.
"""
Code adapted from and inspired by http://blog.ranman.org/cleaning-up-aws-with-boto3/.
"""
import os
import re
from datetime import datetime, timedelta
import boto3
# Create a profile (cookbook)
inspec init profile SQLServerSecurity
# check profile is valid
insec check SQLServerSecurity
# Run single inspec.rb file
inspec exec mytest.rb
# Run a profile
@ottokruse
ottokruse / buildspec.yaml
Created January 11, 2022 13:34
AWS CLI assume role in AWS CodeBuild through ECS credentials
version: '0.2'
phases:
build:
commands:
- |
cat << EOF > aws_config
[profile test]
role_arn = arn:aws:iam::123456789012:role/my-role-to-assume
role_session_name = IntegrationTest
credential_source = EcsContainer