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
package main | |
import ( | |
"fmt" | |
"log" | |
"golang.org/x/sys/unix" | |
) | |
// https://www.gnu.org/software/libc/manual/html_node/Sockets.html#Sockets |
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 { Docker } from 'node-docker-api' | |
import { dirSync } from 'tmp' | |
export async function bootLocalStack () { | |
const docker = new Docker({ socketPath: '/var/run/docker.sock' }) | |
const tmpDir = dirSync() | |
await Promise.all((await docker.container.list({ all: 1 })) | |
.filter(container => container.data.Image === 'localstack/localstack') | |
.map(container => container.delete({ force: true }))) |
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
// by Erik Wrenholt | |
import java.util.*; | |
class Mandelbrot | |
{ | |
static int BAILOUT = 16; | |
static int MAX_ITERATIONS = 1000; | |
private static int iterate(float x, float 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
#!/usr/bin/env php | |
<?php | |
/** | |
* Randomness distribution test of different random functions | |
*/ | |
$counters = [ | |
'array_rand' => [], | |
'random_int' => [], |
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
User-agent: * | |
# Directories | |
Disallow: /app/ | |
Disallow: /bin/ | |
Disallow: /dev/ | |
Disallow: /lib/ | |
Disallow: /phpserver/ | |
Disallow: /pkginfo/ | |
Disallow: /report/ |
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
[mysqld_safe] | |
nice = -15 | |
[mysqld] | |
max_binlog_size = 256M #max size for binlog before rolling | |
expire_logs_days = 1 #binlog files older than this will be purged | |
## Per-Thread Buffers * (max_connections) = total per-thread mem usage | |
thread_stack = 256K #default: 32bit: 192K, 64bit: 256K | |
sort_buffer_size = 1M #default: 2M, larger may cause perf issues |
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
<?php | |
namespace Auctane\Api\Controller\Auctane; | |
use Exception; | |
use Magento\Framework\App\CsrfAwareActionInterface; | |
use Magento\Framework\App\Request\InvalidRequestException; | |
use Magento\Framework\App\RequestInterface; | |
class Index extends \Magento\Framework\App\Action\Action implements CsrfAwareActionInterface | |
{ |
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
## | |
# Magento stuff. | |
## | |
downloader/.cache/* | |
downloader/cache.cfg | |
downloader/connect.cfg | |
maintenance.flag | |
media/* | |
media/** | |
var/* |
NewerOlder