This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
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
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
### | |
### 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 | |
### | |
### OR take a look at | |
### https://github.com/HotCakeX/Harden-Windows-Security |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 (); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ============ | |
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
gem 'rack' | |
gem 'mail' | |
gem 'puma' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -o errexit | |
cdi_img="$1" | |
device="${2:-/dev/sr0}" | |
cdirip "$cdi_img" -cdrecord | |
i=1 | |
while true; do |
NewerOlder