Skip to content

Instantly share code, notes, and snippets.

View 74th's full-sized avatar

Atsushi Morimoto 74th

View GitHub Profile
@74th
74th / godoc.service
Created February 3, 2017 00:25
Systemd godoc service
[Unit]
Description=godoc service
#Before=nginx
[Service]
Type=simple
USER=jenkins
GROUP=jenkins
Environment=GOPATH=/var/lib/jenkins/gopath/
Environment=GOROOT=/var/lib/jenkins/goroot/go1.7.3/
@74th
74th / put-authorized_keys.sh
Created April 28, 2017 22:28
put-authorized_keys.sh
#!/bin/bash
set -Ceux
if [ $# -ne 1 ]; then
echo "put-authorized_keys.sh <HOSTNAME>"
exit 1
fi
ssh $1 mkdir .ssh/ \; true
scp ~/.ssh/id_rsa.pub $1:.ssh/authorized_keys
@74th
74th / jenkins-slave.service
Last active July 4, 2017 05:34
Jenkins Slave用systemdのサービス
[Unit]
Description=Jenkins
After=network.target
[Service]
Type=simple
User=jenkins
Group=jenkins
WorkingDirectory=/home/jenkins/
ExecStart=/usr/bin/java -jar /home/jenkins/slave.jar -jnlpUrl https://jenkins-master/computer/slave-name/slave-agent.jnlp -secret xxxxx -noCertificateCheck
%% ここに書いたほうが、headerがきれい
%% http://oku.edu.mie-u.ac.jp/tex/mod/forum/discuss.php?d=773
%% http://cns-guide.sfc.keio.ac.jp/2001/11/5/1.html
%% 用紙サイズ
\setlength{\paperheight} {210 truemm}
\setlength{\paperwidth} {148 truemm}
%% 縦レイアウト
%% ヘッダまでの幅
@74th
74th / patch.diff
Last active May 3, 2018 13:01
TensorFlow v1.7.0 MacOS Nvidia GPU
diff --git a/tensorflow/core/framework/variant.h b/tensorflow/core/framework/variant.h
index c02391dae3..23e56ed294 100644
--- a/tensorflow/core/framework/variant.h
+++ b/tensorflow/core/framework/variant.h
@@ -152,7 +152,8 @@ bool DecodeVariant(const string& buf, T* value);
//
class Variant {
public:
- constexpr Variant() noexcept = default;
+ //constexpr Variant() noexcept = default;
@74th
74th / tensorflow_1.8.0_macos_nvidia.patch
Created May 3, 2018 13:01
TensorFlow v1.8.0 MacOS Nvidia GPU
diff --git a/tensorflow/core/framework/variant.h b/tensorflow/core/framework/variant.h
index c02391dae3..7f76609814 100644
--- a/tensorflow/core/framework/variant.h
+++ b/tensorflow/core/framework/variant.h
@@ -152,7 +152,8 @@ bool DecodeVariant(const string& buf, T* value);
//
class Variant {
public:
- constexpr Variant() noexcept = default;
+// constexpr Variant() noexcept = default;
@74th
74th / nginx.yaml
Created August 9, 2019 01:33
Kubernetes Readonly filesystem nginx example
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: readonly-fs-test
spec:
replicas: 1
template:
metadata:
labels:
name: readonly-fs-test
@74th
74th / stylish-github-font.css
Created October 19, 2019 22:57
github.comのフォントを変更するChrome拡張機能stylishの設定
.blob-code, .blob-code-inner {
font-family: "Liga InputMono",Hasklig,"Hasklig Light",SourceCodePro,"Source Code Pro",SourceHanCodeJP,"Source Han Code JP,TakaoGothic";
}
@74th
74th / mysql.yaml
Created March 13, 2020 05:12
rundeck
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: mysql
spec:
selector:
matchLabels:
app: mysql
serviceName: mysql
replicas: 1
@74th
74th / replace_kindlefire_launcher.sh
Created April 19, 2020 03:25
replacing kindle fire launcher
adb shell pm disable-user --user 0 com.amazon.firelauncher
adb shell pm enable com.teslacoilsw.launcher