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
tbenst / dlc.nix
Created Aug 4, 2020
mach-nix derivation for deeplabcut
View dlc.nix
let
mach-nix = import (builtins.fetchGit {
url = "https://github.com/DavHau/mach-nix/";
ref = "2.1.1";
});
in mach-nix.buildPythonPackage rec {
pname = "deeplabcut";
version = "v2.2bb7";
src = builtins.fetchGit{
url = "https://github.com/DeepLabCut/DeepLabCut";
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
sebastianmontoyag / index.html
Created Aug 4, 2020
Tribute page - Freecodecamp
View index.html
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<html>
<head>
<title> Dennis Ritchie </title>
<link href="https://fonts.googleapis.com/css?family=Righteous" rel="stylesheet" type="text/css">
</head>
<body>
<main id="main">
<article id="tribute-article">
<section id="tribute-header">
@saswata-dutta
saswata-dutta / CallerBlocksPolicy.java
Created Aug 4, 2020 — forked from jexp/CallerBlocksPolicy.java
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.
View CallerBlocksPolicy.java
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 {
@Override
public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
View gist:f8769dcb15d6be2349c410d62d3da9b7
<style>
body {
margin:0 auto;
padding:0 auto;
}
span {
float:left;
margin:0;
padding:0;
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
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 https://github.com/anvk/AwesomePSQLList/blob/master/README.md
--- some of them taken from https://www.slideshare.net/alexeylesovsky/deep-dive-into-postgresql-statistics-54594192
-- 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>
<html>
<head>
<title>Firdaus Haqiqi XI RPL 3</title>
</head>
<!--Audio pada web-->
<body bgcolor="snow">
<font face="Kg Happy, Lucida Handwriting">
<center>
<p>Audio ini akan langsung play ↓</p>
You can’t perform that action at this time.