Skip to content

Instantly share code, notes, and snippets.

View supermomonga's full-sized avatar
🏠
Working from home

supermomonga supermomonga

🏠
Working from home
View GitHub Profile
@nojimage
nojimage / eccube-permission.sh
Last active September 4, 2015 12:14
EC-CUBEのインストール時パーミッション設定用スクリプト
#!/bin/sh
## EC CUBE set permission
chmod -R o+w html/install/temp/
chmod -R o+w html/user_data/
chmod -R o+w html/upload/
chmod -R o+w data/class/
chmod -R o+w data/cache/
chmod -R o+w data/logs/
chmod -R o+w data/downloads/
chmod -R o+w data/upload/
@willnet
willnet / rails_template_for_3.1.rb
Created August 29, 2011 11:49
rails template for 3.1
# -*- coding: utf-8 -*-
#
# Usage
#
# rails new yourapp -m https://raw.github.com/gist/1178242/3c77cfffeb99f32d19333de986ff41283aa9eb26/rails_template_for_3.1.rb -T --skip-bundle
#
git :init
append_file '.gitignore', <<-END
@rhysd
rhysd / LINDA_PP_quine.rb
Created November 10, 2011 23:47
AA-Quine
eval($q= "$q='eva l($q=% p.split *%p)'%[$q,'' ];$o= 0;(m=%q_efg!q !+b<b/tj{f/uj
nft|}j }u>b\\ j^<qsj ou)j& 3>>1@(!(+u;% r\\%p-u ^*<%p,>u!jg)j &3>>2*~<qvut<
foe_ ).si ze.tim es{| i|m[ i]-= 1};eval(m );p( 0,8, 14,8 ,4,6
,4,7 ,4,1 2,15,5, 36,1 3,6, 13); p(1, 6,16 ,6,6 ,6,4 ,5,6 ,12,
13,7 ,36, 13,6 ,13 );p( 2,4, 18,4 ,8,6 ,3,4 ,8,4,4,4,11, 9,36,4,5,4,6
,4,5 ,4); p(2, 4,18,4, 8,7, 2,4, 8,4,5,4,9,4,3,4 ,35,4,5,4,6 ,4,5,4);p(2
,4,1 8,4, 8,4, 1,3,1, 4,8, 4,5, 4,8,4,
@sharl
sharl / emacs.rb
Created February 24, 2012 08:29
Yet Another Emacs 23.4 homebrew Formula (ATOK support? unconfirmed)
require 'formula'
class Emacs < Formula
url 'http://ftp.gnu.org/pub/gnu/emacs/emacs-23.4.tar.bz2'
md5 '070c68ad8e3c31fb3cb2414feaf5e6f0'
homepage 'http://www.gnu.org/software/emacs/'
if ARGV.include? "--use-git-head"
head 'git://git.sv.gnu.org/emacs.git'
else
@kubosho
kubosho / emacs.rb
Created March 3, 2012 14:43
Cocoa Emacs 23.3b formula with patches(Lion fullscreen, Emacs fullscreen, IME inline).
require 'formula'
class Emacs < Formula
url 'http://ftp.gnu.org/pub/gnu/emacs/emacs-23.3b.tar.bz2'
md5 '917ce0054ef63773078a6e99b55df1ee'
homepage 'http://www.gnu.org/software/emacs/'
if ARGV.include? "--use-git-head"
head 'git://repo.or.cz/emacs.git'
else
@keikubo
keikubo / README.md
Created March 20, 2012 01:38
Nginx + Unicorn for Rails on Rackhub

Nginx + Unicorn for Rails on Rackhub

Description:

This script enables you to launch your Rails application in production environment (port:80) with Nginx and Unicorn.

Installation:

Please make sure that your Gemfile in your rails application includes unicorn.

@you21979
you21979 / esxi install tips
Last active December 12, 2020 20:44
ESXiのTIPS集
* メモリはどれくらい載せたほうがよいか
16gbがおすすめ
8gbだとCPUの性能限界より先にメモリが足りなくなる
DBをいくつか載せたりファイルサーバーもVMとして載せたいなら32gbがよい
* GPUパススルー方法
下記のカードをつける
AMD RADEON HD4xxx系
AMD RADEON HD5xxx系
AMD RADEON HD6xxx系
@skrb
skrb / Test.java
Created August 29, 2013 23:41
Hyperlink Demo
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Hyperlink;
import javafx.scene.control.Label;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.FlowPane;
import javafx.scene.web.WebEngine;
@kenrett
kenrett / Selenium Cheat Sheet.md
Last active May 25, 2023 01:28
Selenium Cheat Sheet - Ruby

#Getting Started

##Webpage:

<html>
<head>
    <title>Testing with Ruby and Selenium WebDriver</title>
</head>
 
<body bgcolor="antiquewhite">
@sonots
sonots / gist:eb54b8cd3e4467cd62ba
Created July 15, 2014 06:32
rails application template methods
pry> methods.sort.each {|m| puts m }
!=
!~
<=>
==
===
=~
__id__
__send__
_cleanup_options_and_set