Skip to content

Instantly share code, notes, and snippets.

インフラ未経験者がインフラに配属されて #wakateweb

第7回若手Webエンジニア交流会 #wakateweb
catatsuy

エンジニアとしての略歴

#!/bin/bash
set -e
# these should match the names found at http://www.debian.org/releases/
stableSuite='wheezy'
testingSuite='jessie'
unstableSuite='sid'
variant='minbase'
#!/usr/bin/env ruby
# cat access.log | ruby parse.rb
# if --since is given, logs before the specified time are ignored
# (by string comparison)
# eg. --since='2013-11-05T02:23'
# supported accesslog format : http://i2bskn.hateblo.jp/entry/2013/05/14/003726 style
#
# log_format ltsv "time:$time_iso8601"
use strict;
use warnings;
use Acme::2zicon;
my $nizicon = Acme::2zicon->new;
my @members = $nizicon->sort('age', 1);
for my $member (@members) {
[
{
"nick" : [
"ななぴ"
],
"name" : "西七海",
"introduction" : "わたしはあまーいチョコレート。あなたの熱気で溶けちゃうの。\n虹コン色黒担当、東京都出身18歳\nななぴこと西七海です。",
"hometown" : "東京都",
"name_en" : "Nanami Nishi",
"twitter" : "nishi_nanami",
use strict;
use warnings;
use Acme::2zicon;
my $nizicon = Acme::2zicon->new;
my @members = $nizicon->sort('age', 1);
for my $member (@members) {
print $member->name_ja." ".$member->age.
var port = flag.Uint("port", 8080, "port to listen")
var fd = flag.Uint("fd", 0, "fd to listen and serve")
func init() {
flag.Parse()
}
func main() {
sigchan := make(chan os.Signal)
signal.Notify(sigchan, syscall.SIGTERM)
<script>
window.jQuery || document.write('<script src="/js/jquery.min.js"><\/script>');
</script>
#!/bin/bash
PATH=/usr/local/rbenv/shims:/usr/local/rbenv/bin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin
NAME=unicorn
RAILS_ENV=${RAILS_ENV:-production}
APP=application_name
EX_USER=www-data
ROOT_DIR="/home/$USER/$APP/current"
require 'ruby-prof'
RubyProf.start
# code...
results = RubyProf.stop
# Print a flat profile to text
File.open "#{Rails.root}/tmp/performance/#{file_name}-graph.html", 'w' do |file|