Skip to content

Instantly share code, notes, and snippets.

View beyondlimits's full-sized avatar

beyondlimits

View GitHub Profile
@beyondlimits
beyondlimits / php.ini
Last active July 27, 2019 19:12
Development PHP configuration
memory_limit = 1G
error_reporting = E_ALL
display_errors = stderr
display_startup_errors = On
auto_prepend_file = strict-error-handling.php
include_path = "/usr/share/php"
sqlite3.defensive = 1
zend.assertions = 1
assert.active = On
assert.exception = On
#!/usr/bin/env python3
#-*- coding: utf-8 -*-
# Computes bit parity. When x represented as binary number
# has odd number of ones, 1 is returned. Otherwise 0 is returned.
def parity(x):
i = 1
y = x
while x:
x >>= i
'use strict'
var TheWild = (function(){
var test = '0111010001010100011001100111110010001001100101010011101010010011100111110100101110000110000001111101010000111110110001010100011111100111101101000101111010000011000001110000001101110000001001100010001010000001010110010110110001001111010100101011000010111000011101011111100110000100010010100001110110101110000001110011111001100011111101010100011011001101010101101000000101010001011000000010101011000100001010000100010111111111001100000010110010011001110111110101101011011110111001111101010100100011001100001000110110101001000010100001110011111001010000110010111010000011001111001000110110001010111101001100000111101001110111010010011010011100001011001100001011000110011001100100000110000000011110101011000101000001000001101010001000011111100111000111110000101101111001101100001111110011111010010101100010101101100001001111010000000010110101010100101001101100100001111111101000111100101001110111101110100010000111000101001011000010000010100010001100001111001111001111011111
<!DOCTYPE html>
<html lang="pl">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Page Title</title>
<style>
body {
File list can be obtained by running either:
7z l FILE (for a short list)
7z l -slt FILE (for a long list)
Examination of the outputs of both commands led to following observations:
- Both commands produce output with common header when run with the same
archive file using the same version of 7-Zip.
#!/bin/bash
set -e
(
mkdir test
pushd test
git init
echo 'Hello, World!' > testfile
git add testfile
<?php
return function($html)
{
$allowedTags = array(
'body',
'p', 'div', 'span',
'b', 'i', 'u',
'h1', 'h2', 'h3', 'h4', 'h5', 'h6',
'font',
group=thewild
gid=1000
user=thewild
uid=1000
fullname=TheWild
device=/dev/sdc1
mountpoint=/home/thewild
aptpackages="$mountpoint/apt/packages"
aptinstall="$mountpoint/apt/install"
f() while ! "$@"; do sleep 1; done
@beyondlimits
beyondlimits / formdata.lua
Created July 9, 2018 19:56
Minetest formspec context general idea.
local original_show_formspec = minetest.show_formspec
local original_register_on_player_receive_fields = minetest.register_on_player_receive_fields
local formdata = {}
minetest.register_on_joinplayer(function(player)
formdata[player:get_player_name()] = {}
end)
minetest.register_on_leaveplayer(function(player)
CC0 1.0 Universal
Statement of Purpose
The laws of most jurisdictions throughout the world automatically confer
exclusive Copyright and Related Rights (defined below) upon the creator and
subsequent owner(s) (each and all, an "owner") of an original work of
authorship and/or a database (each, a "Work").
Certain owners wish to permanently relinquish those rights to a Work for the