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
# These settings were set by the catalyst build script that automatically built this stage | |
# Please consult /etc/make.conf.example for a more detailed example | |
#CFLAGS="-O2 -mtune=i686 -pipe" | |
#CFLAGS="-O2 -march=opteron -mtune=opteron -pipe" | |
CFLAGS="-O3 -march=native -mtune=native -msse4a -mfma -mfma4 -mxop -pipe -ftree-vectorize -ftree-loop-optimize" | |
CHOST="x86_64-pc-linux-gnu" | |
CXXFLAGS="$CFLAGS" | |
FFLAGS="$CFLAGS" | |
MAKEOPTS="-j45" | |
#MAKEOPTS="-j33" |
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
# These settings were set by the catalyst build script that automatically | |
# built this stage. | |
# Please consult /etc/make.conf.example for a more detailed example. | |
CFLAGS="-O2 -funroll-loops -ftree-vectorize -ftree-loop-optimize -march=native -mtune=native -msse4.2 -pipe" | |
#CFLAGS="-O2 -funroll-loops -pipe" | |
#CFLAGS="-O2 -funroll-loops -march=nocona -mtune=nocona -pipe" | |
CXXFLAGS="${CFLAGS}" | |
# WARNING: Changing your CHOST is not something that should be done lightly. | |
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing. | |
CHOST="x86_64-pc-linux-gnu" |
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
$ cat /proc/cpuinfo | |
processor : 0 | |
vendor_id : CentaurHauls | |
cpu family : 6 | |
model : 15 | |
model name : VIA Nano processor L2200@1600MHz | |
stepping : 3 | |
cpu MHz : 800.000 | |
cache size : 1024 KB | |
fpu : yes |
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
service telnet | |
{ | |
socket_type = stream | |
protocol = tcp | |
wait = no | |
user = games | |
server = /usr/games/bin/nyancat | |
server_args = -t | |
only_from = 0.0.0.0/0 ::/0 | |
flags = IPv6 |
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
# default: off | |
# description: SWAT is the Samba Web Admin Tool. Use swat \ | |
# to configure your Samba server. To use SWAT, \ | |
# connect to port 901 with your favorite web browser. | |
# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/config/swat.xinetd,v 1.1 2007/09/07 21:07:40 dev-zero Exp $ | |
service swat | |
{ | |
port = 901 | |
socket_type = stream |
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
#!/usr/bin/perl -w | |
# usage: bf.pl [source (default: stdin)] | |
sub run_bf | |
{ | |
my @prog = @_; | |
my $ip = 0; | |
my $dp = 0; |
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
import System.IO | |
import System.Environment | |
import Data.Word | |
import qualified Data.ByteString as B | |
-- Utilities | |
applyFst :: (a -> c) -> (a, b) -> (c, b) | |
applyFst f (x, y) = (f x, y) |
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桁〜18桁までの高橋の数を求める。 | |
// 高橋の数 : http://masami.d2.r-cms.jp/blog_detail/blog_id=3&id=6 | |
#include <stdio.h> | |
#include <stdbool.h> | |
// 高橋の数を格納する型。 | |
typedef long long num_t; | |
#define PRId_num_t "lld" | |
// 自然数から各桁を構成する数字を数える。 |
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
service telnet | |
{ | |
socket_type = stream | |
protocol = tcp | |
wait = no | |
user = games | |
server = /usr/games/bin/nyancat | |
server_args = -t | |
only_from = 0.0.0.0/0 ::/0 | |
flags = IPv6 |
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 | |
exec tail -n +3 $0 | |
# This file provides an easy way to add custom menu entries. Simply type the | |
# menu entries you want to add after this comment. Be careful not to change | |
# the 'exec tail' line above. | |
menuentry "Windows" --class windows --class os { | |
set root=(hd0,2) | |
chainloader '/EFI/Microsoft/Boot/bootmgfw.efi' | |
} |
OlderNewer