Skip to content

Instantly share code, notes, and snippets.

definitions:
services:
postgres:
image: postgres:14.6-bullseye
environment:
POSTGRES_USER: 'postgres'
POSTGRES_PASSWORD: '3gXdM!!X9aG49yBN3'
POSTGRES_DB: 'initial'
pipelines:
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command":
{
"action": "copy",
"singleLine": false
@reidsneo
reidsneo / in_array_multi.php
Created February 25, 2021 07:33 — forked from ArneGockeln/in_array_multi.php
php recursive array search for needle. returns path of keys to value or false
<?php
// This function searches for needle inside of multidimensional array haystack
// Returns the path to the found element or false
function in_array_multi( $needle, array $haystack ) {
if ( ! is_array( $haystack ) ) return false;
foreach ( $haystack as $key => $value ) {
if ( $value == $needle ) {
return $key;
} else if ( is_array( $value ) ) {
@reidsneo
reidsneo / README.md
Created November 21, 2020 14:44 — forked from simenbrekken/README.md
Setting up a local wildcard DNS server

#Installation#

First you'll need [dnsmasq][1], assuming you're on OSX installation is simply:

brew install dnsmasq

#Configuration#

Add 127.0.0.1 to to the top of your DNS server list in your Network Configuration:

@reidsneo
reidsneo / apache setup
Last active November 21, 2020 06:18
Server Configuration
<VirtualHost *:443>
ServerName localhost
ServerAlias localhost
ServerAdmin webmaster@localhost
DocumentRoot "/var/www/html/neoblackant.com/public"
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/certificate.pem
SSLCertificateKeyFile /etc/pki/tls/certs/certificatekey.pem
<Directory /var/www/html/neoblackant.com/public>
@reidsneo
reidsneo / Wrapper.php
Created August 18, 2020 07:41 — forked from krisanalfa/Wrapper.php
Tiny Guzzle Wrapper
<?php
namespace Alpha;
use GuzzleHttp\Client;
class Wrapper
{
protected static $client;
@reidsneo
reidsneo / snipped-cxxserver
Last active July 2, 2020 02:07
snipped for cxx server
firewall-cmd --zone=public --permanent --add-port=21/tcp
firewall-cmd --zone=public --permanent --add-service=ftp
firewall-cmd --reload
@reidsneo
reidsneo / centreon issue database
Last active June 12, 2020 01:07
office project
6/12/2020, 09:06:32 Please be note cxx hotspot is missing due poller 1 disk is full, the normalize table is not updated 5-11 june
@reidsneo
reidsneo / cloudSettings
Last active April 23, 2021 08:05
vscode cloud sync
{"lastUpload":"2021-04-23T08:05:13.354Z","extensionVersion":"v3.4.3"}