Skip to content

Instantly share code, notes, and snippets.

View lulichn's full-sized avatar

Daisuke Higashi lulichn

  • 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
@lulichn
lulichn / 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
@lulichn
lulichn / Dockerfile
Created March 11, 2016 10:49
GridDB-Docker
# GridDB
FROM centos:6.7
MAINTAINER lulichn <daisuke.develop@gmail.com>
RUN set -ex \
&& yum update -y \
&& yum install -y unzip \
&& yum groupinstall -y "Development Tools"
@lulichn
lulichn / LiveStreaming.md
Last active July 28, 2020 14:43
LiveStreaming
@lulichn
lulichn / 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)
@lulichn
lulichn / 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
@lulichn
lulichn / 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