Skip to content

Instantly share code, notes, and snippets.

@kurorido
kurorido / ex1.php
Created July 23, 2016 05:50
PHP compare serialize & json_encode
<?php
// http://stackoverflow.com/questions/804045/preferred-method-to-store-php-arrays-json-encode-vs-serialize
ini_set('display_errors', 1);
error_reporting(E_ALL);
// Make a big, honkin test array
// You may need to adjust this depth to avoid memory limit errors
$testArray = fillArray(0, 5);
// Time json encoding
const fs = require('fs')
const path = require('path')
const files = fs.readdirSync('.')
for (let file of files) {
// fs.renameSync(file,)
// console.log(file)
let ext = path.extname(file)
if (ext === '.JPG' || ext === '.JPEG') {

Keybase proof

I hereby claim:

  • I am kurorido on github.
  • I am roliroli (https://keybase.io/roliroli) on keybase.
  • I have a public key ASAVPoVbAEKnkqLmx0d0Q5LkWsLWcTK8Zu5lTD3Y2lteDgo

To claim this, I am signing this object:

@kurorido
kurorido / metadata.json
Created December 29, 2020 18:54
XAMPP-VM default metadata.json
{
"name": "XAMPP",
"homeURL": "",
"supportURL": "",
"version": "7.3.25-0",
"vendor": "",
"id": "",
"uuid": "A014CBAD-77C5-4FA4-8D64-96DC97FB8880",
"description": "XAMPP",
"storagePath": "/Users/username/.bitnami/stackman/machines/xampp",
@kurorido
kurorido / API.md
Created January 18, 2021 06:38
backline api

Request Example

POST

headers

Authorization: Bearer {TOKEN}

body