Skip to content

Instantly share code, notes, and snippets.

View amirmasud's full-sized avatar

Amir Masud Zare Bidaki amirmasud

View GitHub Profile
@aramalipoor
aramalipoor / okd-share-resources.yml
Last active December 30, 2018 17:02
OKD Role and RoleBinding suitable to share Templates and ImageStreams with other users and projects
apiVersion: v1
kind: Template
metadata:
name: shared-resource-viewer
parameters:
- displayName: Project / Namespace
description: Name of the project (might be current project) from which you want to publish/share Templates and ImageStreams
name: NAMESPACE
required: true
value: my-project-name
@aramalipoor
aramalipoor / .env
Last active March 28, 2019 07:36
Elasticsearch 6.x + OSS Repository Plugin
# For ES 6.x Java XML Bind module must be explicitly added
ES_JAVA_OPTS=-Xms1000m -Xmx1000m -Des.logger.level=DEBUG --add-modules java.xml.bind
@nuxlli
nuxlli / unix_socket_request.sh
Last active January 25, 2024 04:37
Examples of http request in unix domain socket with shell, using socat, netcat or curl
#!/bin/bash
# References
# http://www.computerhope.com/unix/nc.htm#03
# https://github.com/daniloegea/netcat
# http://unix.stackexchange.com/questions/26715/how-can-i-communicate-with-a-unix-domain-socket-via-the-shell-on-debian-squeeze
# http://unix.stackexchange.com/questions/33924/write-inside-a-socket-open-by-another-process-in-linux/33982#33982
# http://www.linuxjournal.com/content/more-using-bashs-built-devtcp-file-tcpip
# http://www.dest-unreach.org/socat/
# http://stuff.mit.edu/afs/sipb/machine/penguin-lust/src/socat-1.7.1.2/EXAMPLES