Skip to content

Instantly share code, notes, and snippets.

View Xvezda's full-sized avatar
418 I'm a teapot

Xvezda Xvezda

418 I'm a teapot
View GitHub Profile
@Xvezda
Xvezda / .gitmessage
Last active September 27, 2021 07:29 — forked from median-man/.gitmessage
This commit message template helps you write **useful** commit messages.
# <type>: <subject>
# Using a Maximum Of 50 Characters ------------->|
# Try To Limit Each Line to a Maximum Of 72 Characters --------------->|
# Explain how the commit addresses the issue
# ^-- NOTE: The line above is emptied by intended
# Enter commit message below
# --- COMMIT END ---
@Xvezda
Xvezda / snippet.js
Last active April 22, 2021 15:54
통신사 IP의 준말로 '"통피"'라고 부르기도 한다. - https://namu.wiki/w/%ED%86%B5%EC%8B%A0%EC%82%AC%20IP
function iterateIPRange(start, end) {
const prefix = start.split('.')[0]
console.assert(prefix === end.split('.')[0])
const from = start.split('.')[1]
const to = end.split('.')[1]
const results = []
for (let i = from; i <= to; ++i) {
results.push([prefix, i].join('.'))
}
return results
// ==UserScript==
// @name Custom page change event
// @namespace http://xvezda.com/
// @version 0.1
// @description fire event on page changed.
// @author Xvezda
// @match http://*/*
// @grant none
// ==/UserScript==
{
".123" : "application/vnd.lotus-1-2-3",
".3dml" : "text/vnd.in3d.3dml",
".3g2" : "video/3gpp2",
".3gp" : "video/3gpp",
".a" : "application/octet-stream",
".aab" : "application/x-authorware-bin",
".aac" : "audio/x-aac",
".aam" : "application/x-authorware-map",
".aas" : "application/x-authorware-seg",
# Created by fist; The fast gist uploader - https://github.com/Xvezda/fist
@Xvezda
Xvezda / README.txt
Created March 29, 2021 14:26
Youtube premiere countdown preview | https://github.com/Xvezda/premiere-countdown
# Created by fist; The fast gist uploader - https://github.com/Xvezda/fist
@Xvezda
Xvezda / column2markdown.sh
Created January 17, 2021 23:54
COLUMN(1) to MarkDown table with SED(1)
#!/bin/bash
sed -e 's/[[:space:]][[:space:]]\([^[:space:]]\)/ \| \1/g' -e 's/^/\| /' -e 's/$/ \|/'
@Xvezda
Xvezda / README.txt
Created January 3, 2021 13:04
Created by fist; The fast gist uploader - https://github.com/Xvezda/fist
# Created by fist; The fast gist uploader - https://github.com/Xvezda/fist
@Xvezda
Xvezda / test.js
Last active October 11, 2020 18:15
Minimal JavaScript test setup
#!/usr/bin/env node
/*!
* Copyright (c) 2020 Xvezda <xvezda@naver.com>
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*/
function ordinal(i) {
@Xvezda
Xvezda / gulpfile.js
Created October 10, 2020 04:18
See what gulp src method pushing
const { src, dest } = require('gulp');
exports.default = function(cb) {
src('src/*').on('data', function(chunk) {
console.log(chunk);
});
cb();
};