Skip to content

Instantly share code, notes, and snippets.

View shuuji3's full-sized avatar
🌈
🌎 🌟 🦚 🌌 ✨

TAKAHASHI Shuuji shuuji3

🌈
🌎 🌟 🦚 🌌 ✨
View GitHub Profile
@mennwebs
mennwebs / slack-files-downloader.sh
Last active July 1, 2024 03:34 — forked from greird/slack-files-downloader.sh
Download all files from a Slack workspace export folder.
#!/bin/bash
#
# This script will browse a Slack export folder and download all files in a new /export folder
#
# HOW TO:
# 1. As a Workspace admin, download an export of your Slack history (https://www.slack.com/services/export)
# 2. Make sure you have jq installed (https://stedolan.github.io/jq/)
# 3. Place this file at the root of your Slack export folder, next to channels.json
# 4. Run `bash slack-files-downloader.sh` in your terminal
#
@jackblk
jackblk / LogitechF310_Macbook.MD
Created April 13, 2021 16:07
Getting Logitech F310 to work with Macbook USB-C port

Connect & use Logitech F310 with Macbook

Since my Macbook Pro only has USB-C port, I used an USB-A to USB-C adapter to connect my F310 to it, but it does not work (pressing MODE button does not turn on the LED).

How to

To make it work:

  • Disconnect F310 from Mac
  • On F310: switch X-input to D-input
  • Hold Logitech button (in the middle)
  • Connect F310 to Mac via adapter, now you can release the Logitech button.
@chkk525
chkk525 / tepco_report.js
Created January 3, 2021 07:44
くらしTEPCO webからデイリーの消費電力のデータを落としてくるスクリプト
const get_login_options = () => {
const LOGIN_URL = "https://www.kurashi.tepco.co.jp/kpf-login";
const payload_data = {
ACCOUNTUID: 'test@gamil.com',
PASSWORD: 'secure-password-1234',
HIDEURL: '/pf/ja/pc/mypage/home/index.page?',
LOGIN: 'EUAS_LOGIN'
};
@alexellis
alexellis / krustlet-inlets.md
Last active November 6, 2021 17:22
krustlet-inlets

Tutorial - Connect your krustlet to any Kubernetes cluster with inlets

  • Provision a cluster on DigitalOcean Kubernetes or AKS

  • Prepare your krustlet and get its certificates

  • Create a Kubernetes secret for inlets

export TOKEN=$(head -c 16 /dev/urandom |shasum|cut -d- -f1)
@tianhaoz95
tianhaoz95 / open-in-gitpod.md
Last active February 29, 2024 21:43
Code to add a open in Gitpod badge

Here is your awesome Open in Gitpod badge

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/[your GitHub username]/[your repository])

Open in Gitpod

@Terminus-IMRC
Terminus-IMRC / cannon.py
Last active July 1, 2019 10:15
Matrix-matrix multiplication: Cannon's algorithm
#!/usr/bin/env python3
import numpy as np
# Assume that P = N * N.
N = 4
A = np.arange(0, 2 * N * N, 2).reshape(N, N)
B = np.arange(1, 2 * N * N, 2).reshape(N, N)
C_gt = A.dot(B)
@kaityo256
kaityo256 / スパコンと円周率の話.md
Last active April 2, 2023 07:01
スパコンと円周率の話

スパコンと円周率の話

はじめに

2019年3月14日、Googleが円周率を31兆桁計算したと発表しました。このニュースを聞いて僕は「GoogleがノードまたぎFFTをやったのか!」と大変驚き、「円周率の計算には高度な技術が必要」みたいなことをつぶやきました。しかしその後、実際にはシングルノードで動作する円周率計算プログラム「y-cruncher」を無改造で使っていることを知り、「高度な技術が必要だとつぶやいたが、それは撤回」とつぶやきました。円周率の計算そのもののプログラムを開発していなかったとは言え、これだけマッシブにディスクアクセスのある計算を長時間安定実行するのは難しく、その意味においてこの挑戦は非自明なものだったのですが、まるでその運用技術のことまで否定したかのような書き方になってしまい、さらにそれが実際に計算を実行された方の目にもとまったようで、大変申し訳なく思っています。

このエントリでは、なぜ僕が「GoogleがノードまたぎFFT!?」と驚いたか、そんな話を書いてみたいと思います。

円周率の計算とスパコン

@ymmt2005
ymmt2005 / neco_skills.md
Last active September 24, 2023 10:59
Neco プロジェクトのスキルシート

Neco プロジェクトのスキルチェックシート

Neco は大量の物理サーバーを効率的に管理・運用することを目的とした開発プロジェクトです。 Kubernetes を中心に高度な自律運用の実現を目指しています。

本文書はプロジェクトに参加しているメンバーが身に着けている要素技術を並べたものです。

応募時点ですべてを身に着けている必要はまったくありません。 社内にはチュートリアル資料が多数用意されていますので、必要に応じて学べます。

@ipmb
ipmb / doh-on-mac.md
Created May 31, 2018 20:28
DNS over HTTP (DOH) on MacOS

Install

brew install dnscrypt-proxy

Configure

Edit /usr/local/etc/dnscrypt-proxy.toml as needed. I added/modified the following lines: