Skip to content

Instantly share code, notes, and snippets.

View hakopako's full-sized avatar

Ayaka Shimada hakopako

View GitHub Profile
【初めはrootしかいないのでをユーザに追加】
login: root
Password:
# yum update
# adduser USERNAME
# passwd USERNAME
Changing password for user USERNAME
New password:
Retype new password:
@hakopako
hakopako / VM-setting.md
Last active August 29, 2015 13:58
VMの環境を手動で構築する手順
@hakopako
hakopako / usersetting.json
Created July 8, 2014 03:39
sublime text setting
{
"caret_style": "phase",
"draw_minimap_border": true,
"draw_white_space": "all",
"font_size": 12,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
],
汎用性高い顔文字
(^ω^)
( ^ω^)
(・∀・ )
(´・ω・`) わかるか?
(´・ω・`) 同じように見えても
(´・ω・`) 微妙にニュアンスが
(´・ω・`) 変わるだろ?
(´ᴖωᴖ`)
(´・_・`)
@hakopako
hakopako / SpotDrawer.js
Last active August 29, 2015 14:15
googlemapに点を打つ
/**
* Description :
* 緯度経度の配列から地図上に場所を描画する
* SpotDrawer.load(markers, elementID) を呼べばおk
*
* Author :
* shi-man
*/
var SpotDrawer = {
/usr/bin/ld: skipping incompatible /usr/pgsql-9.3/lib/libpq.so when searching for -lpq
$ ld -lpq --verbose
# yum install -y glib2.i386 qt4.i386 zlib.i386 alsa-lib.i386 libX11.i386 libXv.i386 libXScrnSaver.i386
# yum install -y xorg-x11-xauth xorg-x11-server-Xvfb x11vnc Xorg
# yum install -y python-setuptools
# easy_install Skype4Py
# easy_install ctypes
# cd /opt
# wget http://download.skype.com/linux/skype_static-2.1.0.47.tar.bz2
# tar jxvf skype_static-2.1.0.47.tar.bz2
# ln -s skype_static-2.1.0.47 skype
@hakopako
hakopako / entrypoint.rb
Last active June 8, 2016 02:49
itamae entrypoint.rb sample
node["recipes"] = node["recipes"] || []
host_name = node[:hostname] # SpecinfraというGemを利用しているらしい
host_group = host_name[/(.+)([0-9]){4}/, 1 ] # 号機を除いたホスト名 ex.) hogehoge0001 -> hogehoge
proxy_host = "bar"
proxy_port = "1234"
# 実行環境
if host_name.index("-dev") != nil then
env = "dev"
elsif host_name.index("-test") != nil then
@hakopako
hakopako / aaaaa.md
Created August 15, 2016 06:09
gistab sample

hoge

barbarbarbar. hugahuga.

@hakopako
hakopako / MyCheckButton.swift
Last active October 13, 2016 05:14
Check/Radio button, extend class of UIButton.
class MyCheckButton: UIButton {
var baseColor:UIColor = UIColor.lightGray
private var isMulti:Bool = false
private let frameShapeLayer:CAShapeLayer = CAShapeLayer()
private let checkShapeLayer:CAShapeLayer = CAShapeLayer()
private let framePath:UIBezierPath = UIBezierPath()
private let checkPath:UIBezierPath = UIBezierPath()
private let margin:CGFloat = 16
private let lineWidth:CGFloat = 2