Skip to content

Instantly share code, notes, and snippets.

View higarin's full-sized avatar

Daisuke Higashi higarin

  • Tokyo, Japan
View GitHub Profile
# Ansible
- hosts: 127.0.0.1
connection: local
sudo: yes
vars:
etcd_version: v2.2.1-linux-amd64
kubermetes_version: v1.0.6
src: /tmp
@higarin
higarin / FileManager.java
Created November 19, 2015 01:54
Make FIle List
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
public class FileManager {
public static List<File> getParseFileList(String path){
List<File> fileList = new ArrayList<File>();
- hosts: 127.0.0.1
connection: local
sudo: yes
vars:
etcd_version: v2.2.2
kubernetes_version: v1.1.3
src: /tmp
tasks:
#- name: Yum install Docker
postgresql:
image: quay.io/sameersbn/postgresql:9.4-5
environment:
- DB_USER=gitlab
- DB_PASS=password
- DB_NAME=gitlabhq_production
volumes:
- /srv/docker/gitlab/postgresql:/var/lib/postgresql
gitlab:
image: quay.io/sameersbn/gitlab:8.0.5-1
@higarin
higarin / Dockerfile
Created March 11, 2016 10:49
GridDB-Docker
# GridDB
FROM centos:6.7
MAINTAINER lulichn <[email protected]>
RUN set -ex \
&& yum update -y \
&& yum install -y unzip \
&& yum groupinstall -y "Development Tools"
@higarin
higarin / LiveStreaming.md
Last active July 28, 2020 14:43
LiveStreaming
@higarin
higarin / rsync-time-machine.sh
Last active March 30, 2018 00:59
rsync TimeMachine
#!/bin/bash
#
# Backup mimicking Time Machine from Mac OS X using rsync
# --- Variables --- #
OS=$(uname -s)
HOST=$(hostname)
@higarin
higarin / sshd.md
Last active April 28, 2018 09:33
install arch

Disable password

  • Before
# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no
@higarin
higarin / ethtool.md
Created May 1, 2018 01:20
Rock64 ethernet problems
sudo apt-get install python3-pip
pip3 install docopt gmusicapi-wrapper
wget https://raw.githubusercontent.com/thebigmunch/gmusicapi-scripts/master/gmusicapi_scripts/gmupload.py
sudo mv gmupload.py /usr/bin/gmupload
sudo chmod +x /usr/bin/gmupload