- Linux - be proficient using Ubuntu for example and the CLI and understand how the shell works, what are environment variables, subshells, processes/tasks, etc...
- Docker (and docker-compose) - what are containers and how they work (conceptually) and how to create and run ones
- Git - what does version control system mean and how to use Git
- RDB (relational databases) - what are relational databases, and understand tables, how to create them and make relations between them as needed... also understand that through SQLite and PostgreSQL (preferred) or MySQL
- Python - how to write Python very well and understand its [OOP] implementation...
- Virtualenv - And how to create virtual environments for python to isolate it from the system's installed version...
- Virtualenvwrapper to manage virtual environments easily
Discover gists
Sometimes you want to have a subdirectory on the master
branch be the root directory of a repository’s gh-pages
branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master
branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist
.
Remove the dist
directory from the project’s .gitignore
file (it’s ignored by default by Yeoman).
This is write up is on how to port forward over wireguard. I am going to be port forwarding a mail server running MailCow on my local server, but really any service can be port forwared with some modifications to the IPTables commands in the wireguard file.
I am using a cheap Vultr VPS as my proxy server, if your intrested heres a referral link https://www.vultr.com/?ref=9019507 where I get $10 or if you plan to spend more then $35 on your account you will get $100 and I will get $35 https://www.vultr.com/?ref=9019508-8H
- Debain 10 Buster
- Tunnel subnet: 10.1.1.0
- Proxy-VPS Tunnel IP: 10.1.1.1
"""update_godaddy_dns.py | |
Updates a GoDaddy DNS record with a new external IP address using the GoDaddy API | |
Run in debug mode (-D) to check the IP but not update DNS records | |
https://developer.godaddy.com/doc/endpoint/domains | |
Requires: | |
configargparse | |
requests | |
""" |
*update: TBC, but this new might affect how easy it is to use this technique past August 2024: Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August
This gist, based in part on a gist by Brian Hartvigsen, allows you to export from Authy your TOTP tokens you have stored there.
Those can be "standard" 6-digits / 30 secs tokens, or Authy's own version, the 7-digits / 10 secs tokens.
# coding=utf-8 | |
# Copyright 2023 The HuggingFace Inc. team. All rights reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |
// zod schema | |
z.object({ | |
// valid if string or: | |
optional: z.string().optional(), // field not provided, or explicitly `undefined` | |
nullable: z.string().nullable(), // field explicitly `null` | |
nullish: z.string().nullish(), // field not provided, explicitly `null`, or explicitly `undefined` | |
}); | |
// type | |
{ |
# Use-case: | |
# - We have multiple git repositories but want to merge them together for simplicity / using a monorepo / etc. | |
# - We can not lose the git history and tags | |
# - The new structure can be arbitrary | |
# | |
# Solution: | |
# - Create a tmp directory and clone all previous repos | |
# - Install git filter-repo via pip | |
# - In each of these repos, use the git filter-repo command to move all files to any new directory inside the repository | |
# - cd anywhere and create your new repository |
# By default, desktop environment won't start unless you connect your monitor | |
# This config allows you to start desktop environment and enable GPU acceleration without monitor connected. Official Nvidia driver is required if you use Nvidia card. | |
# NO DUMMY DISPLAY PLUGS REQUIRED | |
# Save the file to /etc/X11/xorg.conf | |
# Disable "Allow Flipping" in Nvidia settings to fix desktop flickering | |
# Tested on Linux Mint 21 with AnyDesk remote desktop | |
# GPU: NVIDIA GeForce GT 710 | |
# nvidia-xconfig: X configuration file generated by nvidia-xconfig |