Skip to content

Instantly share code, notes, and snippets.

@AgentOak
AgentOak / youtube_formats.md
Last active May 9, 2024 17:31
Youtube Format IDs

Last updated: April 2021

Also known as itag or format codes and way back they could be specified with the fmt parameter (e.g. &fmt=22). Depending on the age and/or popularity of the video, not all formats will be available.

DASH video

Resolution AV1 HFR High AV1 HFR AV1 VP9.2 HDR HFR VP9 HFR VP9 H.264 HFR H.264
MP4 MP4 MP4 WebM WebM WebM MP4 MP4
@tboerger
tboerger / README.md
Created November 14, 2022 13:43
Hack The Box: Starting Point Tier 0

Meow

Questionnaire

What does the acronym VM stand for?
Virtual Machine
@joeminicucci
joeminicucci / BloodhoundCheatSheet.md
Created February 13, 2020 05:54
DogWhisperer - BloodHound Cypher Cheat Sheet (v2)
package com.company;
import java.util.Scanner;
public class frequency_of_sentence_in_word {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
String s= sc.nextLine();
int arr[]=new int[98];
for(int i=0;i<s.length();i++){
@ES-Alexander
ES-Alexander / mavactive.py
Last active May 9, 2024 17:28
An example of using `RC_OVERRIDE`s for basic vehicle control with Pymavlink. Includes a variety of other convenience functions.
from builtins import object
import weakref
from time import sleep
from threading import Thread, Event, Lock
from pymavlink import mavutil
import pymavlink.dialects.v20.ardupilotmega as mavlink
class WriteLockedFile(object):
Создание пользователя
---------------------
adduser username
usermod -aG sudo username
group username
su username
---------------------------------------
Компиляции python 3.6
----------------------
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev
@arjunv
arjunv / keyevents.json
Created December 2, 2018 00:01
All Android Key Events for usage with adb shell
{
"key_events": {
"key_unknown": "adb shell input keyevent 0",
"key_soft_left": "adb shell input keyevent 1",
"key_soft_right": "adb shell input keyevent 2",
"key_home": "adb shell input keyevent 3",
"key_back": "adb shell input keyevent 4",
"key_call": "adb shell input keyevent 5",
"key_endcall": "adb shell input keyevent 6",
"key_0": "adb shell input keyevent 7",
@Faria-Ejaz
Faria-Ejaz / Map.js
Last active May 9, 2024 17:24
react Leaflet Map with Auto-suggest Search #leaflet #react-leaflet #search
/** @format */
import { Map, TileLayer, Marker, Popup } from "react-leaflet";
import React, { useEffect, useState, useRef } from "react";
import { geosearch } from "esri-leaflet-geocoder";
import "leaflet/dist/leaflet.css";
import "esri-leaflet-geocoder/dist/esri-leaflet-geocoder.css";
import L from "leaflet";
function MapView(props) {
@Efreklin
Efreklin / shrekSendScript.js
Created May 9, 2024 17:23 — forked from walterowisk/shrekSendScript.js
Script Shrek para WhatsApp - Copie todo o conteúdo (clique em raw -> ctrl+a -> ctrl+c) // No WhatsApp Web abra o console do Browser // Cole o código no console e aperte Enter
async function enviarScript(scriptText){
const lines = scriptText.split(/[\n\t]+/).map(line => line.trim()).filter(line => line);
main = document.querySelector("#main"),
textarea = main.querySelector(`div[contenteditable="true"]`)
if(!textarea) throw new Error("Não há uma conversa aberta")
for(const line of lines){
console.log(line)
@RafaelWO
RafaelWO / awc_ecr_stats.sh
Last active May 9, 2024 17:24
AWS: Calculate the size of all ECR repositories
repos=""
sizes=""
name_lens=""
# Check if user is logged in
if ! aws sts get-caller-identity &> /dev/null; then
echo "ERROR: Seems like your SSO session is invalid. Please run"
printf "\n $ aws sso login\n\n"
echo "before you run the script."
exit 1