Note: This post is a summary of information paraphrased from an excellent blog post by Christian Sepulveda.
Create the app and download the necessary dependencies.
# Generic makefile for a C project | |
# Written by Keefer Rourke <[email protected]> | |
# | |
# This file is Public Domain or, in places where public domain works | |
# are not recognized, licensed as CC0. Legal text: | |
# <https://creativecommons.org/publicdomain/zero/1.0/legalcode.txt> | |
# | |
# This Makefile should not rely and any GNU-specific functionality, | |
# though it is based on the GNU make documentation which is available | |
# at: <https://www.gnu.org/software/make/manual/make.html> |
Create the app and download the necessary dependencies.
<?php | |
// Webhook code to update repo clone and execute required deployement code when new commit was pushed | |
// Webhook content-type should be set to application/json and a random secret code should be set too. | |
// Secret Random Code You set on github webhook settings | |
const SECRET_TOKEN = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; | |
if(strcasecmp($_SERVER['REQUEST_METHOD'], 'POST') != 0){ | |
throw new Exception('Request method must be POST!'); | |
} |
#include <cudnn.h> | |
#include <cassert> | |
#include <cstdlib> | |
#include <iostream> | |
#include <opencv2/opencv.hpp> | |
#define checkCUDNN(expression) \ | |
{ \ | |
cudnnStatus_t status = (expression); \ | |
if (status != CUDNN_STATUS_SUCCESS) { \ |
Source: https://www.youtube.com/watch?v=5WXYw4J4QOU
POST
, GET
, PUT
, DELETE
!= CRUD/applications
or /applications/123
/customers
vs. /newsletter-customers
and /registered-customers
PUT
for Create: Can be used when the Client has the ability to create an identifier for the Resource himself. But it has to contain a full replacement of the dataset: PUT /applications/123
#include <iomanip> | |
#include <iostream> | |
#include <cstdlib> | |
#include <vector> | |
#include <cuda.h> | |
#include <cudnn.h> | |
#define CUDA_CALL(f) { \ | |
cudaError_t err = (f); \ |
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\.md] | |
@="markdown" | |
[HKEY_CLASSES_ROOT\.md\ShellNew] | |
"NullFile"="" | |
[HKEY_CLASSES_ROOT\markdown] | |
@="Blank Markdown file" |
#!/bin/bash | |
# USAGE: docker run -t -i --rm -v $PWD:/out ubuntu:16.04 /out/build.sh | |
set -eu | |
# Install | |
install_packages() { | |
apt-get update && apt-get upgrade -yy |
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc | |
index 5b2e5ab..3d93104 100644 | |
--- a/includes/bootstrap.inc | |
+++ b/includes/bootstrap.inc | |
@@ -911,6 +911,7 @@ function _drupal_bootstrap($phase) { | |
drupal_unset_globals(); | |
// Initialize the configuration | |
conf_init(); | |
+ _drupal_bootstrap_sanitize_request(); | |
break; |
# Make sure you grab the latest version | |
curl -OL https://github.com/google/protobuf/releases/download/v3.5.1/protoc-3.5.1-linux-x86_64.zip | |
# Unzip | |
unzip protoc-3.5.1-linux-x86_64.zip -d protoc3 | |
# Move protoc to /usr/local/bin/ | |
sudo mv protoc3/bin/* /usr/local/bin/ | |
# Move protoc3/include to /usr/local/include/ |