Skip to content

Instantly share code, notes, and snippets.

View nhalstead's full-sized avatar
👨‍💻
Something. Maybe cool

Noah Halstead nhalstead

👨‍💻
Something. Maybe cool
View GitHub Profile
@Mau5Machine
Mau5Machine / docker-compose.yml
Last active January 18, 2025 00:17
Traefik Configuration and Setup
version: "3.3"
services:
################################################
#### Traefik Proxy Setup #####
###############################################
traefik:
image: traefik:v2.0
restart: always
@duongthanhthai
duongthanhthai / functions.php
Created October 25, 2019 09:18
Remove default admin dashboard widgets (Activity, WordPress News, Quick Draft and At a Glance) from the WordPress admin dashboard for all users.
function remove_dashboard_meta() {
remove_meta_box( 'dashboard_activity', 'dashboard', 'normal' ); // Activity
remove_meta_box( 'dashboard_primary', 'dashboard', 'normal' ); // WordPress News
remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' ); // Quick Draft
remove_meta_box( 'dashboard_right_now', 'dashboard', 'normal' ); // At a Glance
}
add_action( 'admin_init', 'remove_dashboard_meta' );
hostname: centos-2gb-nbg1-1
instance-id: 3449213
local-ipv4: ''
network-config:
config:
- mac_address: 96:00:00:33:00:b1
name: eth0
subnets:
- dns_nameservers:
- 213.133.100.100
@edewaal97
edewaal97 / iCal.php
Last active February 23, 2024 20:35 — forked from seebz/iCal.php
iCal PHP Parser
<?php
// SOURCE: https://gist.github.com/seebz/c00a38d9520e035a6a8c
class iCal
{
/**
* @var string
*/
public $title;
@pirate
pirate / docker-compose-backup.sh
Last active January 26, 2025 23:38
Backup a docker-compose project, including all images, named and unnamed volumes, container filesystems, config, logs, and databases.
#!/usr/bin/env bash
### Bash Environment Setup
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
# https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html
# set -o xtrace
set -o errexit
set -o errtrace
set -o nounset
set -o pipefail
@shyiko
shyiko / weakmap.go
Created June 16, 2019 04:05
go sync/weakmap
package weakmap
import (
"reflect"
"runtime"
"sync"
)
type Key = interface {}
type Value = interface {}
@techouse
techouse / timemachine_exclude_dev_dirs.sh
Last active September 19, 2024 14:18
Instruct Time Machine to exclude some development directories
#!/usr/bin/env bash
# This simple bash script is aimed at excluding some development specific directories.
#
# In this configuration it will instruct Time Machine to exclude directories named:
# - env
# - node_modules
# - vendor
# - venv
#
range id name country status tech maintainer admin source whois_domain updated org rdns_domain domain
185.238.190.244 EU-BUEHL-20190505 Network Europe EU ASSIGNED PA RIPE-NCC-HM-MNT\nKBMT KBAM-RIPE ripe buehl.biz 2019-05-05 ORG-UA346-RIPE 4b42.com
79.175.182.192/26 Mehr-Rayaneh-Tahrir Afranet IR ASSIGNED PA RIPE-NCC-HM-MNT\nAFRA-MNT-NESH-1 AFAR1000-RIPE ripe 2019-05-05 ORG-AA32-RIPE afranet.com
185.238.189.0/24 DE-ALEXANDERKARL-20181010 Alexander Karl DE SUB-ALLOCATED PA akarl-mnt AKA66-RIPE ripe 4b42.com 2019-05-05 ORG-AK100-RIPE akarl.eu
89.184.202.0/24 ANL-SK-CABLE089184202 AnsonNet Bratislava Cable SK ASSIGNED PA RIPE-NCC-HM-MNT\nuk-anl-1-mnt AR38119-RIPE ripe 2019-05-05 ORG-ANL20-RIPE ansonnet.com
12.157.26.64/28 TELECOMP959-26-64 TELECOMP COMPUTER SERVICES IN US REASSIGNMENT OPSEB22440-ARIN OPSEB22440-ARIN arin 2019-05-05 TCSI-106 att.com
12.230.121.32/27 BOBCAT-O148-121-32 BOBCAT OF ST LOUIS US REASSIGNMENT SGO59-ARIN SGO59-ARIN arin 2019-05-05 BOBCA-2 bobcatofstl.com bobcato
@nullthoughts
nullthoughts / LockColumns.php
Created May 2, 2019 16:35
Lock columns/attributes from updates in Laravel
<?php
namespace App\Traits;
trait LockColumns
{
/**
* Cast locked_columns as a JSON column
*
* @return void
@calebporzio
calebporzio / pure_html_css_modal.css
Last active February 28, 2022 18:15
The CSS for the pure HTML/CSS modal I tweeted about.
details summary {
cursor: pointer;
outline: none !important;
display: inline-block;
padding: 8px 12px;
padding-top: 10px;
border-radius: 4px;
overflow: hidden;
background: #F09825;
color: white;