ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
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
// model: gpt-4-vision-preview | |
const input = 'can you help me land this skateboarding trick?' | |
const frames = [ | |
// Frames should be a list of image URLs or bytes | |
] | |
const messages = [ | |
...messages, |
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
using System.Collections.Generic; | |
using System.IO; | |
namespace Portal.Common.EmbeddedResources | |
{ | |
public static class EmbeddedResourceTypes | |
{ | |
public static string GetContentType(string path) | |
{ | |
return MimeTypes[Path.GetExtension(path)]; |
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
function displayTime() { | |
var time = moment().format('HH:mm:ss'); | |
$('#clock').html(time); | |
setTimeout(displayTime, 1000); | |
} | |
$(document).ready(function() { | |
displayTime(); | |
}); |
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
function countdown(start) { | |
return [...Array(start + 1).keys()].reverse() | |
} |
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 { app } from 'hyperapp'; | |
import { router } from './router'; | |
import routes from './routes'; | |
import state from './state'; | |
import actions from './actions'; | |
const routable = router(routes); | |
app(routable)({ state, actions }).init(); // init is just an action, not related to routing |
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
const acorn = require('acorn'); | |
const json5 = require('json5'); | |
const getComments = (input) => { | |
const opts = { | |
onComment: [] | |
}; | |
try { | |
const ast = acorn.parse(input, opts); |
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
for i in *.pem; do echo -n "$i >>> "; openssl x509 -enddate -noout -in $i; done |
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
# /etc/systemd/system/docker.service.d/10-base.conf | |
[Service] | |
ExecStart= | |
ExecStart=/usr/bin/docker daemon \ | |
-H fd:// \ | |
-H tcp://0.0.0.0:2376 \ | |
-H unix:///var/run/docker.sock \ | |
--dns-search=service.consul \ | |
--dns=10.135.27.153 |
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 | |
# An example hook script to verify what is about to be pushed. Called by "git | |
# push" after it has checked the remote status, but before anything has been | |
# pushed. If this script exits with a non-zero status nothing will be pushed. | |
# | |
# This hook is called with the following parameters: | |
# | |
# $1 -- Name of the remote to which the push is being done | |
# $2 -- URL to which the push is being done |
NewerOlder