Skip to content

Instantly share code, notes, and snippets.

View Dockerfile
FROM php:7.2.7-fpm-alpine3.7
RUN apk update; \
apk upgrade;
RUN docker-php-ext-install mysqli
tbenst / dlc.nix
Created Aug 4, 2020
mach-nix derivation for deeplabcut
View dlc.nix
mach-nix = import (builtins.fetchGit {
url = "";
ref = "2.1.1";
in mach-nix.buildPythonPackage rec {
pname = "deeplabcut";
version = "v2.2bb7";
src = builtins.fetchGit{
url = "";
View Cookie.js
View Dockerfile
FROM httpd:2.4.33-alpine
RUN apk update; \
apk upgrade;
# Copy apache vhost file to proxy php requests to php-fpm container
COPY apache.conf /usr/local/apache2/conf/demo.apache.conf
RUN echo "Include /usr/local/apache2/conf/demo.apache.conf" \
>> /usr/local/apache2/conf/httpd.conf
sebastianmontoyag / index.html
Created Aug 4, 2020
Tribute page - Freecodecamp
View index.html
<script src=""></script>
<title> Dennis Ritchie </title>
<link href="" rel="stylesheet" type="text/css">
<main id="main">
<article id="tribute-article">
<section id="tribute-header">
saswata-dutta /
Created Aug 4, 2020 — forked from jexp/
CallerBlocksPolicy as alternative to CallerRunsPolicy if the calling thread and the pool threads(tasks) share a similar thread local which would then be messed up.
public static ExecutorService createDefaultPool() {
int threads = Runtime.getRuntime().availableProcessors()*2;
int queueSize = threads * 25;
return new ThreadPoolExecutor(threads / 2, threads, 30L, TimeUnit.SECONDS, new ArrayBlockingQueue<>(queueSize),
new CallerBlocksPolicy());
// new ThreadPoolExecutor.CallerRunsPolicy());
static class CallerBlocksPolicy implements RejectedExecutionHandler {
public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
View gist:f8769dcb15d6be2349c410d62d3da9b7
body {
margin:0 auto;
padding:0 auto;
span {
View PY0101EN-3-1-Conditions.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
charlesheidemann / psql_useful_stat_queries.sql
Created Aug 4, 2020 — forked from anvk/psql_useful_stat_queries.sql
List of some useful Stat Queries for PSQL
View psql_useful_stat_queries.sql
--- PSQL queries which also duplicated from
--- some of them taken from
-- I'm not an expert in PSQL. Just a developer who is trying to accumulate useful stat queries which could potentially explain problems in your Postgres DB.
-- Basics --
-- Get indexes of tables
View Lat22.html
<!DOCTYPE html>
<title>Firdaus Haqiqi XI RPL 3</title>
<!--Audio pada web-->
<body bgcolor="snow">
<font face="Kg Happy, Lucida Handwriting">
<p>Audio ini akan langsung play ↓</p>
You can’t perform that action at this time.