Skip to content

Instantly share code, notes, and snippets.

jQuery('#details-module').hide();
jQuery('#viewissuesidebar').hide();
jQuery('.command-bar').hide();
jQuery('#page').replaceWith(jQuery('.content'));
jQuery('.issue-view').css('overflow-y','visible');
#Biggest files
du -hx * | sort -rh | head -20
#files over 50Mb
$ find . -type f -size +50000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
#https://www.cyberciti.biz/faq/find-large-files-linux/
/////////////////////////////////////
var got = require("got");
var toMarkdown = require("to-markdown")
var response = await got("http://www.whale.to/m/buchwald9.html");
console.log(toMarkdown(response.body))
https://runkit.com/docs/await
var got = URL => require("got")(URL, { json : true });
var response = await got("https://api.github.com/search/repositories?q=javascript&sort=stars&order=desc");
curl http://www.whale.to/b/silentweapon.html | htmlmd -p # virker ikke
htmlmd -i -a -p ost.html | sed -e 's/^##/#/g' > ost.md
#!/usr/bin/env node
process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function(data) {
// do something and write output
process.stdout.write(data);
#!/bin/bash
set -e
echo Testing if any merge problems in the code
grep -r --exclude-dir=node_modules "<<<<<<<" ./folderToSearch && (echo "Merge problem found" && exit 1)
echo Tests OK
-- https://bigquery.cloud.google.com/
SELECT
s.stars,
f.repo_name,
f.path
FROM
(SELECT
id
FROM
for run in {1..1000}; do find -name \*.tmp | wc -l ; sleep 5; done
var read = require('node-readability');
var htmlmd = require('html-md');
read('http://www.whale.to/b/silentweapon.html', function(err, article, meta) {
let md = htmlmd(article.content, {inline:true})
// Move all headings up a knutch
md = md.replace(/^\#\#/g,"#");
Title title Note Heading Depth
Manifest
_Anti Mediocracy Manifesto for Software Development_
0

[TITLE]

One