Skip to content

Instantly share code, notes, and snippets.

View DevinNorgarb's full-sized avatar
🙃

Devin Norgarb DevinNorgarb

🙃
View GitHub Profile
@DevinNorgarb
DevinNorgarb / README.md
Created January 15, 2022 23:32 — forked from triangletodd/README.md
k3s in LXC on Proxmox

On the host

Ensure these modules are loaded

cat /proc/sys/net/bridge/bridge-nf-call-iptables

Disable swap

sysctl vm.swappiness=0
swapoff -a
@rssnyder
rssnyder / oracle-cloud-free-tier-guide.md
Last active November 9, 2024 18:47
oracle-cloud-free-tier-guide

how to leverage oracle's temping offers

free tier limits

The limits of the free tier say that you can create up to 4 instances.

  • x2 x86 instances (2core/1g)
  • x2 ampere instances (with 4core/24g spread between them)
  • 200GB total boot volume space across all intances (minimum of 50G per instance)

create your account

@leocarmo
leocarmo / Dockerfile
Created March 8, 2021 14:13
Dockerfile production ready with Alpine, PHP, Kafka, Swoole, Lumen/Laravel
FROM php:8.0.1-cli-alpine3.13
ARG APPLICATION_PATH=/application
ARG CONFIGS_PATH=/docker/php
LABEL maintainer="Leonardo Carmo <[email protected]>"
# install dependecies
RUN apk add --no-cache \
bash \
@triangletodd
triangletodd / README.md
Last active November 11, 2024 23:01
k3s in LXC on Proxmox

On the host

Ensure these modules are loaded

cat /proc/sys/net/bridge/bridge-nf-call-iptables

Disable swap

sysctl vm.swappiness=0
swapoff -a
@MayankFawkes
MayankFawkes / sources.list
Created August 6, 2020 03:13
Ubuntu 20.04 LTS (ARM64) (Focal Fossa) -- Full sources.list
deb http://ports.ubuntu.com/ubuntu-ports focal main restricted universe multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports focal main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports focal-updates main restricted universe multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports focal-updates main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports focal-backports main restricted universe multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports focal-backports main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports focal-security main restricted universe multiverse
@BaksiLi
BaksiLi / analyse.py
Created May 18, 2020 00:22
Visualize WakaTime statistics data in a decent way
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from argparse import ArgumentDefaultsHelpFormatter, ArgumentParser
from time import localtime
import plotly.graph_objects as go
def read_from(fpath):
@bachhuberdesign
bachhuberdesign / laracasts_scraper.py
Last active June 28, 2021 19:39
Scraper for Laracasts videos -- requires active Laracasts subscription (see comments in code).
######################################################
# Laracasts Video Scraper #
# #
# Author: Eric Bachhuber #
# #
# Video files will be output to folder 'Laracasts' #
# wherever the script is run from. #
# #
# Possibly violates the terms of service, so use #
# at your own risk. #
@icy
icy / pfSense as an OpenVPN client.md
Created September 7, 2019 05:31 — forked from icybin/pfSense as an OpenVPN client.md
pfSense as an OpenVPN client

#pfSense as an OpenVPN client for specific devices

##Introduction One of the most powerful features of pfSense is it’s ability to direct your data requests through different end-points using NAT rules. pfSense is amazing as an OpenVPN client because it can selectively route any device on the network through the VPN service (i.e., my tablets and TV go through US servers, while my smartphone, VoIP, computers go my local ISP).

This setup becomes extremely handy for use with applications which are not aware of OpenVPN protocol, eg. download managers, torrent clients, etc. Expecting privacy you should be positive that traffic won't go through your ISP's gateway in case of failure on side of VPN provider. And obviously OpenVPN client should automatically reconnect as soon as service goes live again.

Note: This How-To is meant for pfSense 2.1.x. For those using 2.2 Beta, there is a bug that prevents this from working. Read about here in the pfSense forum thread, “[cannot NAT trough OPT1 interface on multiw

@whoisryosuke
whoisryosuke / telescope-for-staging.md
Created August 9, 2019 17:38
Laravel / Telescope - Enable telescope for a staging or other environment - via: https://github.com/laravel/telescope/issues/76

If you've been following the instructions in the section "Installing Only In Specific Environments" you'll need to ensure that you update your AppServiceProvider accordingly, e.g.

    public function register()
    {
    	if ($this->app->environment('local') || $this->app->environment('staging')) {
    		$this->app->register(TelescopeServiceProvider::class);
    	}
    }
@isauravmanitripathi
isauravmanitripathi / outputbuffering.txt
Last active April 5, 2019 11:17
output buffering in php
ob_start();
print "Hello First!\n";
ob_end_flush();
ob_start();
print "Hello Second!\n";
ob_end_clean();
ob_start();
print "Hello Third\n";
// reusing buffers