Skip to content

Instantly share code, notes, and snippets.

@nomadjimbob
nomadjimbob / vuetrix.vue
Last active May 10, 2024 21:34
Vue3-Trix
<template>
<div class="editor">
<label v-if="label" :class="{required: required}">{{ label }}</label>
<trix-editor
:contenteditable="!disabledEditor"
:class="['trix-content']"
:placeholder="placeholder"
:input="computedId"
ref="trix"
@trix-change="handleContentChange"
@q3k
q3k / hashes.txt
Last active May 10, 2024 21:32
liblzma backdoor strings extracted from 5.6.1 (from a built-in trie)
0810 b' from '
0678 b' ssh2'
00d8 b'%.48s:%.48s():%d (pid=%ld)\x00'
0708 b'%s'
0108 b'/usr/sbin/sshd\x00'
0870 b'Accepted password for '
01a0 b'Accepted publickey for '
0c40 b'BN_bin2bn\x00'
06d0 b'BN_bn2bin\x00'
0958 b'BN_dup\x00'
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active May 10, 2024 21:32
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@wojteklu
wojteklu / clean_code.md
Last active May 10, 2024 21:32
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

def main_menu():
while True:
print("Main Menu:")
print("1. Option 1")
print("2. Option 2")
print("3. Exit")
choice = input("Enter your choice: ")
if choice == "1":
@tonibardina
tonibardina / std.md
Created December 16, 2020 09:24 — forked from turbo/std.md
Git Commit Message Standard

Merged from https://github.com/joelparkerhenderson/git_commit_message and https://chris.beams.io/posts/git-commit/

General Rules

  • Commit messages must have a subject line and may have body copy. These must be separated by a blank line.
  • The subject line must not exceed 50 characters
  • The subject line should be capitalized and must not end in a period
  • The subject line must be written in imperative mood (Fix, not Fixed / Fixes etc.)
  • The body copy must be wrapped at 72 columns
  • The body copy must only contain explanations as to what and why, never how. The latter belongs in documentation and implementation.
@ToniRib
ToniRib / sumologic_certjam_notes.md
Last active May 10, 2024 21:30
Notes from the 6/11/2019 Sumo Logic Fundamentals Training

Sumologic Training

  • Certification is on home page under certifications (need to be logged in to my own account)

Training Environment

Basics

@timsneath
timsneath / profile.ps1
Last active May 10, 2024 21:26
PowerShell template profile: adds some useful aliases and functions
### PowerShell template profile
### Version 1.03 - Tim Sneath <tim@sneath.org>
### From https://gist.github.com/timsneath/19867b12eee7fd5af2ba
###
### This file should be stored in $PROFILE.CurrentUserAllHosts
### If $PROFILE.CurrentUserAllHosts doesn't exist, you can make one with the following:
### PS> New-Item $PROFILE.CurrentUserAllHosts -ItemType File -Force
### This will create the file and the containing subdirectory if it doesn't already
###
### As a reminder, to enable unsigned script execution of local scripts on client Windows,
@unitycoder
unitycoder / FolderTypeFix.reg
Last active May 10, 2024 21:25
Make Windows Folder Browsing Faster (by disabling folder type detection)
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell]
"FolderType"="NotSpecified"