This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export JAVAPATH="/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/java/bin" | |
export PATH="/usr/local/sbin:/usr/local/opt/coreutils/libexec/gnubin:$JAVAPATH:/usr/bin:$PATH" | |
export MANPATH="$HOMEBREW_PREFIX/opt/coreutils/libexec/gnuman" | |
export EDITOR="nano" | |
export SVN_EDITOR="nano" | |
export PS1="\u@\w$ " | |
set completion-ignore-case On | |
alias ..='cd ..' | |
alias ...='cd ../../../' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Shell script to install your public key on a remote machine | |
# Takes the remote machine name as an argument. | |
# Obviously, the remote machine must accept password authentication, | |
# or one of the other keys in your ssh-agent, for this to work. | |
ID_FILE="${HOME}/.ssh/id_rsa.pub" | |
if [ "-i" = "$1" ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Reference: http://andy.delcambre.com/2008/03/04/git-svn-workflow.html | |
# Init | |
git svn init http://svn/path | |
git svn fetch | |
# make the repository smaller, but also with many many fewer files | |
git repack -d | |
# Work on feature/bug/issue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[mysqld] | |
join_buffer_size = 512K | |
sort_buffer_size = 64K | |
read_rnd_buffer_size = 256K | |
net_buffer_length=2K | |
thread_stack = 128K | |
skip-external-locking | |
key_buffer_size = 16K | |
max_allowed_packet = 1M | |
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ServerName localhost | |
Listen 80 | |
NameVirtualHost *:80 | |
LogFormat "%h %l %u %t \"%r\" %>s %b" common | |
# General | |
<Directory "/path/projects"> | |
php_admin_flag engine on | |
AllowOverride All |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*filter | |
:INPUT DROP [0:0] | |
:FORWARD ACCEPT [0:0] | |
:OUTPUT ACCEPT [0:0] | |
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT | |
-A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG NONE -j DROP | |
-A INPUT -p tcp -m tcp ! --tcp-flags FIN,SYN,RST,ACK SYN -m state --state NEW -j DROP | |
-A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG FIN,SYN,RST,PSH,ACK,URG -j DROP | |
-A INPUT -i lo -j ACCEPT | |
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 | |
00:00:00,599 --> 00:00:04,160 | |
>> ALICE: Hi, my name is Alice Miller and this is John Brown | |
2 | |
00:00:04,160 --> 00:00:06,770 | |
>> JOHN: and we're the owners of Miller Bakery. | |
3 | |
00:00:06,770 --> 00:00:10,880 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Optimize performance by using RAM disk | |
# Espcially improve life for SSD | |
# Disable access time | |
mount -vuwo noatime / | |
# Create RAM disk | |
ramfs_size_mb=256 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul class="bxslider"> | |
<?php | |
$obj = (object)['written_at' => '2014.05.01', 'title' =>「目線を変えれば、学生も変わる 学生指導に自信がもてるコツ」開催決定! ']; | |
?> | |
@foreach (array_fill(0, 4, $obj) as $headline) | |
<li> | |
<a href=""> | |
<div> | |
<dl> | |
<dt>{{ $headline->written_at }} </dt> |
OlderNewer