Skip to content

Instantly share code, notes, and snippets.


Syed M Shaaf sshaaf

  • Copenhagen, Denmark
View GitHub Profile
View operator snapshot cmd
docker run -p 50051:50051 -it
grpcurl -plaintext localhost:50051 api.Registry/ListPackages | datagrid
View Run workshopper
docker run -it -p 8080:8080 -v $(pwd):/app-data --entrypoint /bin/bash \
-e CHE_URL= -e RHAMT_URL=http://foo -e CHE_USER_PASSWORD='password' \
-e \
-e CONTENT_URL_PREFIX="file:///app-data/" \
-e WORKSHOPS_URLS="file:///app-data/_cloud-native-workshop-module3.yml" \
View gist:55bf7c6e0e09c81477998d1b9eec0f48
dnf provides semanage
or dnf search policycoreutils
# to list the ports available
semanage port --list
Adding a new port to be accessible , in my case I am suggesting I want to open a tcp port 52022
semanage port -a -t ssh_port_t -p tcp 52022
# This will add a permanent firewall entry to the zone public.
View settings.xml
<settings xmlns="" xmlns:xsi="" xsi:sch
<localRepository />
<interactiveMode />
<offline />
<pluginGroups />
<servers />
<mirrors />
<proxies />
View gist:b014b2c8a51e6af6662b4ad2515a9c23
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns=""
sshaaf / gist:946f1021c7c35363577ea4a5b6d96315
Created Dec 18, 2019
npm start on app fails; Error: ENOSPC: System limit for number of file watchers reached,
View gist:946f1021c7c35363577ea4a5b6d96315
throw er; // Unhandled 'error' event
Error: ENOSPC: System limit for number of file watchers reached, watch '/opt/'
at FSWatcher.start (internal/fs/watchers.js:165:26)
at (fs.js:1329:11)
View .gitignore
# Created by,java,maven
# Edit at,java,maven
### Java ###
# Compiled class file
# Log file
sshaaf / config.txt
Created Jul 4, 2019
Run Java file with Maven
View config.txt