Skip to content

Instantly share code, notes, and snippets.

View mrjosh's full-sized avatar
It's always coffee time

BetterCallJosh mrjosh

It's always coffee time
View GitHub Profile
mullvad_wireguard:
image: ghcr.io/mrjosh/wireguard:latest
container_name: mullvad_wireguard
ports:
- 13232:13232/udp # wireguard wg0
- 9586:9586/tcp # wireguard exporter
- 9091:9091/tcp # wireguard tun0 network metrics
- 3000:3000/tcp # grafana
- 50364:50364 # outline-shadowbox
- 31444:31444/tcp # outline-manager
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on vmbr0, link-type EN10MB (Ethernet), capture size 262144 bytes
19:55:56.443747 IP 10.4.4.2.6680 > 10.2.3.103.443: Flags [P.], seq 2089923922:2089923973, ack 381793795, win 2048, options [nop,nop,TS val 356738369 ecr 1353518753], length 51
19:55:56.444518 IP 10.2.3.103.443 > 10.4.4.2.6680: Flags [P.], seq 1:220, ack 51, win 502, options [nop,nop,TS val 1353528175 ecr 356738369], length 219
19:55:56.444614 IP 10.2.3.103.443 > 10.4.4.2.6680: Flags [P.], seq 220:251, ack 51, win 502, options [nop,nop,TS val 1353528175 ecr 356738369], length 31
19:55:56.545735 IP 10.4.4.2.6680 > 10.2.3.103.443: Flags [.], ack 1, win 2048, options [nop,nop,TS val 356738471 ecr 1353518753,nop,nop,sack 1 {220:251}], length 0
19:55:56.545764 IP 10.4.4.2.6680 > 10.2.3.103.443: Flags [.], ack 251, win 2044, options [nop,nop,TS val 356738471 ecr 1353528175], length 0
19:55:56.623986 IP 10.4.4.2.6680 > 10.2.3.103.443: Flags [P.], seq 51:110, ack 251, wi
stages:
#- quality
#- test
- build
- deploy
- destroy
include:
- local: jobs/.gitlab-ci-general.yml
#- local: jobs/.gitlab-ci-quality.yml
@mrjosh
mrjosh / envoy.yaml
Created July 17, 2021 09:49
envoy.yaml
admin:
access_log_path: /tmp/admin_access.log
address:
socket_address: { address: 0.0.0.0, port_value: 9901 }
static_resources:
listeners:
- name: listener_0
address:
socket_address: { address: 0.0.0.0, port_value: 8080 }

Keybase proof

I hereby claim:

  • I am mrjosh on github.
  • I am iamalirezaj (https://keybase.io/iamalirezaj) on keybase.
  • I have a public key ASD-k9QDiLYnXvdT-O9fDPbh-CgwZnjnsmz0ZwJSw256_Qo

To claim this, I am signing this object:

@mrjosh
mrjosh / terraform-crash.log
Created December 28, 2020 10:28
terraform-crash
This file has been truncated, but you can view the full file.
2020/12/28 13:58:01 [INFO] Terraform version: 0.14.3
2020/12/28 13:58:01 [INFO] Go runtime version: go1.15.2
2020/12/28 13:58:01 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply", "-var-file=prod.tfvars"}
2020/12/28 13:58:01 [DEBUG] Attempting to open CLI config file: /Users/josh/.terraformrc
2020/12/28 13:58:01 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2020/12/28 13:58:01 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2020/12/28 13:58:01 [DEBUG] ignoring non-existing provider search directory /Users/josh/.terraform.d/plugins
2020/12/28 13:58:01 [DEBUG] ignoring non-existing provider search directory /Users/josh/Library/Application Support/io.terraform/plugins
2020/12/28 13:58:01 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins
2020/12/28 13:58:01 [INFO] CLI command args: []string{"apply", "-var-file=prod.tfvars"}
@mrjosh
mrjosh / unixhttpc.go
Created April 7, 2020 17:49 — forked from teknoraver/unixhttpc.go
HTTP over Unix domain sockets in golang
package main
import (
"context"
"flag"
"fmt"
"io"
"net"
"net/http"
"os"
@mrjosh
mrjosh / settings.json
Created April 3, 2020 18:46
VSCode settings Json file
{
"go.formatTool": "goimports",
"go.useLanguageServer": true,
"files.exclude": {
"**/.idea": true
},
"workbench.startupEditor": "none",
"editor.fontSize": 16,
"editor.wordWrap": "on",
"window.zoomLevel": 0,
Remove all <none> images on docker:
```bash
docker rmi -f $(docker images | grep "<none>" | awk "{print \$3}")
```
@mrjosh
mrjosh / fix-steam-microphone-permission-macOS.md
Last active June 19, 2021 19:00
How to: Fix Steam Voice Chat in macOS Mojave and Catalina

How to fix steam microphone permission macOS

Step 1: Disable The System Integrity

  • Disable The System Integrity for access the relevant system database.

Reboot your Mac and hold Cmd+R on startup. This will bring up the Recovery Mode. Open Utility -> Terminal from the menu bar and type csrutil disable Reboot.

Step 2: Manually add permission for Steam to access the microphone.