Skip to content

Instantly share code, notes, and snippets.

View stardigits's full-sized avatar

stardigits stardigits

View GitHub Profile
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script>
<link rel="stylesheet" href="https://unpkg.com/chota@latest">
</head>
<body>
<div id="app">
</div>
</body>
<script>
@stardigits
stardigits / csv2json.js
Last active November 19, 2018 11:12
Node / JS: Convert CSV string to JSON with series by columns
/*
Convert using terminal STDIN & Pipe
Example:
cat files.csv | node csv2json.js
*/
var lines="";
process.stdin.setEncoding('utf8');
process.stdin.on('readable', () => {
var chunk = process.stdin.read();
if (chunk !== null) {
@stardigits
stardigits / csv_header.sh
Created November 20, 2018 20:07
Transpose CSV string header with line number in Bash
# Example:
# echo "one,two,three,four,five" | csv_header
# Result:
# 1 one
# 2 two
# 3 three
# 4 four
# 5 five
@stardigits
stardigits / 1-element-pure-css-pencil-set-buggy.markdown
Created May 1, 2019 07:16
1 element pure CSS pencil set (buggy)

1 element pure CSS pencil set (buggy)

Saw this Pen and thought I could do a 1 element pencil set.

Sadly, this doesn't work quite as intended in any browser. Chrome introduces gradient blurriness (bug 958085) and also has little edge matching issues for the masking gradients. Firefox only uses one mask layer (bug 1548091)

A Pen by Ana Tudor on CodePen.

License.

@stardigits
stardigits / 01-how-to-remaster-mxlinux-19.2.md
Last active July 6, 2020 13:06
How to remaster / make a custom MX Linux 19.2 image

How to remaster / make a custom MX Linux 19.2 image

Incomplete Gist, it's still being written here

Purpose

To reduce the images by removing unnecessary pacakges To Install required packages and pack it to an image which can be run the later using Live USB

Requirements

  1. Virtualbox
@stardigits
stardigits / how-to-install-latest-mariadb-php-apach-on-mxlinux-19.2.md
Last active July 5, 2020 16:50
How to Install Latest Mariadb, PHP, Apache on MX-19.2 (Debian 10/Buster)
@stardigits
stardigits / how-to-install-vscode-on-mxlinux-19.5.md
Created July 4, 2020 15:13
How to Install Visual Studio Code on MX Linux 19.5 (Debian 10)
@stardigits
stardigits / how-to-install-latest-google-chrome-on-mxlinux-19.2.md
Last active July 4, 2020 15:18
How to Install Latest Google Chrome on MX Linux 19.2 / Debian 10
@stardigits
stardigits / remove.md
Created July 5, 2020 17:07
Remove Unwanted Packages on MX Linux 19.2 (Debian 10)

Remove Unwanted Packages on MX Linux 19.2 (Debian 10)

List of packages

  • Firefox
  • Thunderbird
  • Libreoffice
@stardigits
stardigits / tweak-reduce-disk-usage.md
Last active December 30, 2023 23:08
Tweak to have more disk space on MX Linux 19.2 (Debian 10)

Tweak to have more disk space on MX Linux 19.2 (Debian 10)

Steps:

  1. Remove unwanted / unneeded packages
  2. Remove unwanted locale