Skip to content

Instantly share code, notes, and snippets.

View dkarnikis's full-sized avatar

Dimitrios Karnikis dkarnikis

View GitHub Profile
@keybraker
keybraker / propertyByString.ts
Created February 1, 2021 11:12
A simple function that lets you access complex object properties with the use of a single string Raw
const countries = [
{
country: {
name: 'Greece',
id: 1,
people: [
[1, 2, 3],
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11],
[
['alice'],
@franzflasch
franzflasch / qemu-arm-with-busybox-linux-and-shared-folder.md
Last active October 18, 2024 15:40
Howto qemu-arm with busybox linux and shared folder

Install dependencies

apt-get install gcc-arm-linux-gnueabihf qemu

Prepare work directory

mkdir qemu-arm-sandbox && cd qemu-arm-sandbox
@baniol
baniol / adduser.sh
Last active February 2, 2025 18:19
Create a new user in osx, mac, terminal, bash
#!/bin/bash
# =========================
# Add User OS X Interactive Command Line
# =========================
# http://superuser.com/questions/202814/what-is-an-equivalent-of-the-adduser-command-on-mac-os-x
getHiddenUserUid()
{
local __UIDS=$(dscl . -list /Users UniqueID | awk '{print $2}' | sort -ugr)