Skip to content

Instantly share code, notes, and snippets.

View tuxedocat's full-sized avatar
🐈‍⬛
WFH with cats

yu-s tuxedocat

🐈‍⬛
WFH with cats
View GitHub Profile
@tuxedocat
tuxedocat / build-docx.sh
Created May 11, 2016 06:05
pandoc markdown to xxx
#!/bin/bash
pandoc -f markdown_github+tex_math_dollars+pandoc_title_block+ignore_line_breaks -t docx -o $1.docx $1
@tuxedocat
tuxedocat / count-inodes.sh
Created June 9, 2016 00:20
Counts num. of inodes in given directory, writes (n_inodes path) as report, and shows total num. of inode usage.
#!/bin/bash
find $1 -xdev -printf '%h\n' |
sort |
uniq -c |
sort -k 1 -n -r |
tee inodeusage |
tr -s " " |
cut -f 2 -d " " |
python -c"import sys; print(sum(map(int, sys.stdin)))"
@tuxedocat
tuxedocat / Vagrantfile
Created July 13, 2016 09:13
Vagrantfile for CentOS7 wih Anaconda3 ready
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@tuxedocat
tuxedocat / download_oracleJDK.md
Last active December 9, 2016 05:27
wget command example for downloading Oracle JDK
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u102-b14/jdk-8u102-linux-x64.rpm

Cloudera CDHの手動インストールとVMクラスタ構築方法

Configuration

  • master (namenode, service): cdh-vm1.local
  • slave (datanode, worker): cdh-vm2.local, cdh-vm3.local
  • VM: CentOS 7.2 VirtualBox 4Cores 8GB RAM

Prerequisites

@tuxedocat
tuxedocat / conf.py
Created December 9, 2016 05:25
conf.py example for latexpdfja output with Sphinx1.4.x Python3.5 on Windows
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# My app documentation build configuration file, created by
# sphinx-quickstart on Wed Nov 16 16:49:33 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
@tuxedocat
tuxedocat / base.html.erb
Last active December 21, 2016 00:03
Use highlight.js in Redmine 3.2.0 in a stupid way...
<!-- redmine/htdocs/app/views/layouts/base.html.erb -->
<!DOCTYPE html>
<html lang="<%= current_language %>">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<title><%= html_title %></title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="<%= Redmine::Info.app_name %>" />
@tuxedocat
tuxedocat / _slides.pdf
Last active December 21, 2018 09:06
まとめ:Machine Learning: The High-Interest Credit Card of Technical Debt Sculley et al. (Google), SE4ML: NIPS 2014 Workshop
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tuxedocat
tuxedocat / marp_slide.md
Created July 4, 2017 02:25
Slide template for Marp
<style> * { font-family: "Noto Sans JP", sans-serif; font-weight: lighter; } </style>