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
| Day 1: Introduction to GraphQL | |
| What is GraphQL and how is it different from REST? | |
| GraphQL concepts: schemas, types, queries, mutations, subscriptions | |
| Setting up a GraphQL server using a library such as Apollo Server | |
| Resources: | |
| The official GraphQL website (https://graphql.org/learn/) | |
| How To GraphQL (https://www.howtographql.com) | |
| Day 2: Queries and Mutations |
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
| PREFIX : <http://looneytunes-graph.com/> | |
| PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
| PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | |
| # Bugs Bunny | |
| :Bugs_Bunny a :Looney_Tunes_Character ; | |
| :name "Bugs Bunny" ; | |
| :species "Hare" ; | |
| :gender "Male" ; | |
| :made_debut_appearance_in :A_Wild_Hare ; |
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
| PREFIX : <http://looneytunes-graph.com/> | |
| CONSTRUCT { | |
| ?c :debuted_in ?d | |
| } | |
| WHERE { | |
| ?c a :Looney_Tunes_Character ; | |
| :made_debut_appearance_in ?m . | |
| ?m :release_date ?d | |
| } |
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
| # Procedure is for Ubuntu 14.04 LTS. | |
| # Using these guides: | |
| # http://datacenteroverlords.com/2012/03/01/creating-your-own-ssl-certificate-authority/ | |
| # https://www.onlinesmartketer.com/2009/06/23/curl-adding-installing-trusting-new-self-signed-certificate/ | |
| # https://jamielinux.com/articles/2013/08/act-as-your-own-certificate-authority/ | |
| # Generate the root (GIVE IT A PASSWORD IF YOU'RE NOT AUTOMATING SIGNING!): | |
| openssl genrsa -aes256 -out ca.key 2048 | |
| openssl req -new -x509 -days 7300 -key ca.key -sha256 -extensions v3_ca -out ca.crt |
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
| Start Zookeeper server | |
| zookeeper-server-start.sh config/zookeeper.properties // need to be in parent directory | |
| <kafka dir>/bin/zookeeper-server-start.sh config/zkeeper.properties | |
| Startr Kafka | |
| kafka-server-start.sh config/server.properties //need to be in parent directory | |
| <kafka dir>/bin/kafka-server-start.sh config/server.properties | |
| Create a topic |
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
| #Return void | |
| CREATE OR REPLACE FUNCTION fix_homepage() RETURNS void AS $$ | |
| UPDATE suppliers | |
| SET homepage='N/A' | |
| WHERE homepage IS NULL; | |
| $$ LANGUAGE SQL; | |
| #Execute | |
| SELECT fixx_homepage(); | |
| #Return Single value |
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
| firewalld | |
| sudo systemctl status firewalld | |
| .sudo systemctl start firewalld | |
| firewall-cmd --list-ports | |
| firewall-cmd --permanent --add-port=100/tcp | |
| firewall-cmd --reload |
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
| create a Keystore | |
| ssh-keygen -t rsa -f ./bknifi_user //creates public and private key | |
| Make public key | |
| ssh-keygen -y -f key.pem > key.pub |
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
| Create a policy | |
| Reference https://relativkreativ.at/articles/how-to-compile-a-selinux-policy-package | |
| Create Type enforcement file (text) | |
| cat /var/log/audit/audit.log | audit2allow -m myapp > myapp.te | |
| Create modfie(binary) | |
| checkmodule -M -m -o myapp.mod myapp.te | |
| create the Policy module | |
| semodule_package -o myapp.pp -m myapp.mod | |
| load Policy Module | |
| semodule -i myapp.pp |
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
| docker-compose up //starts images | |
| docker-compose down //stops images |