Skip to content

Instantly share code, notes, and snippets.

View YuriyNasretdinov's full-sized avatar

Yuriy Nasretdinov YuriyNasretdinov

  • London, UK
  • 22:43 (UTC)
View GitHub Profile
package main
import (
"flag"
"log"
"time"
"sync"
"sync/atomic"
"github.com/valyala/fasthttp"
)
var (
package main
import (
"flag"
"log"
"time"
"sync"
"github.com/valyala/fasthttp"
)
var (
kittenhouse = flag.Bool("kittenhouse", false, "Whether or not to send INSERTs in kittenhouse format")
package main
import (
"flag"
"log"
"os"
"syscall"
"unsafe"
"path/filepath"
"bufio"
<?php
function doFind($dir) {
$dh = opendir($dir);
if (!$dh) die("Could not open $dir\n");
while (false !== ($f = readdir($dh))) {
if ($f === '.' || $f === '..') continue;
$path = $dir . '/' . $f;
echo $path . "\n";
package main
import (
"os"
"flag"
"log"
"io"
"bufio"
)
package main
import (
"os"
"flag"
"log"
"io"
"fmt"
)