- slides
- outline
- intro
- problem definition
- how did you solve it
how did you do it
- swift -> react
- it is complicated
- HTML
- it is complicated
- swift -> react
- outline
- JS (es6)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
install the dependencies as seen on the brew formulae here: https://github.com/Homebrew/homebrew-core/blob/master/Formula/qemu.rb | |
export LIBRARY_PATH=/tmp/anjan/libs | |
export CPATH=/tmp/anjan/libs | |
LDFLAGS=-L/tmp/anjan/libs/lib | |
CPPFLAGS=-I/tmp/anjan/libs/include | |
./configure | |
make install | |
## Cp out the shared library objects the qemu binary is linked to | |
otool -L /tmp/anjan/qemu/bin/qemu-system-x86_64 | grep homebrew | awk '{print $1}' | xargs -t -I % cp % /tmp/anjan/qemu/libs/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Copyright (c) 2017-2021 The Bitcoin Core developers | |
# Distributed under the MIT software license, see the accompanying | |
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | |
"""Block transmit test | |
This is based on the example_test.py file, here the test tries | |
to generate a block in node1 send it to node2 and verify that | |
they received the block | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"fmt" | |
"io/ioutil" | |
"net" | |
"net/http" | |
"os" | |
"time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQINBGHTFp0BEADJMgfiJcxUMgajcNBSXZgWZEiiO/5IVDXjfinwyGe7Fx16uQsE | |
SYBZTcvn68ZZgKCoFVScsHCEf6lmHwwTW0pXqpVsmcT0ht15jtxDMxTBKQtCT2su | |
vEzBIH2pNK99vdlIjEMVR9hpYpCHV/MQyuHKib/m7WjW6gtHFjm2IVFCCeqAVXAj | |
V1HOQD5FBNcQyK+uTyvqqMUdzvPlJqdCxNqLMmeY18AcrpkQyyEWLwym0Yq6qxF0 | |
CKDWeYuBycEIqA9qXD3jWDJBR/cYBFFEakCaa87u3rC3o8TAm+aoV/QJn0/+lRoL | |
u2WApH8zj8Z64W/sM2ITaAYeLImkArJyruahaitUEYryJg6zImP39K3d9ZyDvsZi | |
yojBvrNF3AiO8KShPTY6geGgN0oxwDre7ajORfeYe4BWW7yRN/Tlz/hF6gHl+K/M | |
L0DtT5iiv8TU3kedXsxSaI8djw6X8igYWUftBxGex3VORQGb8evauyIr8wjstbNI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name: crc-w6m86-master-0 | |
Roles: master,worker | |
Labels: beta.kubernetes.io/arch=amd64 | |
beta.kubernetes.io/os=linux | |
kubernetes.io/arch=amd64 | |
kubernetes.io/hostname=crc-w6m86-master-0 | |
kubernetes.io/os=linux | |
node-role.kubernetes.io/master= | |
node-role.kubernetes.io/worker= | |
node.openshift.io/os_id=fedora |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const net = require('net'); | |
const homedir = require('os').homedir(); | |
const path = require('path'); | |
const SOCKET_PATH = path.join(homedir, ".crc", "crc.sock"); | |
function sendCommand(command, args) { | |
if (command === "") { | |
console.log("Command is required!!") | |
return |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$tempDir = $args[0] | |
$startUpFolder = "$Env:USERPROFILE\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup" | |
function RemoveUserFromServiceLogon | |
{ | |
# security template to modify SeServiceLogonRight | |
$securityTemplate = @" | |
[Unicode] | |
Unicode=yes | |
[Version] |