Skip to content

Instantly share code, notes, and snippets.

View okmttdhr's full-sized avatar
🥕
Is this organic?

okmttdhr, tada okmttdhr

🥕
Is this organic?
View GitHub Profile

How we incorporate next and cloudfront (2018-04-21)

Feel free to contact me at robert.balicki@gmail.com or tweet at me @statisticsftw

This is a rough outline of how we utilize next.js and S3/Cloudfront. Hope it helps!

It assumes some knowledge of AWS.

Goals

@deterralba
deterralba / Dockerfile
Created August 23, 2017 14:14
Start traefik with docker backend in circleCI 2.0 (after setup_remote_docker)
# Docker file used for traefik in CircleCI
FROM traefik
# Necessary because CircleCI use a tcp endpoint and not the unix socket.
# It requires certificats for TLS, and because CircleCI use docker machine,
# mounting a volume doesn't work.
# NB circle-cert needs to contain $DOCKER_CERT_PATH, see README.md
COPY circle-cert /cert
# if you used to share other volumes, you need to copy them now or with `docker cp`
@nikhita
nikhita / update-golang.md
Last active April 27, 2024 13:09
How to update the Go version

How to update the Go version

System: Debian/Ubuntu/Fedora. Might work for others as well.

1. Uninstall the exisiting version

As mentioned here, to update a go version you will first need to uninstall the original version.

To uninstall, delete the /usr/local/go directory by:

@chsh
chsh / mastodon-sources.md
Last active August 24, 2022 15:30
mastodonのソースコード一覧

mastodonのソースコード一覧

pawoo.netやfriends.nicoなどのように、大手企業がmastodonインスタンスを提供し始めています。 それぞれは独自の拡張を行い、魅力を高めています。 mastodonそのものはAGPLのため、改変したソースコードが入手できるようにする必要がありますが、その一覧があったらいいかなと思ってまとめることにしました。 とは言え、私が知っているのはごく一部。もしみかけたら @chsh@bookn.me へのメンションにてお知らせください。

インスタンス

提供会社(団体・個人) インスタンスURL ソースコードURL 本家masterからの差分 追加日
ピクシブ 🐘 https://pawoo.net/ :octocat: pixiv/mastodon/tree/pawoo 📊 2017/4/23
@mizchi
mizchi / gen-pkg.js
Last active February 19, 2017 07:41
Create inner package by yaml
#!/usr/bin/env node
/* eslint-disable */
/*
Usage.
: Input generator.yml
pkgName: '@x/y'
testExtension: .test.js
echo-server-epoll
echo-server-poll
talk
talk.dSYM
@vjau
vjau / Exemple.js
Last active January 20, 2017 03:52
nigthwatch command to fake Date in the browser. Put this in a commands folder and set the folder name in nightwatch.json "custom_commands_path" : "./commands",
module.exports = {
"we go on the page": function(browser){
browser
.url("http://localhost:3000")
.waitForElementVisible("#stuff", 10000)
.assert.title("MyPage")
},
"we fake the Date": function(browser){
browser
.fakeDate(new Date(2001, 1, 1).getTime()) //DONE !
@sile
sile / damps-04.md
Last active May 24, 2022 09:57
Distributed Algorithms for Message-Passing Systems: 第四章

第四章 リーダー選出アルゴリズム

抜粋

  • リーダー選出問題を扱った章
  • リーダー選出:
    • 分散システムを構成するプロセス群中から一つを選ぶ
    • 通常、選ばれたプロセスは、調整/制御を目的とし、特別な役割を果たすことが要求される
  • リーダー選出は分散システムの対称性を崩す
@uupaa
uupaa / image.resize.in.github.flavored.markdown.md
Last active May 2, 2024 14:54
image resize in github flavored markdown.

Image source

https://gyazo.com/eb5c5741b6a9a16c692170a41a49c858.png

Try resize it!

  • ![](https://gyazo.com/eb5c5741b6a9a16c692170a41a49c858.png | width=100)