Skip to content

Instantly share code, notes, and snippets.

@FatihBAKIR
FatihBAKIR / networking.md
Last active June 23, 2022 23:52
Ambience VM Networking

Ambience VM Networking

This tutorial assumes you can already build Ambience images and only focuses on networking.

Setup

Install the following packages

Fedora 35/36

find_path(RTK_INCLUDE_DIR
NAMES rtk_fwd.hpp
PATHS /usr/local/include /usr/include "${RTK_ROOT}")
find_library(RTK_LIBRARIES
NAMES rtk
PATHS /usr/local/lib /usr/lib "${RTK_ROOT}/build")
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(RTK DEFAULT_MSG RTK_INCLUDE_DIR)
@FatihBAKIR
FatihBAKIR / onlystack.cpp
Last active April 19, 2017 23:00
only_on_stack type
#include <iostream>
#include <stdexcept>
#if _MSC_VER
#define NO_INLINE __declspec(noinline)
#else
#define NO_INLINE __attribute__ ((noinline))
#endif
struct stack_marker
@FatihBAKIR
FatihBAKIR / # opencv3 - 2016-10-13_17-34-09.txt
Created October 13, 2016 18:12
opencv3 (homebrew/science/opencv3) on macOS 10.12 - Homebrew build logs
Homebrew build logs for homebrew/science/opencv3 on macOS 10.12
Build date: 2016-10-13 17:34:09
<?php
$entityBody = file_get_contents('php://input');
$fname = uniqid('uploaded_', true);
touch("exr_files/uploads/" . $fname . ".exr");
file_put_contents("exr_files/uploads/" . $fname . ".exr", $entityBody);
echo "http://fatihbakir.com/exr/exr_files/uploads/" . $fname . ".exr";
#pragma once
template <class T>
class BasicDeleter
{
public:
void operator() (T* resource)
{
delete resource;
}
#include <iostream>
#include <cmath>
class Matrix
{
unsigned int Size;
double** Rows;
public:
Matrix(unsigned int Size);
function ZeroFill($input, $len)
{
while(strlen($input) < $len)
$input = "0".$input;
return $input;
}
function fixBkz($entry)
{
$pattern = "/\(bkz: *(.*?) *\)/";
$replacement = '(bkz: $1)';
return preg_replace($pattern, $replacement, $entry);
}
#include <cstdlib>
#include <iostream>
using namespace std;
void Fonksyon1(int (*APointer)[4][6], int (*BPointer)[4][6], int rowCount, int colCount);
void Fonksyon2(int (*APointer)[4][6], int (*BPointer)[4][6], int rowCount, int colCount);
int main(int argc, char *argv[])
{