You have installed GPG, then tried to perform a git commit and suddenly you see this error message after it 😰
error: gpg failed to sign the data
fatal: failed to write commit object
Understand the error (important to solve it later!)
Enter this in the search box along with your search terms:
Get all gists from the user santisbon.
user:santisbon
Find all gists with a .yml extension.
extension:yml
Find all gists with HTML files.
language:html
this algorithm 10x faster than https://www.dotnetperls.com/duplicates-go and zero allocation
➜ api git:(master) ✗ go test -v -bench=. main_test.go
=== RUN TestSliceUniq
--- PASS: TestSliceUniq (0.00s)
BenchmarkSliceUniq-4 3000000 439 ns/op 0 B/op 0 allocs/op
BenchmarkRemoveDuplicates-4 500000 4599 ns/op 571 B/op 8 allocs/op
PASS
| #!/bin/bash | |
| function usage { | |
| echo "Usage: $0 -c [CodeSign Directory] -p [Xcode Project File.xcodeproj]" | |
| echo "If any arguments are not specified, defaults will be attempted. If defaults don't exist, script will exit." | |
| echo "OPTIONS:" | |
| echo " -c [CodeSign Directory]: Location of directory containing project's provisioning profiles." | |
| echo " -p [Xcode Project File]: Path of Xcode project directory (the .xcodeproj, not .pbxproj)" | |
| echo " -b: Use PlistBuddy command for UUID replacement instead of sed. (Better handling of a couple of edge cases, but makes diffs impossible to read.)" | |
| echo " -v: Verbose logging." |
| #!/bin/bash | |
| # encode.sh | |
| # | |
| # Copyright (c) 2013 Don Melton | |
| # | |
| # This version published on June 7, 2013. | |
| # | |
| # Re-encode video files in a format suitable for playback on Apple TV, Roku 3, | |
| # iOS, OS X, etc. |
| # xcode-build-bump.sh | |
| # @desc Auto-increment the build number every time the project is run. | |
| # @usage | |
| # 1. Select: your Target in Xcode | |
| # 2. Select: Build Phases Tab | |
| # 3. Select: Add Build Phase -> Add Run Script | |
| # 4. Paste code below in to new "Run Script" section | |
| # 5. Drag the "Run Script" below "Link Binaries With Libraries" | |
| # 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0) |
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
To run this, you can try:
curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh