Skip to content

Instantly share code, notes, and snippets.

View martin-juul's full-sized avatar
🇩🇰
Coding

Martin Juul martin-juul

🇩🇰
Coding
View GitHub Profile
BEGIN MESSAGE.
YOhGaxKGvq4uu1w 9fYvyDHQuc7X0CF v0xtVXEPdydQ02m peDFzNQ7UjnBqP4
DTehWV7RtLrcYm4 yMc9IZlhNYqTCKq 6Xr2MZHgg4V2ewN YTnwJ4fCTBoe8xG
vsjkRv93VT1stqw l5cWQ3EQLXYX4UM RcBgqBPzMzjwOiN UDSOusOOlSlQyuH
o0HuNOBTAuKPv4s U9CPOz67gCRfQTz FfZu50aLMzWSiL.
END MESSAGE.
user nginx;
worker_processes 1;
#Configure Error Logging
error_log /var/log/nginx/error.log info;
#syslog server settings for error logging uncomment and replace remote logging server endpoint below.
#error_log syslog:server=insertsyslogendpoint info;
# Domain Scams
jfgrycwp.blog.cz
sports.com-4daily.top
prameya.com
www.prameya.com
dominiqueansel.com
www.dominiqueansel.com
horentek.it
extensionmetric.com
@martin-juul
martin-juul / restrict.sh
Last active September 24, 2020 19:47
Script for constraining containers on media box. This one is used on a 6c/12t CPU - adjust to your needs.
#!/bin/bash
errexit() {
local err=$?
set +o xtrace
local code="${1:-1}"
echo "Error in ${BASH_SOURCE[1]}:${BASH_LINENO[0]}. '${BASH_COMMAND}' exited with status $err"
# Print out the stack trace described by $function_stack
if [ ${#FUNCNAME[@]} -gt 2 ]
then
@martin-juul
martin-juul / config.txt
Last active April 6, 2020 12:47
Raspbian - Disable Activity and Power LEDs
# Disable the ACT LED.
dtparam=act_led_trigger=none
dtparam=act_led_activelow=off
# Disable the PWR LED.
dtparam=pwr_led_trigger=none
dtparam=pwr_led_activelow=off

Keybase proof

I hereby claim:

  • I am martin-juul on github.
  • I am martinjuul (https://keybase.io/martinjuul) on keybase.
  • I have a public key ASCjbXQ1_ZtVnAdJBCf348wXZVC97TpXkrDWOVpEniyd0Qo

To claim this, I am signing this object:

#!/bin/sh
docker build -t namespace/app:latest --rm --no-cache \
--label org.label-schema.build-date="$(git log -1 --format=%cd --date=iso8601-strict)" \
--label org.label-schema.vcs-ref="$(git rev-parse --short HEAD)" \
--label org.label-schema.version="$(git describe --tags --dirty)" \
--label org.label-schema.name="namespace/app" \
--label org.label-schema.vendor="YourNameOrCompany" .
@martin-juul
martin-juul / Makefile
Created March 21, 2020 13:14 — forked from mpneuried/Makefile
Simple Makefile to build, run, tag and publish a docker containier to AWS-ECR
# import config.
# You can change the default config with `make cnf="config_special.env" build`
cnf ?= config.env
include $(cnf)
export $(shell sed 's/=.*//' $(cnf))
# import deploy config
# You can change the default deploy config with `make cnf="deploy_special.env" release`
dpl ?= deploy.env
include $(dpl)

macOS Developer Box - Up and Running

Below is my personal recommendations on setting up a workable development environment on macOS. This topic is like discussing religion or politics. There's no right answer, only opinions.

If you learned something useful then great! If you think i'm an idiot, then that's cool too! :)

IDE