Skip to content

Instantly share code, notes, and snippets.

@Nilpo
Nilpo / mail_relay.py
Created February 2, 2024 04:16 — forked from ashafer01/mail_relay.py
Drop-in replacement for sendmail -t which relays to gmail smtp, should be easy to adapt to any smtp
#!/usr/bin/env python3
import email
import smtplib
import sys
smtp_address = "smtp.gmail.com"
smtp_port = 587
smtp_user_name = "YOUR_EMAIL@gmail.com"
smtp_password = "YOUR_APP_PASSWORD"
@Nilpo
Nilpo / allow
Created September 16, 2016 01:40 — forked from Mteigers/allow
CSF Allow AND Ignore Cloudflare IPv4 IP's.
for i in `curl https://www.cloudflare.com/ips-v4`; do csf -a $i; done
@Nilpo
Nilpo / post-WSL.md
Created April 1, 2019 06:16 — forked from rkristelijn/post-WSL.md
Installing node via windows subsystem for linux

Overview

Below is a comparison from one of the resources I used. I don't think the comparison is done using the same hardware, but the big take away is that Windows without WSL is a no-go, and Windows WSL underperforms for Linux on bare metal and even Virtual Linux on a Windows Guest. I still have to do this comparison myself using my Udoo with dualboot.

System Performance
Mac Mini 2012 Core i5 10GB RAM 217.6 sec
Windows WSL 335 sec
Linux Mint Bare Metal 182.4 sec
VirtualBox 124 sec
@Nilpo
Nilpo / Ketarin_ParseVersionFromUrl.md
Created February 28, 2023 11:20 — forked from sheldonhull/Ketarin_ParseVersionFromUrl.md
Using Regex in Ketarin to parse textual content from url
@Nilpo
Nilpo / .env
Last active December 7, 2022 18:27 — forked from gilbitron/CaddyController.php
Enabling HTTPS (SSL) for Laravel Sail using Caddy
APP_URL=https://laravel.test
APP_SERVICE=laravel.test
[...]
@Nilpo
Nilpo / GitHub-Forking.md
Created April 24, 2019 06:41 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j

@Nilpo
Nilpo / colors.xml
Last active September 12, 2022 16:50 — forked from drewis/colors.xml
Material design color palettes for Android
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- app color palette -->
<color name="primary">@color/indigo_500</color>
<color name="primary_light">@color/indigo_100</color>
<color name="primary_dark">@color/indigo_700</color>
<color name="accent">@color/pink_A200</color>
<color name="accent_fallback_light">@color/pink_A100</color>
<color name="accent_fallback_dark">@color/pink_A400</color>
@Nilpo
Nilpo / BibleWorksHebrew.md
Last active August 5, 2022 10:17 — forked from bgrainger/BibleWorksHebrew.md
BibleWorks Hebrew Mapping Table
@Nilpo
Nilpo / git-aware-bash-prompt.md
Created April 5, 2022 02:00 — forked from eliotsykes/git-aware-bash-prompt.md
Git Aware Bash Prompt