Skip to content

Instantly share code, notes, and snippets.

View kpheasey's full-sized avatar

Kevin Pheasey kpheasey

View GitHub Profile
@kpheasey
kpheasey / dropdown.html
Created November 13, 2017 19:00
ace dropdown widget
<li id="download_basket"><a class="dropdown-toggle" data-toggle="dropdown" href="#">
<i class="ace-icon fa fa-download"></i>
<span class="badge">1</span>
</a>
<ul class="dropdown-menu-right dropdown-navbar dropdown-menu dropdown-caret dropdown-close ui-sortable" id="sortable" style="">
<li class="dropdown-header">
<i class="ace-icon fa fa-file-text-o"></i>
<span class="count">1</span>
Reports in the basket
</li>
@kpheasey
kpheasey / iam-policy.json
Created April 10, 2018 15:28
Rails S3 IAM Policy - manage objects in S3
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::kp-software"
@kpheasey
kpheasey / 0000_packages.config
Last active September 16, 2019 21:56 — forked from gcarrion-gfrmedia/0000_packages.config
AWS Elastic Beanstalk Ruby 2.2 Puma Sidekiq
packages:
yum:
git: []
htop: []
@kpheasey
kpheasey / Logger.js
Created February 2, 2020 19:49
Sentry Logger
import * as Sentry from 'sentry-expo';
const log = (message, level) => {
console.log(message);
Sentry.addBreadcrumb({
message,
level,
})
};
@kpheasey
kpheasey / setup.md
Last active March 22, 2022 20:13
WSL, RVM & RubyMine; ubuntu on windows, bash on windows

Add inbound firewall rule for TCP 2222

  • Windows 10 has 2 new services, SSH Server Proxy and SSH Server Broker which will already be bound to port 22
  • Do not allow public connection on this rule, WSL is not proven safe

ConEmu

Add as cmd startup with bash.exe --login

Install the SSH server and some Rails essentials libraries in bash

sudo apt-get update && sudo apt-get upgrade -y
@kpheasey
kpheasey / ark_instance.sh
Last active July 27, 2023 20:12
DO Ubuntu 14.04 Droplet to ARK Server
#!/bin/bash
# Updating Ubunut
echo "updating ubunutu... please be patient"
apt-get update && apt-get upgrade -y
echo "installing required packages... please be patient"
apt-get install htop lib32gcc1 -y
# Create steam user if needed