Skip to content

Instantly share code, notes, and snippets.

@ashrithr
ashrithr / sinatra.md
Last active May 11, 2025 17:30
Intro to Sinatra

Sinatra

Installation:

Dependencies: ruby

gem install sinatra
@usrbinkat
usrbinkat / README.md
Last active May 11, 2025 17:29
Microk8s + Kubevirt + Multus (Fedora 36)

Kargo3.0 Bare Metal GitOps Hypervisor

WARNING: Microk8s is currently impacted by BUG #3085 please see bug workaround instructions to remediate until patch is released to stable channels!

01. Install OS

@Diegiwg
Diegiwg / linkedIn_jobs_api.md
Last active May 11, 2025 17:26
LinkedIn Jobs API Documentation
@killercup
killercup / pandoc.css
Created July 3, 2013 11:31
Add this to your Pandoc HTML documents using `--css pandoc.css` to make them look more awesome. (Tested with Markdown and LaTeX.)
/*
* I add this to html files generated with pandoc.
*/
html {
font-size: 100%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
@rampageX
rampageX / block_bittorrent.sh
Created November 5, 2019 18:47
iptables block bittorrent
# Block Torrent algo string using Boyer-Moore (bm)
iptables -A FORWARD -m string --algo bm --string "BitTorrent" -j DROP
iptables -A FORWARD -m string --algo bm --string "BitTorrent protocol" -j DROP
iptables -A FORWARD -m string --algo bm --string "peer_id=" -j DROP
iptables -A FORWARD -m string --algo bm --string ".torrent" -j DROP
iptables -A FORWARD -m string --algo bm --string "announce.php?passkey=" -j DROP
iptables -A FORWARD -m string --algo bm --string "torrent" -j DROP
iptables -A FORWARD -m string --algo bm --string "announce" -j DROP
iptables -A FORWARD -m string --algo bm --string "info_hash" -j DROP
iptables -A FORWARD -m string --algo bm --string "/default.ida?" -j DROP
@puiutucutu
puiutucutu / data-attributes.js
Last active May 11, 2025 17:14
Javascript querySelectorAll for data-attributes
document.querySelectorAll('[data-js]')
// will get you all elements with this attribute.
document.querySelectorAll('[data-js="someFooElement"]')
@MrKelpy
MrKelpy / OpenMAINT-2.3-U20.04-InstallationGuide.md
Last active May 11, 2025 17:12
Installation Guide for openMAINT 2.3 (CMDBuild 3.4.1) in Ubuntu 20.04 LTS

Introduction

OpenMAINT is notoriously hard to install and set up, so I've decided to go ahead and document the steps I took to install it, alongside every bit of information for others that might find it useful.

Important: Not only is openMAINT hard to install, it's also hard to understand. I've created a simple "All you need to know" guide to openMAINT that can be found here.


Acknowledgements, Necessities, etc

⠀⠀⠀⠀If you're reading this wondering why docker can't simply be used to make our life easier... go ahead and try it for yourself. If you're one of the lucky ones who got it working, then great! If not, accept it, relate to us and keep reading this guide. If you're still a bit skeptic about it, I have some notes about docker at the end of the guide, so go take a look.
⠀⠀⠀⠀Either way, we'r

%-------------------------------------------------------------------------%
% 卷积编码
%-------------------------------------------------------------------------%
diary('outputlog.txt');
diary on;
clc
clear all
cnv_g=[1 0 1 1 0 1 1;1 1 1 1 0 0 1;1 1 0 0 1 0 1;1 0 1 1 0 1 1];cnv_q=32*3;
cnv_input=round(rand(1,384*cnv_q));cnv_k0=1;
@aourbo-bot
aourbo-bot / menu.js
Last active May 11, 2025 17:02 — forked from Kenichi-md/menu.js
const { bot, getBuffer, jidToNum, genThumbnail } = require('../lib/');
const { VERSION } = require('../config');
const {
textToStylist,
getUptime,