Skip to content

Instantly share code, notes, and snippets.

View jutaz's full-sized avatar

Justas Brazauskas jutaz

View GitHub Profile
@chu-yik
chu-yik / fix_whitespace_in_patch.md
Created December 21, 2018 14:43
How to fix whitespace in .patch file

Fix whitespace in .patch files

  1. go to package.json and remove postinstall from scripts
  • i.e. remove this line:
"postinstall": "patch-package && rm -f ./node_modules/react-native/local-cli/core/__fixtures__/files/package.json",
  • this is to stop broken patches from being auto applied after yarn
  • DO NOT commit this change

macOS 10.12 Sierra Setup

Custom recipe to get macOS 10.12 Sierra running from scratch, setup applications and developer environment. This is very similar (and currently mostly the same) as my 10.11 El Capitan setup recipe and 10.10 Yosemite setup recipe. I am currently tweaking this for 10.12 Sierra and expect to refine this gist over the next few weeks.

I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. I generally reinstall each computer from scratch every 6 months, and I do not perform upgrades between releases.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your o

@tuxfight3r
tuxfight3r / jenkins-decrypt.groovy
Created September 23, 2015 11:36
Decrypting Jenkins Password
#To Decrypt Jenkins Password from credentials.xml
#<username>jenkins</username>
#<passphrase>your-sercret-hash-S0SKVKUuFfUfrY3UhhUC3J</passphrase>
#go to the jenkins url
http://jenkins-host/script
#In the console paste the script
hashed_pw='your-sercret-hash-S0SKVKUuFfUfrY3UhhUC3J'
@fabiofl
fabiofl / gist:5873100
Created June 27, 2013 00:41
Clear Mac OS X's icon cache.
sudo find /private/var/folders/ -name com.apple.dock.iconcache -exec rm {} \;
@marcoscaceres
marcoscaceres / ChestnutRisotto.md
Last active June 2, 2017 11:52
Chestnut Risotto

Chestnut Risotto - Level 1

Cooking Recommendation

Abstract

This recipe produces a risotto that has been described as "yummy". Because of its heavy dependency on chestnuts, it is seasonable for December. Serves 4.

Status of this Document

This section describes the status of this recipe at the time of its publication. Other recipes may supersede this recipe, specially if it doesn't taste as good as it could.

Conformance