java -jar gp.jar -d \
-a 00a4040010C238E449F725B1510EAA699550CABA16 \
-a 00f00000 \
-a c0d6030510404142434445464748494a4b4c4d4e4f \
-a c0d6032110404142434445464748494a4b4c4d4e4f \
-a c0d6033D10404142434445464748494a4b4c4d4e4f
Today I tried to setup a small Kubernetes cluster on top of 3 Raspberry Pi 4 (4GB Memory). Here is the steps to install the cluster.
I have 3 Raspberry Pi 4 stacked with PoE headers and connected to a PoE switch at home. The are connected to Internet through a home router. All Pis are equipped with a 64GB Samsung SDXC card flushed with Ubuntu 20.04 image.
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
"scripts": { | |
"enable_local": "plutil -insert NSAppTransportSecurity -xml \"<dict><key>NSExceptionDomains</key><dict><key>localhost</key><dict><key>NSExceptionAllowsInsecureHTTPLoads</key><true/></dict></dict></dict>\" ios/myProject/Info.plist", | |
"remove_local": "plutil -remove NSAppTransportSecurity ios/myProject/Info.plist" | |
}, |
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
<?php | |
$query = <<<'GRAPHQL' | |
query GetUser($user: String!) { | |
user (login: $user) { | |
name | |
repositoriesContributedTo { | |
totalCount | |
} |
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
#include <FS.h> | |
#include <ESP8266WiFi.h> | |
#include <WiFiClientSecure.h> | |
#include <PubSubClient.h> | |
#include <time.h> | |
// Insert your FQDN of your MQTT Broker | |
#define MQTT_SERVER "mqtt.srvx1.local" | |
const char* mqtt_server = MQTT_SERVER; |
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
// @flow | |
import React, { PureComponent } from 'react' | |
import { View, Text, TextInput, TouchableOpacity } from 'react-native' | |
import { commitMutation, graphql } from 'react-relay' | |
import environment from './createRelayEnvironment' | |
import style from './RegisterScreen.style' | |
/** | |
* In Relay Modern a name pattern are used in Mutations or Queries, as example below: | |
* `ComponentName__MutationName__Mutation(...` |
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
/* | |
Get_Centroid_coordinates.jsx | |
A Javascript for Adobe Photoshop 2017. | |
Purpose: Find the centroid (center of gravity) of SVG path and point by guidelines. | |
Based on formula for finding Centroid of non-self-intersecting closed polygon | |
To Use: Select layer which includes normal path. Call the script. | |
Author: Ivan Grekov | |
*/ | |
// reset unites for proper navigation & sizes |
Brought to you by Headjack
FFmpeg is one of the most powerful tools for video transcoding and manipulation, but it's fairly complex and confusing to use. That's why I decided to create this cheat sheet which shows some of the most often used commands.
Let's start with some basics:
ffmpeg
calls the FFmpeg application in the command line window, could also be the full path to the FFmpeg binary or .exe file
- Learn how to start a new react native project
- Run it on ios simulator, on android emulator, on a real iPhone device and on a real Android device, with and without debugging enabled.
- Learn how to upgrade a react native project
- Learn how to add a package to the project
- Learn how to add a package that has a native dependency (https://github.com/airbnb/react-native-maps, https://github.com/evollu/react-native-fcm) - DO NOT USE COCOAPODS
- Learn how to use fetch to get data from your backend
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
<!-- 🖼 Photo Library --> | |
<key>NSPhotoLibraryUsageDescription</key> | |
<string><Your description goes here></string> | |
<!-- 📷 Camera --> | |
<key>NSCameraUsageDescription</key> | |
<string><Your description goes here></string> | |
<!-- 🎤 Microphone --> | |
<key>NSMicrophoneUsageDescription</key> |
NewerOlder