Skip to content

Instantly share code, notes, and snippets.

@szepeviktor
szepeviktor / Wistia-download-videos.md
Last active April 27, 2024 20:57
Download Wistia videos - Please do not misuse it!

Download Wistia videos

  1. right-click on the playing video, select Copy link
  2. find Wistia video ID in the copied link e.g. wvideo=tra6gsm6rl
    • alternative: look for e.g. hashedId=tra6gsm6rl in the page source
  3. load http://fast.wistia.net/embed/iframe/ + video ID in your browser
  4. look for "type":"original" in the page source and copy the URL from the next line e.g. "url":"http://embed.wistia.com/deliveries/129720d1762175bcd8e06dcab926ec76ad38ff00.bin"
  • alternative: look for "type":"hd_mp4_video"
@mfenniak
mfenniak / immich.nix
Last active April 27, 2024 20:57
NixOS configuration for Immich, based upon upstream docker-compose.yml
{ config, ... }:
let
immichHost = "immich.example.com"; # TODO: put your immich domain name here
immichRoot = "/tank/immich"; # TODO: Tweak these to your desired storage locations
immichPhotos = "${immichRoot}/photos";
immichAppdataRoot = "${immichRoot}/appdata";
immichVersion = "release";
immichExternalVolume1 = "/tank/BackupData/Google Photos/someone@example.com"; # TODO: if external volumes are desired
@subfuzion
subfuzion / curl.md
Last active April 27, 2024 20:56
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@diyan
diyan / oop_in_python_sample.py
Last active April 27, 2024 20:55
Пример основных концепций ООП на примере языка Python
# -*- coding: utf-8 -*-
"""
Абстракция (abstraction) - метод решения задачи, при котором объекты разного
рода объединяются общим понятием (концепцией), а затем сгруппированные сущности
рассматриваются как элементы единой категории.
Инкапсуляция (encapsulation) - техника, при которой несущественная с точки
зрения интерфейса объекта информация прячется внутри него.
Наследование (inheritance) - свойство объектов, посредством которого экземпляры
@fnky
fnky / ANSI.md
Last active April 27, 2024 20:49
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@d4rkusxx
d4rkusxx / 1_top+hacker_methodologies.md
Created April 27, 2024 20:42 — forked from ruevaughn/1_top+hacker_methodologies.md
Hacker Methodologies & Tools (NEW)

The Top Hacker Methodologies & Tools Notes

Nuclei Templates

Concrete5 CMS : Identification, Mass Hunting, Nuclei Template Writing & Reporting


@ruevaughn
ruevaughn / 1_top+hacker_methodologies.md
Last active April 27, 2024 20:42
Hacker Methodologies & Tools (NEW)

The Top Hacker Methodologies & Tools Notes

Nuclei Templates

Concrete5 CMS : Identification, Mass Hunting, Nuclei Template Writing & Reporting


@mrl22
mrl22 / ColorHelper.php
Created October 23, 2023 16:38
Laravel / PHP - Check if a hexidecimal colour is dark
<?php
namespace App\Helpers;
class ColorHelper
{
// This function tell you if a color is dark or light.
// It is useful when you want to change the text color to white or black depending on the background color.
public static function isColorDark($hexColor = '#ffffff') {
@jayluxferro
jayluxferro / List_of_Hacking_Websites_and_Forums.md
Last active April 27, 2024 20:40
List of Hacking Websites and Forums
@ecarlson94
ecarlson94 / README.md
Last active April 27, 2024 20:38
WSL Configuration

Installing WSL (windows subsystem for linux)

Running the azure-team terraform make file to create your infrastructure may not work on a Windows machine. If you cannot get it to run, install a linux distribution where you will exectute the tf files. Setting up a distribution with all of the right dependencies does involve a bit of setup to get it configured properly. The following is a list of steps you'll need to complete:

Install WSL