Skip to content

Instantly share code, notes, and snippets.

# Cisco IOS system navigation tree (for a Router)
In here just trying to agregate the submenus most used in Cisco IOS, with the ? , to aid with the navigation mainly submenus used for CCNA. Created by Freddie Ventura updated on 21/10/2020
## Exec Commands
+-------
<1-99> |aaa
auto |crypto
clear |custom-queue
clock |eigrp
@bennettdams
bennettdams / index.html
Created June 23, 2020 11:13
Rotate a text 180° with TailwindCSS
<div className="flex w-1/6>
<p className="transform rotate-180 text-center" style={{ writingMode: 'vertical-rl' }}>
Text
</p>
</div>
@WahlbeckUEFN
WahlbeckUEFN / get_closest_player.verse
Created May 10, 2023 15:01
Get closest player to prop in UEFN and Verse
using { /Fortnite.com/Devices }
using { /Fortnite.com/Characters }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /UnrealEngine.com/Temporary/SpatialMath }
GetClosestPlayerToProp(AllPlayers: []fort_character, Prop : creative_prop): ?fort_character =
var ClosestPlayer : ?fort_character = false
var ClosestDistance: float = 1000000000.0 # initialize with a large number
for (Player : AllPlayers):
@Cubixmeister
Cubixmeister / README.md
Created August 16, 2016 18:23
Simple Sentry docker-compose.yml
  1. Download docker-compose.yml to dir named sentry
  2. Change SENTRY_SECRET_KEY to random 32 char string
  3. Run docker-compose up -d
  4. Run docker exec -it sentry_sentry_1 sentry upgrade to setup database and create admin user
  5. Run docker exec -it pip install sentry-slack if you want slack plugin, it can be done later
  6. Run docker restart sentry_sentry_1
  7. Sentry is now running on public port 9000
@nafiesl
nafiesl / how_to_get_telegram_chat_id.md
Created December 20, 2023 11:49
How to get Telegram Bot Chat ID

How to get Telegram Bot Chat ID

Create a Telegram Bot and get a Bot Token

  1. Open Telegram application then search for @BotFather
  2. Click Start
  3. Click Menu -> /newbot or type /newbot and hit Send
  4. Follow the instruction until we get message like so
    Done! Congratulations on your new bot. You will find it at t.me/new_bot.
    
@OrionReed
OrionReed / dom3d.js
Last active May 19, 2024 17:33
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯
@junkblocker
junkblocker / notify-desktop
Last active May 19, 2024 17:19 — forked from digitaltrails/notify-desktop
notify-desktop - linux find and notify desktop session
#!/usr/bin/env bash
# Provides a way for a root process to perform a notify send for each
# of the local desktop users on this machine.
#
# Intended for use by cron and timer jobs. Arguments are passed straight
# to notify send. Falls back to using wall. Care must be taken to
# avoid using this script in any potential fast loops.
#
# X11 users should already have a dbus address socket at /run/user/<userid>/bus
# and this script should work without requiring any initialisation. Should
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocksConfig version="1">
<editor>
<colour_sets>
<ACTIVE_COLOUR_SET>
<str>
<![CDATA[modnokai night shift v2]]>
</str>
</ACTIVE_COLOUR_SET>
<ACTIVE_LANG>
.css-selector {
    background: linear-gradient(0deg, #8088ac, #6b718f, #292f4d);
    background-size: 600% 600%;
    -webkit-animation: Beauvoir 1s ease infinite;
    -moz-animation: Beauvoir 1s ease infinite;
    -o-animation: Beauvoir 1s ease infinite;
    animation: Beauvoir 1s ease infinite;
}
@-webkit-keyframes Beauvoir {
    0%{background-position:55% 0%}
@ciiqr
ciiqr / zod-optional-null.ts
Last active May 19, 2024 16:29
zod optional/nullable/nullish differences
// 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
{