Infura 提供公開的 Ethereum 主網和測試網路節點。到 Infura 官網申請,只要輸入一點基本資料和 Email,就可以收到 API-key。
Discover gists
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
\documentclass[dvipdfmx]{jsbook} | |
\usepackage{lmodern} | |
\usepackage{ccfonts} % ccfonts を入れると、sin, cosだけじゃなくすべての英文がConcreteになってしまうので注意 | |
\usepackage[euler-digits]{eulervm} | |
\usepackage[T1]{fontenc} | |
\usepackage{textcomp} | |
\usepackage[utf8]{inputenc} | |
\usepackage{amsmath,amssymb} | |
\pagestyle{empty} | |
\begin{document} |
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
# settings we’re about to change | |
osascript -e 'tell application "System Preferences" to quit' | |
# Ask for the administrator password upfront | |
sudo -v | |
# Keep-alive: update existing `sudo` time stamp until `.macos` has finished | |
while true; do | |
sudo -n true | |
sleep 60 | |
kill -0 "$$" || exit |
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
// File: Skeleton.kt | |
@Composable | |
fun Skeleton( | |
modifier: Modifier = Modifier, | |
shape: Shape, | |
backgroundColor: Color = SkeletonTokens.BackgroundColor.toColor(), | |
contentColor: Color = SkeletonTokens.ContentColor.toColor(), | |
maxAlpha: Float = SkeletonTokens.MaxAlpha, | |
initialDelay: Int = 0, | |
animationSpec: InfiniteRepeatableSpec<Float> = if (initialDelay == 0) { |
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
<?php | |
/** | |
* Insert middleware before \Illuminate\Session\Middleware\StartSession::class, | |
* Example: | |
* ChangeLifetimeMiddleware::class, | |
* \Illuminate\Session\Middleware\StartSession::class, | |
*/ | |
namespace App\Http\Middleware; |
- Open a webpage that uses the CA with Firefox
- Click the lock-icon in the addressbar -> show information -> show certificate
- the certificate viewer will open
- click details and choose the certificate of the certificate-chain, you want to import to CentOS
- click "Export..." and save it as .crt file
- Copy the .crt file to
/etc/pki/ca-trust/source/anchors
on your CentOS machine - run
update-ca-trust extract
- test it with
wget https://thewebsite.org
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 should be run from the /ios directory of your project | |
rm Podfile.lock | |
rm -rf Pods | |
rm -rf ~/Library/Caches/CocoaPods | |
rm -rf ~/Library/Developer/Xcode/DerivedData | |
pod cache clean --all | |
pod install |
NewerOlder