Skip to content

Instantly share code, notes, and snippets.

View WillSams's full-sized avatar
🚀

Will Sams WillSams

🚀
View GitHub Profile
@Potherca
Potherca / solutions-stacks.csv
Last active February 14, 2024 04:28
Solution Stack Acronyms
Stack Name Stack Type Operating System / Platform Server Database Language or SDK Framework UI Message Bus / Queue
AMP Web (Backend) Apache MySQL / MariaDB Perl / PHP / Python
BAMP Web (Backend) BSD Apache MySQL / MariaDB Perl / PHP / Python
BAPP Web (Backend) BSD Apache PostgreSQL Perl / PHP / Python
BCHS Web (Backend) BSD SQLite httpd C
DAMP Web (Backend) Darwin Apache MySQL / MariaDB Perl / PHP / Python
ELK Time Series Data Logstash Elasticsearch Kibana
ELKB Time Series Data Logstash Elasticsearch Beats Kibana
FAMP Web (Backend) FreeBSD Apache MySQL / MariaDB Perl / PHP / Python
FWAP Web (Backend) Windows Apache Firebird Perl / PHP / Python
@Nathan-Nesbitt
Nathan-Nesbitt / Installation_neo4j.sh
Created May 13, 2020 05:08
Installing Neo4j on Ubuntu
# For the most up to date information and installation process,
# go to https://neo4j.com/docs/operations-manual/current/installation/linux/debian/#debian-installation
# Get the debian package from neo4j
wget -O - https://debian.neo4j.com/neotechnology.gpg.key | sudo apt-key add -
echo 'deb https://debian.neo4j.com stable latest' | sudo tee -a /etc/apt/sources.list.d/neo4j.list
sudo apt-get update
# Installs neo4j
sudo apt-get install neo4j
@nicolasdao
nicolasdao / aws_serverless_recipes.md
Last active September 26, 2023 17:17
Recipes for AWS Lambda with Serverless Framework. A series of recipes to get shit done using the Serverless Framework. Keywords: serverless recipe code recipes lambda lambdas function
@billgeek
billgeek / -Generic Repository Pattern in VBNet.md
Last active December 1, 2023 11:13
Generic Repository Pattern in VB.NET

Creating a Generic Repository Pattern (VB.NET)

The below example shows how to implement a Repository of objects in a generic fashion. (This is the VB.NET version of my previous GIST) This was adapted and simplified from this article: https://code.msdn.microsoft.com/generic-repository-pattern-ddea2262

Overview

The point of this code is to allow the generic access to any object type in the datastore without the need to define a repository for each object. It is important to note that, although the below examples should work as is, it is recommended to make use of a dependency injection framework as database connection limits are not considered.

@alirobe
alirobe / reclaimWindows10.ps1
Last active April 26, 2024 17:59
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
###
@harry-cpp
harry-cpp / Game1.cs
Created December 27, 2015 12:42
VSCode + MonoGame
class Game1 : Game
{
protected override void LoadContent()
{
#if DEBUG
var proc = new Process();
proc.StartInfo.FileName = "/bin/bash";
proc.StartInfo.Arguments = "-c \"wmctrl -r 'Terminal' -b add,below && wmctrl -r '" + Window.Title + "' -b add,above\"";
proc.StartInfo.UseShellExecute = false;
proc.Start ();
@michaelkarrer81
michaelkarrer81 / saltstack.sh
Last active March 29, 2022 08:41
[Saltstack Cheat Sheet] #saltstack
# ============
# COMMON TASKS
# ============
# Run state.sls file on minion(s)
salt -G 'os:Ubuntu' state.apply ubuntu1401 # Formula file name without .sls at the end
salt -G 'os:Ubuntu' state.apply ubuntu1401 test=True # Test only (dryrun)
salt -G "minion_roles:ONLINE" state.apply execute_script_example pillar='{"single_instance_update": "aiat"}'
# Webhook state.sls example
@adamcrown
adamcrown / Gemfile
Created November 5, 2015 07:03
A basic mailer API intended to be used as a contact form backend for a static site.
source 'https://rubygems.org'
gem 'rack'
gem 'mail'
gem 'puma'
@michaelkarrer81
michaelkarrer81 / git_tricks
Last active January 31, 2019 20:37
[GIT Installation and Configuration] Git installation and configuration options #git
#!/usr/bin/env bash
# https://medium.com/@porteneuve/mastering-git-submodules-34c65e940407#.3o6drt47o
# http://blogs.atlassian.com/2013/03/git-submodules-workflows-tips/#scenarios
# http://stackoverflow.com/questions/2144406/git-shallow-submodules
# -----------------
# INSTALL AND SETUP
# -----------------
# https://github.com/bobthecow/git-flow-completion/wiki/Install-Bash-git-completion
@Tatsh
Tatsh / burn-cdi.sh
Last active December 16, 2016 14:59
Burn a CDI (not by me)
#!/usr/bin/env bash
set -o errexit
cdi_img="$1"
device="${2:-/dev/sr0}"
cdirip "$cdi_img" -cdrecord
i=1
while true; do