- Pihole run script
- Pihole service script
This file contains hidden or 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
#!/usr/bin/env bash | |
set -o nounset -o pipefail -o errexit | |
main() { | |
local INSTALL_PATH="${HOME}/code" | |
local GITHUB_USER="ViBiOh" | |
local DOTFILES_NAME="dotfiles" | |
local DOTFILES_BRANCH="main" | |
local ARCHIVE_FILENAME="${INSTALL_PATH}/dotfiles.zip" |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
import statsmodels.api as sm | |
import pandas as pd | |
from matplotlib import pyplot as plt | |
def main(): | |
# 過去の案件データの取り込み(診断工数、画面数、診断員の経験値、Webサーバのレスポンス速度) | |
data = pd.read_csv('cpu_scores.csv', skiprows=1, names=['cores', 'threads', 'base_clock', 'boost_clock', 'L1_cache', 'L2_cache', 'L3_cache', 'CinebenchR20'], encoding='UTF_8') | |
# 画面数、診断員の経験値、Webサーバのレスポンス速度を説明変数として定義 |
This file contains hidden or 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
Budget(SGD) | Suggested CPU | Suggested GPU | |
---|---|---|---|
$500 or less | Athlon 3000G | - | |
$800 or less | Ryzen 5 3400G | - | |
$1000 or less | Ryzen 5 3600 | GeForce GTX 1650 Super OR Radeon RX 5500 | |
$1300 or less | Ryzen 5 3600 | Radeon RX 5700 | |
$1500 or less | Ryzen 5 3600 | Radeon RX 5700XT | |
$2000 or less | Ryzen 7 3700X | GeForce RTX 2080 Super |
This file contains hidden or 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
plutil -convert json ~/Library/LaunchAgents/org.virtualbox.vboxwebsrv.plist -o - | npx yamlxjson | |
This file contains hidden or 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
cask "webstorm" do | |
version "2020.2.4,202.8194.6" | |
sha256 "5f8559b775ce5cb7ddb76475f97f8da1e33a120c42c4ebe2e928032a2dcf7072" | |
url "https://download.jetbrains.com/webstorm/WebStorm-#{version.before_comma}.dmg" | |
appcast "https://data.services.jetbrains.com/products/releases?code=WS&latest=true&type=release" | |
name "WebStorm" | |
desc "JavaScript IDE" | |
homepage "https://www.jetbrains.com/webstorm/" |
This file contains hidden or 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
els=($(curl -s 'https://jsonplaceholder.typicode.com/photos' | jq '.[] | select(.url|test("^(https)://")) | .url')); selected=${els[$RANDOM % ${#els[@]} ]}; selected="${selected%\"}"; selected="${selected#\"}"; echo $selected | pbcopy |
This file contains hidden or 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
- hosts: localhost | |
connection: local | |
gather_facts: no | |
sudo: no | |
vars: | |
homebrew_taps: | |
- homebrew/binary | |
- homebrew/versions | |
- homebrew/dupes | |
- homebrew/dupes |
This file contains hidden or 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 | |
SALT_FORMULA_HASH=7abdf217a99d70344b6d936375e802837276a2a3 | |
rpm --import https://repo.saltstack.com/yum/redhat/6/x86_64/latest/SALTSTACK-GPG-KEY.pub | |
cat >/etc/yum.repos.d/saltstack.repo <<EOS | |
[saltstack-repo] | |
name=SaltStack repo for RHEL/CentOS 6 | |
baseurl=https://repo.saltstack.com/yum/redhat/6/\$basearch/latest | |
enabled=1 | |
gpgcheck=1 | |
gpgkey=https://repo.saltstack.com/yum/redhat/6/\$basearch/latest/SALTSTACK-GPG-KEY.pub |
- download and unzip stable RealtimePi distro
- write the extracted .img to sdcard with Etcher