Skip to content

Instantly share code, notes, and snippets.


Gilad Peleg pgilad

Block or report user

Report or block pgilad

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
pgilad /
Created Nov 22, 2019
Install a pip package using Poetry and use pre-release version
# An example on how to install poetry preview version
$ pipx install poetry --pip-args="--pre"
pgilad /
Created Nov 2, 2019
Update mac names
set -l name Gilad-MBP-Personal
sudo scutil --set ComputerName $name
sudo scutil --set LocalHostName $name
sudo scutil --set HostName $name
dscacheutil -flushcache
sudo reboot
pgilad / .vimrc
Created Oct 27, 2019
Securely support `modelines` in Vim
View .vimrc
if has('patch-8.1.1366')
set modelines=5
set nomodelineexpr
set modeline
set nomodeline
llbbl /
Created Oct 15, 2019
fix missing openssl files in catalina
echo 'update brew'
brew update
echo 'upgrade brew'
brew upgrade
pgilad / docker-compose-opt.service
Last active Aug 19, 2019
Docker Compose Pi3 Applications Service
View docker-compose-opt.service
# File: /etc/systemd/system/docker-compose-opt.service
Description=Docker Compose Opt Service
pgilad / apache-zeppelin.rb
Created Jul 14, 2019
Apache Zeppelin Brew Formula 0.7.3 (for AWS Glue compatibility)
View apache-zeppelin.rb
class ApacheZeppelin < Formula
desc "Web-based notebook that enables interactive data analytics"
homepage ""
url ""
sha256 "7e657df51ecfd4aad39d42f8578409692244d36b2da92b5dbd3b6957b829bf58"
head ""
bottle :unneeded
def install
pgilad /
Last active Jun 8, 2019
Get k8s dashboard token for dashboard
#!/usr/bin/env fish
kubectl -n kube-system describe secrets (kubectl -n kube-system get secrets | awk '/clusterrole-aggregation-controller/ {print $1}') | awk '/token:/ {print $2}'
pgilad /
Created Jun 6, 2019
Get ALL resources in k8s namespace
kubectl api-resources --verbs=list --namespaced -o name | xargs -n 1 kubectl get --show-kind --ignore-not-found
pgilad /
Last active Mar 6, 2019
Supporting files for my blog post on remote jmx Spring Boot debugging
package com.example.demo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;
public class DemoController {
pgilad /
Created Feb 9, 2019
Get most popular commit message and strip JIRA prefix tag
You can’t perform that action at this time.