Skip to content

Instantly share code, notes, and snippets.

@sundowndev
sundowndev / GoogleDorking.md
Last active May 19, 2024 16:06
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"
@mathix420
mathix420 / medium.user.js
Last active May 19, 2024 16:06
Bypass Medium Paywall - Working late 2023 - Greasy Fork, Violentmonkey, Tampermonkey - Click the RAW button to install
// ==UserScript==
// @name Medium Paywall Bypass
// @namespace Violentmonkey Scripts
// @run-at document-start
// @match *://*.medium.com/*
// @match *://medium.com/*
// @match *://*/*
// @grant none
// @version 2.4
// @inject-into content
@andrebrait
andrebrait / keychron_linux.md
Last active May 19, 2024 16:00
Keychron keyboards on Linux + Bluetooth fixes

Here is the best setup (I think so :D) for K-series Keychron keyboards on Linux.

Note: many newer Keychron keyboards use QMK as firmware and most tips here do not apply to them. Maybe the ones related to Bluetooth can be useful, but everything related to Apple's keyboard module (hid_apple) on Linux, won't work. As far as I know, all QMK-based boards use the hid_generic module instead. Examples of QMK-based boards are: Q, Q-Pro, V, K-Pro, etc.

Most of these commands have been tested on Ubuntu 20.04 and should also work on most Debian-based distributions. If a command happens not to work for you, take a look in the comment section.

Make Fn + F-keys work (NOT FOR QMK-BASED BOARDS)

Older Keychron keyboards (those not based on QMK) use the hid_apple driver on Linux, even in the Windows/Android mode, both in Bluetooth and Wired modes.

@ali-awwad
ali-awwad / laravel-on-azure-web-app-startup-command.sh
Last active May 19, 2024 15:57
Laravel On Azure Web Apps. Enabling Queues and Job Workers as well
# name this file as "startup.sh" and call it from "startup command" as "/home/startup.sh"
# check out my YouTube video "https://youtu.be/-PGhVFsOnGA"
cp /home/default /etc/nginx/sites-enabled/default
cp /home/php.ini /usr/local/etc/php/conf.d/php.ini
# install support for webp file conversion
apt-get update --allow-releaseinfo-change && apt-get install -y libfreetype6-dev \
libjpeg62-turbo-dev \
@amsyarasyiq
amsyarasyiq / plumper.js
Created May 26, 2023 15:56
Flattening the directory hierarchy for Plumpy
// Create a new directory called "Plumper" and dump all the files from "Plumpy" flat-ly into it
// Example: Plumpy/images/native/1.png -> Plumper/images_native_1.png
// Probably does not convert *all* but it does the most
// Packs from:
// https://github.com/acquitelol/rosiecord/tree/master/Packs/Plumpy
const fs = require("fs");
const path = require("path");
@acidtone
acidtone / README.md
Last active May 19, 2024 15:56
Express: send() vs json() vs end()

Express: res.send() vs res.json() vs res.end()

Materials

Key Takeaways

  • When in doubt, use .send(). It dynamically sets Content-Type headers to match the data it sends.
  • When sending JSON, you can either use .json() uses .send().
    • .json() is arguably less confusing
  • .json() uses .send() under the hood so the resulting HTTP headers are the same.
@benkoshy
benkoshy / Tekla-api-code-convertToDetailingComponent.md
Last active May 19, 2024 15:55
Tekla Open API code - converts engineering components to detailing components.
// converts engineering components to detailing components.
// Written by Ben Koshy of Tek1 Pty Ltd.
// Email: koshy "at symbol" tek1 dot com dot au 


namespace ConvertToDetailingComponent
{
    class Program
    {
@deepcoder
deepcoder / birdnet_to_mqtt.py
Last active May 19, 2024 15:54
BirdNET to MQTT publishing for Home Assistant consumption
#! /usr/bin/env python3
# birdnet_to_mqtt.py
#
# 202306171542
#
# monitor the records in the syslog file for info from the birdnet system on birds that it detects
# publish this data to mqtt
#
import time
@matt2005
matt2005 / lambda_function.py
Last active May 19, 2024 15:50 — forked from awarecan/lambda_function.py
Alexa Smart Home Skill Adapter for Home Assistant
"""
Copyright 2019 Jason Hu <awaregit at gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software