Skip to content

Instantly share code, notes, and snippets.

Description

Add one or more entries to existing quiz.

Parameters

$quiz_id int
The ID of the quiz.
$entry_metas array
@pentatonicfunk
pentatonicfunk / .project-3
Last active February 11, 2023 20:30
Project 3
PROJECT 3 Files # 32fb10a80751c8d87d59aacca8d6a8e7
@pentatonicfunk
pentatonicfunk / .project-1
Last active October 17, 2023 16:40
Project 1
PROJECT 1 Files # 38384d2b8b1a7846f415609ddd8967c6
@pentatonicfunk
pentatonicfunk / create-files.sh
Last active February 10, 2023 14:56
forminator
#!/bin/bash
for i in {0001..1000}
do
echo "some text" > "file_${i}.txt"
done
[]
hendrawan@ubuntu-builder-dump:~/vvv-local$ vagrant up --provision
__ __ __ __
\ V\ V\ V / v3.11 Ruby:2.7.0, Path:"/home/hendrawan/vvv-local"
\_/\_/\_/ git::docker-provider(3ee80e47)
Platform: linux-gnu shell:/bin/bash systemd vagrant-goodhosts CaseSensitiveFS shared_db_folder_disabled
Vagrant: v2.2.6, docker: v??
Docs: https://varyingvagrantvagrants.org/
Contribute: https://github.com/varying-vagrant-vagrants/vvv
@pentatonicfunk
pentatonicfunk / parsejson.js
Created August 30, 2021 10:44
parsejson.js
/**
* Get field on JSON API
*
* @param {string} url API Url
* @param {string} ...field Field names, allow nested
* @return field
* @customfunction
*/
function ParseJSONField(url, ...field) {
#/bin bash
apt-get -y install git build-essential cmake automake libtool autoconf msr-tools vim
modprobe msr
# https://xmrig.com/docs/miner/hugepages#onegb-huge-pages
sysctl -w vm.nr_hugepages=$(nproc)
bash -c "echo vm.nr_hugepages=$(nproc) >> /etc/sysctl.conf"
for i in $(find /sys/devices/system/node/node* -maxdepth 0 -type d);
do
@pentatonicfunk
pentatonicfunk / thing.json
Created November 25, 2020 15:21
thing.json
[
{
"down": 1606258268,
"up": 1606260159,
"details": "Socket timeout.",
"downtime": "31m"
},
{
"down": 1606256708,
"up": 1606257895,
#/bin bash
apt-get -y install git build-essential cmake automake libtool autoconf msr-tools vim
modprobe msr
# https://xmrig.com/docs/miner/hugepages#onegb-huge-pages
sysctl -w vm.nr_hugepages=$(nproc)
bash -c "echo vm.nr_hugepages=$(nproc) >> /etc/sysctl.conf"
for i in $(find /sys/devices/system/node/node* -maxdepth 0 -type d);
do