さくらVPSで借りてたサーバのubuntuがGRUBが壊れて起動しなくなった
参考にしたのは以下
- レスキューモードでGrubリカバリ — sakura VPS Note 0.1 documentation
- 別のPCから外したディスクのLVM ボリュームをマウントする方法
- GRUBブートローダの再インストール | Nibelungen Code
ISOカスタムイメージでrescue modeを起動
<?php | |
class Hoge | |
{ | |
function __construct() | |
{ | |
} | |
} | |
class Fuga extends Hoge | |
{ | |
function __construct($foo) |
<?php | |
class Hoge { | |
private $data = array(); | |
public function __get($key) { | |
return array_key_exists($key, $this->data) ? $this->data[$key] : null; | |
} | |
public function __set($key, $value) { | |
return $this->data[$key] = $value; | |
} | |
} |
<?php | |
echo 1000; |
#!/usr/bin/env ruby | |
# coding: utf-8 | |
# for http://kancolle.sanaechan.net/ | |
require 'date' | |
require 'optparse' | |
# parse options | |
option_hash = {} |
convert -fill black -draw 'rectangle 113,2 270,23' ~/Dropbox/艦これ/`ls -t1 ~/Dropbox/艦これ | head -1` ~/Dropbox/艦これ/out.png; open $_ |
さくらVPSで借りてたサーバのubuntuがGRUBが壊れて起動しなくなった
参考にしたのは以下
ISOカスタムイメージでrescue modeを起動
package main | |
import ( | |
"flag" | |
"fmt" | |
) | |
func main() { | |
var ( | |
boolFlag bool |
brew tap caskroom/cask | |
brew tap homebrew/completions | |
brew tap homebrew/dupes | |
brew tap homebrew/python | |
brew tap homebrew/science | |
brew tap josegonzalez/php | |
brew tap peco/peco | |
brew install apple-gcc42 autoconf automake bash-completion bison boot2docker brew-cask celt cgdb cloog cmake docker eigen faac fdk-aac ffmpeg fig fontconfig freetype fribidi gcc gdb gdbm gettext gmp go go-app-engine-64 heroku-toolbelt hub icu4c ilmbase imagemagick isl jasper jpeg jq lame libass libmpc libogg libpng libtiff libtool libvo-aacenc libvorbis libvpx libyaml little-cms2 mercurial mpfr node numpy opencore-amr opencv openexr openjpeg openssl opus orc peco php55 pkg-config qt rbenv readline rename ruby-build schroedinger sdl shtool speex sqlite tbb texi2html theora unixodbc vagrant-completion vim wget x264 xvid xz yasm zlib | |
brew cask install atom vagrant virtualbox |
#!/bin/sh | |
BASENAME=$(basename $1) | |
ffmpeg -i $1 -s hd480 -c:v libx264 -crf 22 -c:a libfdk_aac -vsync passthrough ${BASENAME%.*}.mp4 |
FROM composer | |
RUN set -eux; \ | |
apk add --no-cache --virtual .cakephp-rundeps \ | |
icu-libs | |
RUN set -eux; \ | |
apk add --no-cache --virtual .build-deps \ | |
icu-dev \ | |
icu-libs \ |