Skip to content

Instantly share code, notes, and snippets.

View noritada's full-sized avatar

Noritada Kobayashi noritada

View GitHub Profile
@ginrou
ginrou / construct_lenna.py
Last active August 14, 2023 09:27
DCTでlennaを再構成する
#!/bin/env python
import numpy as np
import scipy.misc
from scipy.fftpack import dct, idct
import sys
H = 128
W = 128
lenna = scipy.misc.imresize(scipy.misc.lena(), (H, W)).astype(float)
@miyakogi
miyakogi / config.md
Last active February 8, 2024 08:57
JSON, YAML, ini, TOML ざっくり比較
@jbrisbin
jbrisbin / riak-kv.yml
Last active November 25, 2020 10:46
Example docker-compose files for Riak KV and TS
version: "2"
services:
coordinator:
image: basho/riak-kv
ports:
- "8087"
- "8098"
environment:
- CLUSTER_NAME=riakkv
labels:
@peterdemartini
peterdemartini / command.sh
Last active May 20, 2024 11:04
Exclude node_modules in timemachine
find `pwd` -type d -maxdepth 3 -name 'node_modules' | xargs -n 1 tmutil addexclusion
@HyperBrain
HyperBrain / lifecycle-cheat-sheet.md
Last active July 19, 2024 19:37
Serverless Lifecycle Cheat Sheet

Serverless plugin author's cheat sheet

This cheat sheet provides a detailed overview of the exposed lifecycle events and available commands (and entrypoints) of the Serverless framework, that can be hooked by plugins (internal and external ones). The document is structured by the commands invoked by the user.

Lifecycle events are shown as the globally available outer events (all providers) and sub lifecycle events that are provider specific in the called order. Currently only the AWS provider is shown. If you have information about the other provider,

@silenceshell
silenceshell / gist:d97c3d9b0ba21d71f21c3a60db1fb284
Last active November 29, 2023 05:26 — forked from jordelver/gist:3073101
Set the Mac OS X SOCKS proxy on the command line

Set the Mac OS X SOCKS proxy on the command line

a.k.a. what to do when your ISP starts blocking sites :(

1 ssh to remote server as a SOCKS server

ssh -D 6080 {user}@{ssh_server} -p {ssh_port}
@itruls
itruls / set-defaults.sh
Last active February 15, 2024 11:33
Configuring Mac OS X from command line
# Some found in https://github.com/nicksp/dotfiles/blob/master/osx/set-defaults.sh
###########################
### Finder improvements ###
###########################
echo "Improving Finder:"
# TODO: Should these commands be added to .profile or similar, or do they only need run once.
echo "Show ~/Library folder ..."
chflags nohidden ~/Library
@tintoy
tintoy / ssh_jump.py
Created April 27, 2018 02:45
SSH via jump-hosts using Paramiko
#!/usr/bin/env python3
import os
import paramiko
ssh_key_filename = os.getenv('HOME') + '/.ssh/id_rsa'
jumpbox_public_addr = '168.128.52.199'
jumpbox_private_addr = '10.0.5.10'
target_addr = '10.0.5.20'

original: https://landshark.io/2020/08/16/web-by-google.html

翻訳のベースには https://www.deepl.com/translator を使い、表現を整えています。

Web by Google™

Mozilla の財務状況を見ると、Google が独占禁止法違反の疑いを寄せ付けないために生命維持をしていると結論づけるのが妥当である。 Mozilla の Google との契約は今後の収益の少なくとも70%を占めることになる。 Googleは4億ドル以上も払って、シェアが4%のブラウザーでデフォルトの検索プロバイダーになるのだ。しかも1年間だけ。 私の次回の給料を賭けてもいいが、Google がこのかなり気前の良い契約を結んだのは、Microsoft の Internet Explorer による独占をめぐるトラブルの再発を避けるためだろう。