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
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors | |
vi /etc/default/cpufrequtils | |
# valid values: userspace conservative powersave ondemand performance | |
# get them from cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors | |
GOVERNOR="powersave" | |
vi /etc/sysfs.conf | |
devices/system/cpu/cpu0/cpufreq/scaling_governor = powersave |
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/sh | |
### BEGIN INIT INFO | |
# Provides: YOURPROJECT | |
# Required-Start: $all | |
# Required-Stop: $all | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts YOURPROJECT | |
# Description: starts YOURPROJECT using start-stop-daemon |
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
sudo aptitude install torque-server torque-scheduler torque-client | |
sudo aptitude install torque-client torque-mom | |
vi /var/spool/torque/server_name | |
# qmgr to test | |
qmgr | |
pbs_server -t create | |
qmgr -c "set server scheduling=true" | |
qmgr -c "create queue batch queue_type=execution" | |
qmgr -c "set queue batch started=true" |
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 | |
# | |
# Convert diff output to colorized HTML. | |
cat <<XX | |
<html> | |
<head> | |
<title>Colorized Diff</title> | |
</head> | |
<style> |
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
C:\TEMP\commons-lang3>\opt\java\apache-maven-3.0.4\bin\mvn -e -X verify | |
Apache Maven 3.0.4 (r1232337; 2012-01-17 05:44:56-0300) | |
Maven home: C:\opt\java\apache-maven-3.0.4\bin\.. | |
Java version: 1.8.0-ea, vendor: Oracle Corporation | |
Java home: c:\Program Files\Java\jdk1.8.0\jre | |
Default locale: pt_BR, platform encoding: Cp1252 | |
OS name: "windows 7", version: "6.1", arch: "x86", family: "dos" | |
[INFO] Error stacktraces are turned on. | |
[DEBUG] Reading global settings from C:\opt\java\apache-maven-3.0.4\bin\..\conf\ | |
settings.xml |
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
JDK1.7 | |
java.util.GregorianCalendar[time=?,areFieldsSet=false,areAllFieldsSet=false,lenient=true,zone=sun.util.calendar.ZoneInfo[id="America/New_York",offset=-18000000,dstSavings=3600000,useDaylight=true,transitions=235,lastRule=java.util.SimpleTimeZone[id=America/New_York,offset=-18000000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=3,startMonth=2,startDay=8,startDayOfWeek=1,startTime=7200000,startTimeMode=0,endMode=3,endMonth=10,endDay=1,endDayOfWeek=1,endTime=7200000,endTimeMode=0]],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=?,YEAR=?,MONTH=?,WEEK_OF_YEAR=?,WEEK_OF_MONTH=?,DAY_OF_MONTH=?,DAY_OF_YEAR=?,DAY_OF_WEEK=?,DAY_OF_WEEK_IN_MONTH=?,AM_PM=?,HOUR=?,HOUR_OF_DAY=?,MINUTE=?,SECOND=?,MILLISECOND=?,ZONE_OFFSET=?,DST_OFFSET=?] | |
java.util.GregorianCalendar[time=?,areFieldsSet=false,areAllFieldsSet=false,lenient=true,zone=sun.util.calendar.ZoneInfo[id="America/New_York",offset=-18000000,dstSavings=3600000,useDaylight=true,transitions=235,lastRule=java.util.SimpleTimeZone[id=America/New_York,offs |
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
Västeuropeisk sommartid=>sun.util.calendar.ZoneInfo[id="WET",offset=0,dstSavings=3600000,useDaylight=true,transitions=123,lastRule=java.util.SimpleTimeZone[id=WET,offset=0,dstSavings=3600000,useDaylight=true,startYear=0,startMode=2,startMonth=2,startDay=-1,startDayOfWeek=1,startTime=3600000,startTimeMode=2,endMode=2,endMonth=9,endDay=-1,endDayOfWeek=1,endTime=3600000,endTimeMode=2]] | |
Västeuropeisk tid=>sun.util.calendar.ZoneInfo[id="WET",offset=0,dstSavings=3600000,useDaylight=true,transitions=123,lastRule=java.util.SimpleTimeZone[id=WET,offset=0,dstSavings=3600000,useDaylight=true,startYear=0,startMode=2,startMonth=2,startDay=-1,startDayOfWeek=1,startTime=3600000,startTimeMode=2,endMode=2,endMonth=9,endDay=-1,endDayOfWeek=1,endTime=3600000,endTimeMode=2]] | |
Västindonesisk tid=>sun.util.calendar.ZoneInfo[id="Asia/Pontianak",offset=25200000,dstSavings=0,useDaylight=false,transitions=9,lastRule=null] | |
Västlig normaltid (Australien)=>sun.util.calendar.ZoneInfo[id="Australia/West",offset=28800000,dstSavings=0,useDayl |
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 org.apache.commons.lang3; | |
import java.util.Calendar; | |
import java.util.TimeZone; | |
import org.apache.commons.lang3.time.DurationFormatUtils; | |
public class BRUNO { | |
private static void assertEqualDuration(final String message, final String expected, final int[] start, final int[] end, final String format) { |
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
<?php | |
use Illuminate\Console\Command; | |
use Symfony\Component\Console\Input\InputOption; | |
use Symfony\Component\Console\Input\InputArgument; | |
class SchemaSpyCommand extends Command { | |
/** | |
* The console command name. |
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
kinow@chuva:~/python/workspace/bc$ make print | |
# pdflatex \ | |
# -interaction nonstopmode \ | |
# _site/book.tex | |
cd _site && pdflatex \ | |
book.tex | |
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian) | |
restricted \write18 enabled. | |
entering extended mode | |
(./book.tex |