Skip to content

Instantly share code, notes, and snippets.

@Bilka2
Bilka2 / webhook.py
Last active May 12, 2024 07:17
Simple discord webhook with python
import requests # dependency
url = "<your url>" # webhook url, from here: https://i.imgur.com/f9XnAew.png
# for all params, see https://discordapp.com/developers/docs/resources/webhook#execute-webhook
data = {
"content" : "message content",
"username" : "custom username"
}
@sundowndev
sundowndev / GoogleDorking.md
Last active May 12, 2024 07:15
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
nvram set local_domain=$(nvram get lan_ipaddr)
nvram commit
@linuz90
linuz90 / Plausible Live Stats.scriptable
Last active May 12, 2024 07:09
iOS widget to display a live visitors count with Plausible analytics and Scriptable.
// Configuration
// You'll be able to set the domain when adding/editing the widget
// Make sure the stats are public on Plausible
const namespace = args.widgetParameter || "plausible.io"
const displayName = namespace.slice(0,namespace.lastIndexOf("."))
const accentColor = new Color("#CCCCCC")
// LineChart by https://kevinkub.de/
// Used as the widget background
class LineChart {
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active May 12, 2024 07:08
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

let themeVariables = {
'--w3m-z-index': 10000,
'--w3m-accent': '',
'--w3m-accent-color': '',
'--w3m-color-mix': '',
'--w3m-color-mix-strength': '',
'--w3m-border-radius-master': '',
'--w3m-font-size-master': '',
'--w3m-font-family': '',
'--w3m-overlay-backdrop-filter': 'blur(6px)'
let themeVariables = {
'--w3m-z-index': 10000,
'--w3m-accent': '',
'--w3m-accent-color': '',
'--w3m-color-mix': '',
'--w3m-color-mix-strength': '',
'--w3m-border-radius-master': '',
'--w3m-font-size-master': '',
'--w3m-font-family': '',
'--w3m-overlay-backdrop-filter': 'blur(6px)'
@matthewzring
matthewzring / markdown-text-101.md
Last active May 12, 2024 07:04
A guide to Markdown on Discord.

Markdown Text 101

Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...

What this guide covers:

@Guhan-SenSam
Guhan-SenSam / 1info.md
Last active May 12, 2024 06:57
Methods to Optimizing Kivy Performance

Many people state that kivy is slow. While this may be true it is mostly due to that python is slow to run on android devices.Thus it is in the programmer's hands to properly optimize their code so as to create a performant application.

Most of the lag on android devices runing kivy apps arise due to widget creation. Widget creation remains the slowest step in a kivy app. Here are some of the methods that I follow to optimize my apps and ensure I can hit 60fps even on old devices

Optimization Methods:

@sloria
sloria / bobp-python.md
Last active May 12, 2024 06:54
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens