Skip to content

Instantly share code, notes, and snippets.

#Linux 64 bit Appimage. The SUID sandbox helper binary was found, but is not configured correctly
sudo sysctl kernel.unprivileged_userns_clone=1
@zjx632
zjx632 / random.h
Created July 3, 2018 00:00 — forked from Leandros/random.h
C++ Pseudo Random Number Generators
/* Copyright (c) 2018 Arvid Gerstmann. */
/* This code is licensed under MIT license. */
#ifndef AG_RANDOM_H
#define AG_RANDOM_H
class splitmix
{
public:
using result_type = uint32_t;
static constexpr result_type (min)() { return 0; }
@zjx632
zjx632 / jsf.hpp
Created July 2, 2018 23:59 — forked from imneme/jsf.hpp
A C++ Implementation of Bob Jenkins's Small Fast Noncryptographic PRNG (JSF)
#ifndef JSF_HPP_INCLUDED
#define JSF_HPP_INCLUDED 1
/*
* A C++ implementation of a Bob Jenkins Small Fast (Noncryptographic) PRNGs
*
* The MIT License (MIT)
*
* Copyright (c) 2018 Melissa E. O'Neill
*
@zjx632
zjx632 / VisualCppTools.props
Created April 29, 2016 08:47 — forked from dodheim/VisualCppTools.props
Visual C++ prerelease tools property sheet
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<VCToolsInstallDir>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..\..\lib\native'))\</VCToolsInstallDir>
</PropertyGroup>
<PropertyGroup>
<VCT_ExecutablePath_x86_x86>$(VCToolsInstallDir)bin</VCT_ExecutablePath_x86_x86>
<VCT_ExecutablePath_x86_x64>$(VCToolsInstallDir)bin\x86_amd64</VCT_ExecutablePath_x86_x64>
<VCT_ExecutablePath_x86_ARM>$(VCToolsInstallDir)bin\x86_arm</VCT_ExecutablePath_x86_ARM>
@zjx632
zjx632 / vlcsms.c
Last active August 29, 2015 14:20 — forked from TimSC/vlcsms.c
//To compile:
//cc vlcsms.c -o vlcsms -lvlc
//This source is by Tim Sheerman-Chase and it is released as public domain.
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
#include <inttypes.h>
#include <vlc/vlc.h>