Skip to content

Instantly share code, notes, and snippets.

View contagon's full-sized avatar

Easton Potokar contagon

View GitHub Profile
@fawazahmed0
fawazahmed0 / cloudflare-tld-price-list.csv
Last active May 24, 2025 06:03
cloudflare domains price list for tlds
TLD Registration Fees Renewal Fees
example.org.uk 4.94 4.94
example.uk 4.94 4.94
example.me.uk 4.94 4.94
example.co.uk 4.94 4.94
example.date 4.16 5.16
example.trade 4.16 5.16
example.party 4.16 5.16
example.bid 4.16 5.16
example.stream 4.16 5.16
@kabili207
kabili207 / Rclone systemd service.md
Last active May 16, 2025 18:49
Rclone systemd user service

rclone systemd service

Preparation

This service will use the same remote name you specified when using rclone config create. If you haven't done that yet, do so now.

Next, create the mountpoint for your remote. The service uses the location ~/mnt/<remote> by default.

mkdir ~/mnt/dropbox
@WetHat
WetHat / PY-Drawing3D.ipynb
Last active April 26, 2025 09:22
Matplotlib: 3D Arrows and 3D Annotations
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@futechiot
futechiot / esp32_series_AP+StationMode.ino
Last active May 16, 2025 12:01
ESP32 WIFI Modes Series: Create Hotspot on ESP32 in AccessPoint mode, Connect your ESP32 with your Home router or other wifi hotspot in STATION mode, make your ESP32 work in both mode simultaneously to give credentials and to send data on cloud
/*
OUTPUT: Creating your own hotspot on esp32 wifi+ble module as well as
connect to your home router or mobile hotspot.
BOTH ACCESS POINT + STATION ACTIVATED
Author: Ankit Rana (Futechiot)
Board Used: esp32 development board, LolinD32,WEMOS LOLIN32, ESP32 MH-ET live Minikit
Website: www.futechiot.com
GitHub: https://github.com/futechiot
@gocarlos
gocarlos / Eigen Cheat sheet
Last active January 19, 2025 21:34
Cheat sheet for the linear algebra library Eigen: http://eigen.tuxfamily.org/
// A simple quickref for Eigen. Add anything that's missing.
// Main author: Keir Mierle
#include <Eigen/Dense>
Matrix<double, 3, 3> A; // Fixed rows and cols. Same as Matrix3d.
Matrix<double, 3, Dynamic> B; // Fixed rows, dynamic cols.
Matrix<double, Dynamic, Dynamic> C; // Full dynamic. Same as MatrixXd.
Matrix<double, 3, 3, RowMajor> E; // Row major; default is column-major.
Matrix3f P, Q, R; // 3x3 float matrix.
@the-nerdery-dot-info
the-nerdery-dot-info / threaded_ue.cpp
Created October 29, 2016 21:42
how to accomplish cpu multithreading in unreal engine
UCLASS(config=Game)
class AMultiThreadingCharacter : public ACharacter
{
GENERATED_BODY()
/** Camera boom positioning the camera behind the character */
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Camera, meta = (AllowPrivateAccess = "true"))
class USpringArmComponent* CameraBoom;
/** Follow camera */
@mjkillough
mjkillough / CMakeLists.txt
Last active March 17, 2024 09:09
Generating and using a virtualenv from CMake
cmake_minimum_required(VERSION 3.6)
project(CmakeVirtualenv)
enable_testing()
# Find Python and Virtualenv. We don't actually use the output of the
# find_package, but it'll give nicer errors.
find_package(PythonInterp 2.7 REQUIRED)
find_program(VIRTUALENV virtualenv)
@spalladino
spalladino / mysql-docker.sh
Created December 22, 2015 13:47
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@volkansalma
volkansalma / atan2_approximation.c
Created June 22, 2012 11:35
optimized atan2 approximation
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
float atan2_approximation1(float y, float x);
float atan2_approximation2(float y, float x);
int main()
{
float x = 1;