Skip to content

Instantly share code, notes, and snippets.

View HinchK's full-sized avatar

.: HinchK :. HinchK

View GitHub Profile
@HinchK
HinchK / auth-hook.sh
Last active January 21, 2022 15:18 — forked from li0nel/ssl_certificates.sh
Let's Encrypt certificates
aws route53 wait resource-record-sets-changed --id \
$(aws route53 change-resource-record-sets --hosted-zone-id \
"$(aws route53 list-hosted-zones-by-name --dns-name $2. \
--query HostedZones[0].Id --output text)" \
--query ChangeInfo.Id \
--output text \
--change-batch "{ \
\"Changes\": [{ \
\"Action\": \"$1\", \
\"ResourceRecordSet\": { \
@elpy1
elpy1 / setup.md
Created May 11, 2020 02:13
quick setup guide for ssm-tool

ezmode ssh over ssm

quick setup and usage guide for SSH access over SSM to private AWS EC2 instances

Requirements

Installation

  1. git clone https://github.com/elpy1/ssm-tool.git
@laravel-shift
laravel-shift / .php-cs-fixer.php
Last active October 19, 2025 03:29
PHP CS Fixer - Laravel Coding Style Ruleset
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$rules = [
'array_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => [
'default' => 'single_space',
@HinchK
HinchK / DeleteFromList.php
Created March 15, 2019 13:07
Snipe-IT API Sample "Delete Users from a list of their ids"
<?php
/*
* Deleting users, from a file that is just a one-column, \n separated. list of ids
Useing the
_ _ _
(_) (_) |
___ _ __ _ _ __ ___ ___ _| |_
/ __| '_ \| | '_ \ / _ \___| | __|
\__ \ | | | | |_) | __/ | | |_
|___/_| |_|_| .__/ \___| |_|\__| API
@notyal
notyal / stub_status.conf
Last active March 24, 2019 10:10
[nginx] conf.d/stub_status.conf
server {
listen 127.0.0.1:80 default_server;
server_name 127.0.0.1;
location /stub_status {
stub_status on;
access_log off;
allow 127.0.0.1;
deny all;
}
}
@li0nel
li0nel / ssl_certificates.sh
Created March 6, 2018 11:36
Let's Encrypt certificates
# Create a script that will use the AWS Route53 CLI to insert DNS TXT records for Let's Encrypt DNS validation
echo 'aws route53 wait resource-record-sets-changed --id \
$(aws route53 change-resource-record-sets --hosted-zone-id \
"$(aws route53 list-hosted-zones-by-name --dns-name $2.
--query HostedZones[0].Id --output text)" \
--query ChangeInfo.Id
--output text \
--change-batch "{
\"Changes\": [{
\"Action\": \"$1\",
@stefanbuck
stefanbuck / upload-github-release-asset.sh
Last active October 23, 2025 10:14
Script to upload a release asset using the GitHub API v3.
#!/usr/bin/env bash
#
# Author: Stefan Buck
# License: MIT
# https://gist.github.com/stefanbuck/ce788fee19ab6eb0b4447a85fc99f447
#
#
# This script accepts the following parameters:
#
# * owner
@nrollr
nrollr / Commands.sh
Last active August 20, 2024 20:36
Install PHP and NGINX on Amazon Linux AMI
## Install NGINX
## when installing on Amazon Linux AMI, use:
$ sudo yum install nginx -y
## when installing on Amazon Linux 2 AMI, use
$ sudo amazon-linux-extras install nginx1.12 -y
## Install PHP and PHP-FPM
# for PHP version 7.1 use php71 and php71-fpm instead
$ sudo yum install php -y
$ sudo yum install php-fpm -y
@ericelliott
ericelliott / essential-javascript-links.md
Last active June 14, 2025 18:43
Essential JavaScript Links