Skip to content

Instantly share code, notes, and snippets.

#/bin/bash
speedtest-cli --list | tail -n +2 | head -n 5 | while read s;do echo "### "$s;speedtest-cli --server $(echo $s | sed "s/\(\d*\)).*/\1/g") --simple --bytes;done > $(date +%Y%m%d-%H%M).txt
#!/bin/bash
echo "Content-type: text/plain"
# echo "" # avahi-browseの出力になんか空行があるのでここを省略
# query_paramのパース
get_query_string() {
saveIFS=$IFS
IFS='=&'
@cumet04
cumet04 / markedjs.inc.php
Created February 17, 2016 12:01
pukiwikiでmarkdownを使うプラグイン(marked.js利用)
<?php
/**
* Markdon Syntax with marked.js
*/
function plugin_markedjs_convert()
{
$args = func_get_args();
$body = array_pop($args);
$noskin = in_array("noskin", $args);