This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Buffer } from "buffer"; | |
import file0 from "../../.next/BUILD_ID?staticBinary"; | |
import file1 from "../../.next/build-manifest.json?staticText"; | |
import file2 from "../../.next/export-marker.json?staticText"; | |
import file3 from "../../.next/images-manifest.json?staticText"; | |
import file4 from "../../.next/next-server.js.nft.json?staticText"; | |
import file5 from "../../.next/package.json?staticText"; | |
import file6 from "../../.next/prerender-manifest.json?staticText"; | |
import file7 from "../../.next/react-loadable-manifest.json?staticText"; | |
import file8 from "../../.next/required-server-files.json?staticText"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This is bash-completion for 'npm run' command. | |
# Find up package.json and completion 'npm scripts'. | |
_npm_run_completion() { | |
CURRENT="${COMP_WORDS[COMP_CWORD]}" | |
SUBCOMMAND="${COMP_WORDS[COMP_CWORD-1]}" | |
if [ "${SUBCOMMAND}" != "run" ]; then | |
return | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
findup () { | |
CWD=$1 | |
while [ "$CWD" != "/" ]; do | |
if [ -f "$CWD/go.mod" ]; then | |
echo "$CWD/go.mod" | |
return 0 | |
fi | |
CWD=$(dirname $CWD) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# http://qiita.com/takashisite/items/0eeb45c8bbd232e915dd | |
ffmpeg -i movie.mp4 2>&1 | grep "Duration" | cut -d ' ' -f 4 | sed s/,// | sed 's@\..*@@g' | awk '{ split($1, A, ":"); split(A[3], B, "."); print 3600*A[1] + 60*A[2] + B[1] }' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Dockerfile - Ubuntu Xenial | |
# https://github.com/openresty/docker-openresty | |
ARG RESTY_IMAGE_BASE="ubuntu" | |
ARG RESTY_IMAGE_TAG="xenial" | |
FROM ${RESTY_IMAGE_BASE}:${RESTY_IMAGE_TAG} | |
LABEL maintainer="Evan Wies <evan@neomantra.net>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
YOU=`whoami` | |
CWD=$(cd $(dirname $0);pwd) | |
# Create mout storage directory if not exists | |
if [ ! -d "$HOME/perfstore/graphite" ]; then | |
echo "creating directory: $HOME/perfstore/graphite..." | |
mkdir -p $HOME/perfstore/graphite | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---------------------------------------------------------------- | |
-- Lua common HTTP request library | |
-- | |
-- This library is utility for common HTTP/HTTPS request usage, | |
-- and provide easy syntax like python requests module. | |
-- | |
-- Dependencies | |
-- - [luasocket](https://github.com/diegonehab/luasocket) | |
-- - [luasec](https://github.com/brunoos/luasec) | |
-- - [net-url](https://github.com/golgote/neturl) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"context" | |
"errors" | |
"fmt" | |
"time" | |
"encoding/json" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"github.com/satori/go.uuid" | |
"github.com/stretch/testify/assert" | |
) | |
func main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"fmt" | |
"log" | |
"net" | |
"strings" | |
"sync" | |
"time" |
NewerOlder