Skip to content

Instantly share code, notes, and snippets.

@KaMeHb-UA
KaMeHb-UA / .bashrc
Created March 18, 2018 16:13
Beautiful and useful .bashrc example for TRUECOLOR terminals
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
@letanure
letanure / estados-cidades.json
Last active April 30, 2024 21:21
JSON estados cidades do brasil, dividido por estados. segunda lista atualizada em 2020, dados do IBGE
{
"estados": [
{
"sigla": "AC",
"nome": "Acre",
"cidades": [
"Acrelândia",
"Assis Brasil",
"Brasiléia",
"Bujari",
@bcnzer
bcnzer / postman-pre-request.js
Last active April 30, 2024 21:20
Postman pre-request script to automatically get a bearer token from Auth0 and save it for reuse
const echoPostRequest = {
url: 'https://<my url>.auth0.com/oauth/token',
method: 'POST',
header: 'Content-Type:application/json',
body: {
mode: 'application/json',
raw: JSON.stringify(
{
client_id:'<your client ID>',
client_secret:'<your client secret>',
@Dlfaith
Dlfaith / gist:0d43be3dfb296bb6260af75ef082faa8
Created December 6, 2022 02:51
Free Windows Server 2022 Product Key
Free Windows Server 2022 Standard Product Key
HP9DJ-NK2X6-4QPCH-8HY8H-6X2XY
RRNMT-FP29D-CHKCH-GWQP2-DDDVB
44QN4-X3R72-9X3VK-3DWD6-HFWDM
Free Windows Server 2022 Datacenter Product Key
WX4NM-KYWYW-QJJR4-XV3QB-6VM33
Download windows Sever 2022 Evaluation edition:
Windows Server 2022 Evaluation English
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Z-Index Example</title>
<style>
html, body { background-color: #00787F; }
.container {
position: relative;
tell application "Finder"
activate
set these_items to the selection
log these_items
repeat with this_item in these_items
set item_name to (get displayed name of this_item)
if item_name is not ".DS_Store" then
set current_com to (get comment of this_item)
if current_com is not "" then
set comment of this_item to current_com as string
@VincentH-Net
VincentH-Net / Extensions.cs
Created April 9, 2024 18:03
ASP.NET Core Minimal API's Endpoints registration helper
// Endpoints registration helper
// Enables DI for a group of endpoints to reduce init code and repeating parameters across endpoints
// Usage in e.g. Program.cs:
app.RegisterEndpoints(
typeof(CatalogEndpoints),
typeof(BasketsEndpoints)
);
import Make from "@rbxts/make";
import { useMountEffect } from "@rbxts/pretty-react-hooks";
import React, { useRef } from "@rbxts/react";
interface Props extends React.PropsWithChildren {
readonly ExtraCameraDepth?: number;
readonly Native: React.InstanceProps<ViewportFrame>;
readonly Object: BasePart | Model;
}
@MiraSynth
MiraSynth / cornparser.go
Created April 30, 2024 21:07
A cron string parser in hopes I can use it to schedule jobs
package cron
import (
"fmt"
"strconv"
"strings"
)
const (
MINUTE = 0
#EXTINF:-1,BeIN Sports News
http://iptv.nextnet.krd:25461/nextnet/3738/4335
#EXTINF:-1,BeIN SPORTS 1 FHD
http://iptv.nextnet.krd:25461/nextnet/3738/4338
#EXTINF:-1,BeIN SPORTS 2 FHD
http://iptv.nextnet.krd:25461/nextnet/3738/4339
#EXTINF:-1,BeIN SPORTS 3 FHD
http://iptv.nextnet.krd:25461/nextnet/3738/4340
#EXTINF:-1,BeIN SPORTS 4 FHD
http://iptv.nextnet.krd:25461/nextnet/3738/4341