Skip to content

Instantly share code, notes, and snippets.

View palm002's full-sized avatar
:octocat:

Mirko Palancaji palm002

:octocat:
  • Zendesk
  • /dev/null
View GitHub Profile
@palm002
palm002 / icu4c-troubleshooting.md
Last active February 20, 2020 10:10
ICU4C ISSUES

ICU4C ISSUES

Get version 62.1

  1. We first need a deep clone of the Homebrew repo. This may take a while: git -C $(brew --repo homebrew/core) fetch --unshallow
  2. brew log icu4c to track down a commit that references 62.1; 575eb4b does the trick.
  3. cd $(brew --repo homebrew/core)
  4. git checkout 575eb4b -- Formula/icu4c.rb
  5. brew uninstall --ignore-dependencies icu4c
  6. brew install icu4c You should now have the correct version of the dependency!
  7. git reset && git checkout . Cleanup your modified recipe.
@palm002
palm002 / Adding $PATH with ansible
Created March 6, 2019 00:22
Add a system wide path using Ansible.
# Add /usr/local/go/bin to the PATH environment variable
# {{ go_bin }} = path/to/golang/binaries
- name: Adding golang bin dir to system-wide $PATH
copy:
dest: /etc/profile.d/custom-path-for-golang.sh
content: 'PATH=$PATH:{{ go_bin }}'
@palm002
palm002 / get-pid.sh
Last active February 20, 2020 10:13
getting PID from a service enabled by user
#!/usr/bin/env bash
# capture the PID of service
ps aux | grep $SERVICE | grep jenkins | grep -v grep | awk '{print $2}' > /path/to/logs/log.txt