Skip to content

Instantly share code, notes, and snippets.

View Xerkus's full-sized avatar
:octocat:
Open Sourcing!

Aleksei Khudiakov Xerkus

:octocat:
Open Sourcing!
View GitHub Profile
@Xerkus
Xerkus / gist:3840496
Last active November 24, 2023 00:21
Mime and mail related RFCs

Mime and mail related RFCs

  1. RFC 1847 Security Multiparts for MIME: Multipart/Signed and Multipart/Encrypted
  2. RFC 2045 Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies
  3. RFC 2046 Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types
  4. RFC 2047 Multipurpose Internet Mail Extensions (MIME) Part Three: Message Header Extensions for Non-ASCII Text
  5. RFC 2049 Multipurpose Internet Mail Extensions (MIME) Part Five: Conformance Criteria and Examples
  6. RFC 2076 Common Internet Message Headers
  7. RFC 2183 Communicating Presentation Information in Internet Messages: The Content-Disposition Header Field
@Xerkus
Xerkus / dirtree.html
Created September 30, 2012 19:32
Quick peek into dojo by example. Directory tree listing using cli command "tree" output in xml format as data source. Needs styling, code cleanup and improvements. May be i'll get back to it later.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>file tree</title>
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/dojo/1.8.0/dijit/themes/claro/claro.css">
<style>
.fileIconPhp {background: url('https://raw.github.com/teambox/Free-file-icons/master/16px/php.png') top left}
</style>
<script src="//ajax.googleapis.com/ajax/libs/dojo/1.8.0/dojo/dojo.js"></script>
@Xerkus
Xerkus / passgen
Last active March 17, 2019 05:23
password generation command and shell script for creating hash based deterministic passwords from master password and string, eg: `passgen string 16`
head -c 500 /dev/urandom | tr -dc a-z0-9 | head -c 32; echo
formats = {
"fe-common/core" = {
own_msg = "{ownmsgnick $2 {ownnick $[!12]0}}$1";
own_msg_channel = "{ownmsgnick $3 {ownnick $[!12]0}{msgchannel $1}}$2";
own_msg_private = "{ownprivmsg msg $[!12]0}$1";
pubmsg_me = "{pubmsgmenick $2 {menick $[!12]0}}$1";
pubmsg_me_channel = "{pubmsgmenick $3 {menick $[!12]0}{msgchannel $1}}$2";
pubmsg_hilight = "{pubmsghinick $0 $3 $[!12]1}$2";
pubmsg_hilight_channel = "{pubmsghinick $0 $4 $[!12]1{msgchannel $2}}$3";