Skip to content

Instantly share code, notes, and snippets.

<?php
$nids = \Drupal::entityQuery('node')->condition('type','entry')->execute();
$nodes = \Drupal\node\Entity\Node::loadMultiple($nids);
echo "Found ";
print_r(count($nodes));
echo " nodes.\n";
foreach ($nodes as $node) {
tobias@tobias:kimai (master) $ sudo openvpn ~/etc/vpn/neontribe2.ovpn
[sudo] password for tobias:
Fri Dec 21 10:37:16 2018 OpenVPN 2.4.4 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Sep 5 2018
Fri Dec 21 10:37:16 2018 library versions: OpenSSL 1.1.0g 2 Nov 2017, LZO 2.08
Enter Auth Username: tobias
Enter Auth Password: *******
Fri Dec 21 10:37:21 2018 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Fri Dec 21 10:37:21 2018 Outgoing Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
Fri Dec 21 10:37:21 2018 Incoming Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
Fri Dec 21 10:37:21 2018 TCP/UDP: Preserving recently used remote address: [AF_INET]217.35.80.79:24006
# To use this code, make sure you
#
# import json
#
# and then, to convert JSON from a string, do
#
# result = delme_from_dict(json.loads(json_string))
from typing import Optional, Any, List, Dict, Union, TypeVar, Callable, Type, cast
[1553865680484] [DEBUG] 2019-03-29T13:21:20.484Z 2bb42696-353d-430c-b80c-3fb8dfeda4a5 Zappa Event: {'resource': '/', 'path': '/', 'httpMethod': 'GET', 'headers': {'Accept-Encoding': 'gzip', 'Cache-Control': 'no-cache', 'CloudFront-Forwarded-Proto': 'https', 'CloudFront-Is-Desktop-Viewer': 'true', 'CloudFront-Is-Mobile-Viewer': 'false', 'CloudFront-Is-SmartTV-Viewer': 'false', 'CloudFront-Is-Tablet-Viewer': 'false', 'CloudFront-Viewer-Country': 'GB', 'dnt': '1', 'Host': '779vtjqci6.execute-api.eu-west-2.amazonaws.com', 'Pragma': 'no-cache', 'upgrade-insecure-requests': '1', 'User-Agent': 'Amazon CloudFront', 'Via': '1.1 fca1185b8960af4f3672f61581dfdaec.cloudfront.net (CloudFront), 1.1 0210db6188ed379f1f743c3f6a29a1eb.cloudfront.net (CloudFront)', 'X-Amz-Cf-Id': '50QTTxIJiDxAD11bZ6RhvhH31dt7Nx54Q7yUMx6iac_JDO--1TImvw==', 'X-Amzn-Trace-Id': 'Root=1-5c9e1bd0-01510edf90eb55775987ab94', 'X-API-Key': 'O4AsXjaYuchD7MwPgQtKWLiAQPKaChHmixDs6c00', 'X-Forwarded-For': '78.32.251.194, 52.56.127.66, 70.132.20.141', 'X-Forwa

The JSON Schema describing how to config the routing for the Front Controller Schema

Abstract Extensible Status Identifiable Custom Properties Additional Properties Defined In
Can be instantiated No Experimental No Forbidden Permitted routes.schema.json
kimai:
ldap:
active: true # default: false
# more infos about the connection params can be found at:
# https://docs.zendframework.com/zend-ldap/api/
connection:
host: 192.168.21.97
#port: 389
#useSsl: false # Enable SSL negotiation

To see if you have a ssh key already

ls C:\Users\Untangled\.ssh\MYNAME

To create a new ssh key and add it to your github account

Make sure you enter a password, make it ome you can remeber.

wired01
description: Desktop Computer
product: To Be Filled By O.E.M. (To Be Filled By O.E.M.)
vendor: To Be Filled By O.E.M.
version: To Be Filled By O.E.M.
serial: To Be Filled By O.E.M.
width: 64 bits
capabilities: smbios-2.7 dmi-2.7 smp vsyscall32
configuration: boot=normal chassis=desktop family=To Be Filled By O.E.M. sku=To Be Filled By O.E.M. uuid=00020003-0004-0005-0006-000700080009
*-core
@tobybatch
tobybatch / .Xresources
Created May 13, 2020 07:39 — forked from AnthonyDiGirolamo/.Xresources
Xresources example
! Font options - ~/.fonts.conf seems to override this
! Resolution for Xft in dots per inch (e.g. 96)
!Xft.dpi: 128
! Type of subpixel antialiasing (none, rgb, bgr, vrgb or vbgr)
!Xft.rgba: rgba
!Xft.antialias: 1
!Xft.hinting: 1
!Xft.autohint: 0
! What degree of hinting to use (hintnone, hintslight, hintmedium, or hintfull)
!Xft.hintstyle: hintslight
@tobybatch
tobybatch / device-oauth.md
Last active September 11, 2020 11:31
device-oauth.md

Setting up Devive auth flow

Assumptions

You have service MyMind working

Set up Passport

In the laravel route dir