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
Vagrant.configure("2") do |config| | |
# config.vm.box = "centos/7" | |
# 共有フォルダが使えるイメージ | |
config.vm.box = "geerlingguy/centos7" | |
config.vm.synced_folder "/Users/<name>/repos", "/repos" | |
config.vm.provision "shell", inline: <<-SHELL | |
sudo yum install -y vim net-tools iputils | |
SHELL | |
config.vm.define :node1 do |node| |
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
@-moz-document regexp("https://my.uopeople.edu/mod/.*") { | |
article > div > article | |
{ | |
box-shadow: -20px 0 0 #76AFB5 | |
} | |
article > div > article > div > article | |
{ | |
box-shadow: -20px 0 0 #AAA | |
} | |
} |
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
""" | |
# rename files in dirs | |
current_dir | |
|- dir1 | |
|- 001.jpg | |
|- 002.jpg | |
|- dir2 | |
|- 001.jpg | |
|- 002.jpg |
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
# cleanup | |
mv /etc/pki/ca-trust/source/blacklist/* /tmp | |
mv /etc/pki/ca-trust/source/anchors/* /tmp | |
# fix the issue | |
cd /etc/pki/ca-trust/source/blacklist | |
wget -O dst.pem https://crt.sh/?d=0687260331A72403D909F105E69BCF0D32E1BD2493FFC6D9206D11BCD6770739 | |
cd /etc/pki/ca-trust/source/anchors | |
wget --no-check-certificate https://letsencrypt.org/certs/isrgrootx1.pem |
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
USER=kujiy | |
curl -s https://api.github.com/users/$USER/keys | jq -r ".[0].key" > ~/.ssh/authorized_keys | |
chmod 600 authorized_keys |
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
chrome_ev: | |
gcc -o chrome_ev chrome_ev.cc |
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
FROM alpine:3.10.1 | |
LABEL maintainer "Adrian B. Danieli - https://github.com/sickp" | |
EXPOSE 80 443 | |
CMD ["nginx", "-g", "daemon off;"] | |
ENV NGINX_VERSION 1.19.1 | |
RUN set -ex \ |
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/sh | |
#ブランチ名を取得 | |
Branch="$(git rev-parse --abbrev-ref HEAD)" | |
#コミットメッセージの最初にブランチ名を追加 | |
#echo "Hook is working..." | |
#echo "コミットメッセージにbranch名を強制付与しています..." |
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
worker_processes 1; | |
error_log /dev/stderr debug; | |
events { | |
worker_connections 256; | |
} | |
http { | |
server { |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# A tool creating comma-separated server list for docker phpmyadmin container | |
# Make these lines from python dictionary | |
# | |
## PMA_VERBOSES=server1,server2,server3,... | |
## PMA_HOSTS=192.168.1.2,10.0.0.200,172.16.1.3,... | |
## PMA_PORTS=3306,13306,3307,... | |
# | |
# How to use |
NewerOlder