Skip to content

Instantly share code, notes, and snippets.

@fishchev
fishchev / index.html
Last active May 1, 2025 09:47
Minimal page structure/sample to trigger Telegram's IV template for https://teletype.in.
<!DOCTYPE html>
<head>
<title>$title</title>
<meta property="og:site_name" content="$site_name">
<meta property="og:description" content="$description">
<meta property="article:author" content="$author">
<!-- $image_url / link preview image is set using og:image property -->
<!-- <meta property="og:image" content="http://example.com/img.jpeg"> -->
<meta property="telegram:channel" content="@cor_bee">
@RedwanFox
RedwanFox / gist:1e7ebc323a27ef4b32c57bf88d700dd1
Last active October 7, 2019 21:44
Список чтения на лето
Список добра, которое можно прочесть/посмотреть/поиграть перед выездом на Shadowrun и в целом для ознакомления с жанром киберпанка
Посмотреть
Из фильмов:
- Bright - не киберпанк, но четко показывает что из себя представляет сеттинг Шедоурана.
- Johny Mnemonic
- Hackers - киберпанк внешне, но не по темам.
- Bladerunner
- Akira
@in4in-dev
in4in-dev / perfect.php
Last active January 4, 2025 12:21
PHP VK audio unmask (decode extras)
<?php
//(js -> php) code. letter by letter
global $n, $i, $id;
$n = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMN0PQRSTUVWXYZO123456789+/=";
$id = 12345; //YOUR USER ID
$i = [
'v' => function($e) {
return strrev($e);
@lucidBrot
lucidBrot / bookmarklet_image_dwl.js
Last active January 12, 2025 18:55
Bookmarklet to download all images on a page
// as one-liner for bookmarklet
javascript:;(function(){var images=[].slice.call(document.querySelectorAll('img'));try{images.forEach(function(img){downloadResource(img.src)})}catch(e){alert("Download failed.");console.log('Download failed.',e)}function forceDownload(blob,filename){var a=document.createElement('a');a.download=filename;a.href=blob;a.click()}function downloadResource(url,filename){if(!filename)filename=url.split('\\').pop().split('/').pop();fetch(url,{headers:new Headers({'Origin':location.origin}),mode:'cors'}).then(response=>response.blob()).then(blob=>{let blobUrl=window.URL.createObjectURL(blob);forceDownload(blobUrl,filename)}).catch(e=>console.error(e))}}).call(window);
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cab404
cab404 / checkmacs.sh
Last active April 3, 2018 07:05
MAC address checker for moscow metro
#!/bin/bash
# script for finding userdata from a list of macs.
# for educational purposes only, of course.
INPUT=$1
SSID=MT_FREE
DEV=${2:-wlp1s0}
OUTDIR=check-`date +%d-%m-%yT%H:%M:%S`
function jsonf() { python -c 'import json; json.dump(json.load(open("/dev/stdin", "r")), open("/dev/stdout", "w"), indent=2)'; echo; }
.tabbrowser-tab:not([pinned]) {min-width:35px;max-width:35px;}
.tabbrowser-tab,.tab-background {height:var(--tab-min-height);}
.tab-stack {width: 100%;}
#tabbrowser-tabs .scrollbox-innerbox {display: flex;flex-wrap: wrap;}
#tabbrowser-tabs .arrowscrollbox-scrollbox {overflow: visible;display: block;}
#titlebar,#titlebar-buttonbox{height:var(--tab-min-height) !important;}
#titlebar{margin-bottom:calc(var(--tab-min-height)*-1) !important;}
#main-window[sizemode="maximized"] #titlebar{margin-bottom:calc(6px + var(--tab-min-height)*-1) !important;}
#main-window[sizemode="maximized"] #TabsToolbar{margin-left:var(--tab-min-height);}
#titlebar:active{margin-bottom:0 !important;}
@Pzixel
Pzixel / Program.cs
Created December 6, 2017 13:04
Self-hosted web application
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
namespace SelfHostAspCoreExample
{
public class Program
{
@umidjons
umidjons / youtube-dl-download-audio-only-on-best-quality.md
Last active November 14, 2024 21:20
Download Audio from YouTube with youtube-dl

Download Audio from YouTube

-i - ignore errors

-c - continue

-t - use video title as file name

--extract-audio - extract audio track

@Pzixel
Pzixel / .gitattributes
Last active December 18, 2018 09:50
GitAttributes for default project
[core]
whitespace=trailing-space,space-before-tab
[apply]
whitespace=fix
* binary
*.[sS][lL][nN] text=auto diff merge
*.[cC][sS][pP][rR][oO][jJ] text=auto diff merge
*.[vV][bB][pP][rR][oO][jJ] text=auto diff merge
*.[vV][cC][xX][pP][rR][oO][jJ] text=auto diff merge
*.[vV][cC][pP][rR][oO][jJ] text=auto diff merge