In the root of your project, add .gitlab-ci.yml
with the configuration below.
image: node:latest
stages:
Today I tried to setup a small Kubernetes cluster on top of 3 Raspberry Pi 4 (4GB Memory). Here is the steps to install the cluster.
I have 3 Raspberry Pi 4 stacked with PoE headers and connected to a PoE switch at home. The are connected to Internet through a home router. All Pis are equipped with a 64GB Samsung SDXC card flushed with Ubuntu 20.04 image.
#!/bin/sh | |
# Amazon Linux 2 AMI (HVM), SSD Volume Type - ami-062f7200baf2fa504 (64 ビット x86) で動作確認済み | |
# AWS EC2 の ステップ3: インスタンスの詳細の設定 高度な詳細 > ユーザーデータ に貼り付けることで、 | |
# インスタンス起動時にcatapult-testnet-bootstrapのpeerノードのセットアップを行います。 | |
# また、動作の確認用に最新ブロック高を外部へ公開するサービスも動作させます。 | |
# http://__ip_addr__:50080/height.txt でブロック高を確認できます。 | |
# | |
# 次の作業を行います。 | |
# * ssh接続ポートの変更 | |
# * docker,docker-composeのインストール |
#!/bin/sh | |
# create docker engine config at /etc/docker/daemon.json | |
# to limit the size of container logs. | |
# usage (with curl): | |
# curl -s https://gist.githubusercontent.com/wzulfikar/e7740906110beaa90216f8f37320f5d8/raw/docker-daemon-log-opts.sh | sh | |
config_dir="/etc/docker" | |
config_file="$config_dir/daemon.json" | |
max_size=50m |
<!-- Instructions: | |
- Download and unzip Mojave dynamic background here: https://files.rb.gd/mojave_dynamic.zip | |
- Rename the extracted folder as "mojave-background" (Excuse the trouble but I renamed it on my machine and already use that path in the XML file) | |
- Save this xml file next to the Mojave background files | |
- Fix the path to the background images below (better using absolute path) | |
- Lastly, either: | |
+ GNOME: Use gnome-tweaks tool to select this XML as wallpaper (as default wallpaper settings won't let you choose wallpaper from custom path) | |
+ MATE: Go to background setting (in Appearance) > Choose +Add... > make sure **All files** filter is selected at the bottom right > Then choose mojave.xml | |
--> | |
<background> |
# Description: Boxstarter Script | |
# Author: Jess Frazelle <jess@linux.com> | |
# Last Updated: 2017-09-11 | |
# | |
# Install boxstarter: | |
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
# | |
# You might need to set: Set-ExecutionPolicy RemoteSigned | |
# | |
# Run this boxstarter by calling the following from an **elevated** command-prompt: |
import sys,os,zipfile,ftplib, configargparse | |
from os.path import basename | |
def ftp_login(user,passwd,host,port=21,timeout=30): | |
try: | |
ftp = ftplib.FTP() | |
ftp.connect(host, port, timeout) | |
ftp.login(user, passwd) | |
return ftp | |
except ftplib.all_errors as e: |
################## | |
# Privacy Settings | |
################## | |
# Privacy: Let apps use my advertising ID: Disable | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0 | |
# To Restore: | |
#Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 1 | |
# Privacy: SmartScreen Filter for Store Apps: Disable | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 0 |
<?php | |
/* | |
Plugin Name: Allow Update Notifications | |
Plugin URI: https://gist.github.com/jaydansand/2e41490a8b040a199db4 | |
Description: WordPress plugin to allow module/theme/core update notifications even when DISALLOW_FILE_MODS is TRUE. | |
Version: 1.0 | |
Author: Jay Dansand, Technology Services, Lawrence University | |
Author URI: https://gist.github.com/jaydansand | |
*/ | |
/* Copyright 2014 Lawrence University |
import sublime | |
import sublime_plugin | |
class NumberCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
selection = self.view.sel() | |
for region in selection: | |
try: | |
value = int(self.view.substr(region)) | |
self.view.replace(edit, region, str(self.op(value))) |