This file contains hidden or 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
nginx -V 2>&1 | sed 's/--/\n--/g' | |
### or using perl | |
### nginx -V 2>&1 | perl -pe 's/--/\n--/g' |
This file contains hidden or 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
+{ | |
mysql => { | |
user => 'volt', | |
password => 'voltisfast', | |
}, | |
} |
This file contains hidden or 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
awt.nativeDoubleBuffering=true | |
awt.toolkit=apple.awt.CToolkit | |
file.encoding=UTF-8 | |
file.encoding.pkg=sun.io | |
file.separator=/ | |
ftp.nonProxyHosts=local|*.local|169.254/16|*.169.254/16 | |
gopherProxySet=false | |
http.nonProxyHosts=local|*.local|169.254/16|*.169.254/16 | |
java.awt.graphicsenv=apple.awt.CGraphicsEnvironment | |
java.awt.printerjob=apple.awt.CPrinterJob |
This file contains hidden or 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
package sysprop; | |
import java.util.Iterator; | |
import java.util.Map.Entry; | |
import java.util.Properties; | |
public class Dump { | |
public static void main(String[] args) { | |
Properties properties = System.getProperties(); |
This file contains hidden or 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
package sandbox; | |
import java.util.Properties; | |
import javax.mail.Message; | |
import javax.mail.MessagingException; | |
import javax.mail.Session; | |
import javax.mail.Transport; | |
import javax.mail.internet.InternetAddress; | |
import javax.mail.internet.MimeMessage; |
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. |
This file contains hidden or 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
package sample; | |
import org.apache.log4j.Logger; | |
public class Sample | |
{ | |
public static void main(String[] args) | |
{ | |
final Logger log = Logger.getLogger("access"); | |
log.debug("Test"); |
This file contains hidden or 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
package algorithm; | |
import java.util.Arrays; | |
public class BubbleSort | |
{ | |
public static void main(String[] args) | |
{ | |
int[] ints = {23220, 82319, 22, 9023090, 239, 11634}; | |
boolean flag = false; |
This file contains hidden or 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
package jp.co.serialgames.pitacchi.tool; | |
import java.util.Arrays; | |
import java.util.concurrent.ThreadLocalRandom; | |
public class QuickSort { | |
private static char[] getAlphabets() { | |
int i = 0; | |
char[] alphabets = new char[26]; |
This file contains hidden or 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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import csv | |
def make_dictionary(source_path): | |
with open(source_path, encoding='utf-8') as fh: | |
tuples = [] | |
for line in fh: |