I hereby claim:
- I am aceakash on github.
- I am akashkurdekar (https://keybase.io/akashkurdekar) on keybase.
- I have a public key ASBLsXBW33wBA9_9GdGVtJk55Tw3UJ7AIX8eqcKqCFms1Qo
To claim this, I am signing this object:
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
func main() { | |
myList := []int64{1,2,3,4,5,6,7,8,9} |
/* | |
xq is from here: https://github.com/kislyuk/yq | |
xq '.' ./input-ufx.xml > input-ufx.json && node index.js | |
*/ | |
const fs = require('fs') | |
const ufxJsonFileName = "input-ufx.json" | |
const ufxJson = fs.readFileSync(ufxJsonFileName).toString() |
package main | |
import ( | |
"github.com/matryer/is" | |
"io" | |
"io/ioutil" | |
"strings" | |
"testing" | |
) |
I hereby claim:
To claim this, I am signing this object:
const fs = require('fs') | |
console.log('========= About to read /etc/hosts') | |
const buf = fs.readFile('/etc/hosts', (err, buf) => { | |
if (err) { | |
console.error('Error reading hosts file', err) | |
return | |
} | |
console.log('========= HOSTS FILE (start)') | |
console.log(buf.toString('utf-8')) |
npm i live-server -g
live-server
Open SQLite3 shell with headers and column mode on:
sqlite3 -column -header your_db.db
Meta Commands
Meta Command | Description |
---|
module Main exposing (..) | |
import Html | |
main : Program Never Model Msg | |
main = | |
Html.beginnerProgram { model = initialModel, view = view, update = update } | |
import os | |
import subprocess | |
all_dir_contents = os.listdir() | |
mkv_files = [file for file in all_dir_contents if file.endswith('.mkv') and not file.endswith('.converted.mkv') ] | |
for mkv in mkv_files: | |
print('========== Starting ' + mkv + ' ===========') | |
out_file_name = mkv[:-4] + '.converted.mkv' |