Skip to content

Instantly share code, notes, and snippets.

Бутусов - трилипут
Серёга - Бум
@turbanoff
turbanoff / gist:aa935d48fd77b56e90bc
Created November 30, 2014 23:24
oracle jdk 6u18
http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn/java/jdk/6u18-b07/jdk-6u18-linux-x64-rpm.bin
@turbanoff
turbanoff / colorizedMaven.groovy
Created September 22, 2015 12:05 — forked from fbricon/colorizedMaven.groovy
Setup Colorized Maven 3.2.5 with logback
import static groovyx.gpars.GParsPool.*
//Automates steps to colorized maven 3.2.5 described in http://aheritier.net/united-colors-of-maven/
//requires groovy 2.x
//groovy https://gist.github.com/fbricon/5763949/raw/colorizedMaven [optional/path/to/maven/]
def M2_HOME = (args && args.length > 0)?args[0]:System.getenv()["M2_HOME"]
println "Adding colorized output to $M2_HOME"
if (!M2_HOME) {
println "The maven directory can not be found"
using System;
using System.Collections;
using System.Collections.Generic;
public static class Enumerable
{
internal abstract class EnumerableSorter<TElement>
{
internal abstract void ComputeKeys(TElement[] elements, int count);
@turbanoff
turbanoff / c# OrderBy
Created July 31, 2012 07:21
.net source
using System;
using System.Collections;
using System.Collections.Generic;
public static class Enumerable
{
internal abstract class EnumerableSorter<TElement>
{
internal abstract void ComputeKeys(TElement[] elements, int count);
create or replace procedure COPY_FROM_TABLE_PRIMER
as
begin
for REC in (
select TABLE_NAME
from TABLE_PRIMER2
) loop
execute immediate 'insert into ' ||REC.TABLE_NAME ||' (DAT, DAT2) select DAT, DAT2 from TABLE_PRIMER where substr(DAT, 1, 3)='''||REC.TABLE_NAME||'''';
commit;
end loop;
create or replace procedure COPY_FROM_TABLE_PRIMER
as
begin
for REC in (
select TABLE_NAME
from TABLE_PRIMER2
) loop
execute immediate 'insert into ' ||REC.TABLE_NAME ||' (DAT, DAT2) select DAT, DAT2 from TABLE_PRIMER where substr(DAT, 1, 3)='''||REC.TABLE_NAME||'''';
commit;
end loop;
drop table TEST_MD5_WITH_CLOB;
create table TEST_MD5_WITH_CLOB
(a clob
, pk number primary key
);
declare
tmp clob;
begin
# configuration file generated by Bochs
plugin_ctrl: unmapped=1, biosdev=1, speaker=1, extfpuirq=1, parallel=1, serial=1, iodebug=1
config_interface: textconfig
display_library: x
memory: host=128, guest=128
romimage: file="/home/turbanoff/soft/bochs-2.6-bin/share/bochs/BIOS-bochs-latest"
vgaromimage: file="/home/turbanoff/soft/bochs-2.6-bin/share/bochs/VGABIOS-lgpl-latest"
boot: floppy
floppy_bootsig_check: disabled=0
floppya: 1_44=kolibri.img, status=inserted
Секунды
bin dec
001000 05
001100 09
101010 39