Skip to content

Instantly share code, notes, and snippets.

@t-wy
t-wy / fb_post_id_script.js
Created November 28, 2022 12:22
Get Facebook canonical Post ID (share URL) without pfbid parameter
javascript: fbid = /share_fbid":"(\d+)"/g.exec([...document.getElementsByTagName("script")].filter(x => x.innerHTML.includes("share_fbid"))[0].innerHTML)[1]; alert(location.href.split("/").slice(0, -1).join("/") + "/" + fbid);
// can be used in console / bookmark / address bar (remember to add back javascript if the browser strips it automatically)
@marek-panek
marek-panek / SonarQubeConfig.txt
Last active May 9, 2024 18:34
SonarQube configuration with PostgreSQL
1. In PostgreSQL database
1.1 Create user
create user <user_name> with password '<password>';
1.2 Create database
create database <db_name> with owner <user_name> encoding 'UTF8';
2. Edit <sonar_install_dir>/conf/sonar.properties
@PurpleBooth
PurpleBooth / README-Template.md
Last active May 9, 2024 18:33
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@OptiJuegos
OptiJuegos / Login Progress Pointer Paths.
Last active May 9, 2024 18:32
Login Progress Pointer Paths.
/// DEBUG SCREEN CRACK (RECOMMENDED) ///
1.7-1.20 (Win32-UWP-Android):
https://cdn.discordapp.com/attachments/1090766119326994502/1102104352530898975/debug_screen.json
Copy this file to: "Minecraft Education Edition/data/resource_packs/vanilla/ui" and replace it
/// PTR CRACK (Partially fixed since 1.18.42) ///
1.19.52.0 (Win32):
@stonehippo
stonehippo / inspect_https-tls-ssl_certs.md
Last active May 9, 2024 18:31
A couple of ways to look at web server HTTPS/TLS/SSL certificate data via the command line

Inspecting HTTPS (TLS, SSL) certificates from the command line

I needed to inspect an HTTPS site's current certs and wanted to do it from the command line. Here are a couple of commands that I used that worked quite well.

With nmap

nmap -p 443 --script ssl-cert [hostname]
import io
import zipfile
from textwrap import dedent
from time import sleep
from typing import Literal, TypeAlias
from xml.dom import minidom
from simple_salesforce import Salesforce
ApexType: TypeAlias = Literal["ApexClass", "ApexTrigger"]
@d7samurai
d7samurai / .readme.md
Last active May 9, 2024 18:27
Minimal D3D11

Minimal D3D11

Minimal D3D11 reference implementation: An uncluttered Direct3D 11 setup + basic rendering primer and API familiarizer. Complete, runnable Windows application contained in a single function and laid out in a linear, step-by-step fashion that should be easy to follow from the code alone. ~200 LOC. No modern C++, OOP or (other) obscuring cruft. View on YouTube

hollowcube

Also check out Minimal D3D11 pt2, reconfigured for instanced rendering and with a smaller, tighter, simplified overall code structure, or Minimal D3D11 pt3, with shadowmapping + showcasing a range of alternative setup and rendering techniques.

@ThinGuy
ThinGuy / add-music.rsc
Created May 4, 2019 18:43
add music to mikrotik switches
/system script
add name="Music: Super Mario Bros" owner=admin policy=read source=":beep frequency=660 length=100ms;\
\n:delay 150ms;\
\n:beep frequency=660 length=100ms;\
\n:delay 300ms;\
\n:beep frequency=660 length=100ms;\
\n:delay 300ms;\
\n:beep frequency=510 length=100ms;\
\n:delay 100ms;\
\n:beep frequency=660 length=100ms;\
@farhad0085
farhad0085 / Deploy Django and React APP in a production VPS.md
Last active May 9, 2024 18:21
Deploy Django and React APP in a production VPS (Django + Celery + React + PostgreSQL + NGINX + Ubuntu Server)

Deploy Django and React APP in a production VPS (Django + React + PostgreSQL + NGINX + Ubuntu Server)

Assuming You have backend and frontend codes in /home/backend and /home/frontend/ (Use git to upload)

Install required Packages from the Ubuntu Repositories

sudo apt-get update
sudo apt-get install python3-pip python3-dev libpq-dev postgresql postgresql-contrib nginx
@Dev-Dipesh
Dev-Dipesh / image.md
Last active May 9, 2024 18:20
Javascript loops can be quite confusing. Knowing the write loop to use can make a big difference in performance.

A4 Image file if you would like to print it ♥ JS Loops Cheatsheet