- Sign up and sign in to Cloudflare https://dash.cloudflare.com/sign-up.
- In your Cloudflare dashboard, select the
Domain Registration > Register Domains
tab. - Search for your favorite domain and purchase it. In my case, I purchased the domain https://nivethan.me/ for my portfolio.
- Sign in to Vercel and go to your dashboard, where you can see all your projects in the
Overview
tab. - Click on a project and on the top right, select
Domains
. - Type your domain in the text box, e.g.,
nivethan.me
, and clickAdd
. - Select the recommended option:
Add www.nivethan.me and redirect nivethan.me to it
. - Vercel will show an invalid configuration under your domains and display the relevant A record IP under
nivethan.me
and a CNAME IP underwww.nivethan.me
. These need to be set up on Cloudflare to make it work.
Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env sh | |
# A hyprland script for a laptop-external-monitor setup, toggling between which is in use | |
# Launch at startup to make hyprland disable the internal monitor if an external monitor is detected and enabled | |
# Additionally it's called with a keybind to switch between a laptop monitor and an external display | |
# Ideally the conditional monitor behaviour was instead done directly in hyprland.conf, but I'm not sure whether that's possible | |
# | |
# Relevant info: | |
# - hyprctl monitors: identifies currently enabled monitors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: ################################################################ | |
:: ## 🔥 WinMasterBlocker 🔥 # | |
:: ################################################################ | |
:: # Author: https://github.com/ph33nx # | |
:: # Repo: https://github.com/ph33nx/WinMasterBlocker # | |
:: # # | |
:: # This script blocks inbound/outbound network access # | |
:: # for major apps like Adobe, Autodesk, Corel, Maxon, # | |
:: # and more using Windows Firewall. # | |
:: # # |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from transformers import AutoProcessor, MoonshineForConditionalGeneration | |
from datasets import load_dataset | |
processor = AutoProcessor.from_pretrained("UsefulSensors/moonshine-tiny") | |
model = MoonshineForConditionalGeneration.from_pretrained("UsefulSensors/moonshine-tiny") | |
ds = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation") | |
inputs = processor([ds[0]["audio"]["array"], ds[0]["audio"]["array"]], return_tensors="pt") | |
input_values = inputs.input_values |
Este tutorial é destinado a usuários de Linux que encontraram erros de permissão ao programar para o Raspberry Pi Pico no VS Code utilizando a extensão "Raspberry Pi Pico".
Os erros que tive foram tentar executar um código para o pico e monitorar o serial monitor
Abra um editor de texto para criar um novo arquivo de regras udev:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# CORS header support | |
# | |
# One way to use this is by placing it into a file called "cors_support" | |
# under your Nginx configuration directory and placing the following | |
# statement inside your **location** block(s): | |
# | |
# include cors_support; | |
# | |
# As of Nginx 1.7.5, add_header supports an "always" parameter which |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::net; | |
use std::env; | |
fn listen(socket: &net::UdpSocket, mut buffer: &mut [u8]) -> usize { | |
let (number_of_bytes, src_addr) = socket.recv_from(&mut buffer).expect("no data received"); | |
println!("{:?}", number_of_bytes); | |
println!("{:?}", src_addr); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
// | |
// _____ _ _____ | |
// |_ _|_|___ _ _ |_ _|_ _ _ ___ ___ ___ | |
// | | | | | | | | | | | | | -_| -_| | | |
// |_| |_|_|_|_ | |_| |_____|___|___|_|_| | |
// |___| | |
// A Complete and Easy to use Tweens library in One File | |
// | |
// Basic use: |
NewerOlder