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
authoritative; | |
ddns-update-style none; | |
option domain-name "alainodea.local"; | |
option domain-name-servers 208.67.222.222, 208.67.220.220; | |
default-lease-time 600; | |
max-lease-time 7200; | |
log-facility local7; | |
subnet 192.168.2.0 netmask 255.255.255.0 { | |
range 192.168.2.10 192.168.2.60; |
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
import java.io.BufferedReader; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.io.Reader; | |
import java.net.URI; | |
import java.net.URL; | |
public class GetURL | |
{ | |
public static void main(String[] args) throws Exception |
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
import java.net.Proxy; | |
import java.net.ProxySelector; | |
import java.net.URI; | |
public class WhatIsMyProxy | |
{ | |
public static void main(String[] args) | |
{ | |
String website = args[0]; | |
Proxy proxy = ProxySelector.getDefault().select(URI.create(website)).iterator().next(); |
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
<?xml version='1.0'?> | |
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'> | |
<service_bundle type='manifest' name='export'> | |
<service name='site/splunkforwarder' type='service' version='0'> | |
<create_default_instance enabled='true'/> | |
<single_instance/> | |
<dependency name='fs-local' grouping='require_all' restart_on='none' type='service'> | |
<service_fmri value='svc:/system/filesystem/local'/> | |
</dependency> | |
<dependency name='splunk_multi-user' grouping='require_all' restart_on='none' type='service'> |
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 bash | |
sudo apt-get install --assume-yes ghc libncurses5-dev mesa-common-dev freeglut3-dev | |
wget http://www.haskell.org/ghc/dist/7.6.3/ghc-7.6.3-src.tar.bz2 | |
wget http://lambda.haskell.org/platform/download/2013.2.0.0/haskell-platform-2013.2.0.0.tar.gz | |
tar xjvf ghc-7.6.3-src.tar.bz2 | |
tar xzvf haskell-platform-2013.2.0.0.tar.gz | |
pushd ghc-7.6.3 | |
./configure | |
make -j $(nproc) | |
sudo make install |
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
#include<stdio.h> | |
main() | |
{ | |
printf("Hello World"); | |
} |
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
From 05960e888726b961ebe9c00c439f5158a46c0532 Mon Sep 17 00:00:00 2001 | |
From: Muhaimin Ahsan <[email protected]> | |
Date: Thu, 26 Sep 2013 16:33:59 -0500 | |
Subject: [PATCH] Include termios.h for solaris2 host. (Fixes #8366) | |
--- | |
System/Console/Haskeline/Backend/Posix.hsc | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
diff --git a/System/Console/Haskeline/Backend/Posix.hsc b/System/Console/Haskeline/Backend/Posix.hsc |
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
#!/bin/bash | |
# clumsiness due to my inability to get sed -i working in the GZ (BSD sed) | |
tempfile=$(tempfile) | |
cat /usbkey/ssh/sshd_config | sed 's/PasswordAuthentication yes/PasswordAuthentication no/' > $tempfile | |
cat $tempfile /usbkey/ssh/sshd_config |
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
#!/bin/bash -e | |
#sudo apt-get -y install realpath man2html-base | |
#gem install ronn | |
#git clone [email protected]:joyent/illumos-joyent.git | |
#git clone [email protected]:joyent/smartos-live.git | |
pushd illumos-joyent | |
git pull | |
popd | |
pushd smartos-live | |
git pull |
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
# assuming you have Joyent Compute Service available | |
sdc-createmachine --dataset 17c98640-1fdb-11e3-bf51-3708ce78e75a --package g3-standard-1-smartos --name alain-demo-$(uuid) | json -a id |