Skip to content

Instantly share code, notes, and snippets.

@tfnico
tfnico / git-developers.md
Last active Dec 22, 2021
When and how to contact the Git developers
View git-developers.md

Before you send an email to the Git developers' mailing list

If you are a normal Git user, and you have problems using Git, you can also try:

If you believe you've found a bug in Git for Windows or msysGit (Windows-specific), first check their issue tracker to see if the problem has already been reported. If not, send a message to msysgit@googlegroups.com or visit the online forum version.

@tfnico
tfnico / Something.java
Last active Sep 16, 2020
Send http request using google-http-client
View Something.java
// Related to https://gist.github.com/tfnico/5926374
// and http://stackoverflow.com/questions/14464486/guava-input-output-suppliers-and-urlconnection
static final HttpTransport HTTP_TRANSPORT = new NetHttpTransport();
public void sendMessage(String url, String params){
final HttpURLConnection connection;
try {
HttpRequestFactory requestFactory = HTTP_TRANSPORT.createRequestFactory();
@tfnico
tfnico / gitminutes-gitblit.md
Last active Jan 11, 2020
Working with GitBlit tickets
View gitminutes-gitblit.md

This is an addendum to GitMinutes #29: James Moger on GitBlit

push HEAD:refs/for/5

This syntax is used for two scenarios.

a. pushing to a ticket that DOES NOT have any commits

b. pushing a rewrite of commits to a ticket that DOES have commits

@tfnico
tfnico / manifest.pp
Last active Sep 16, 2018
Puppet recipe for installing Java8 on Debian
View manifest.pp
class oracle_java8 {
# This follows the recipe from http://blog.nocturne.net.nz/devops/2013/08/14/provisioning-oracle-java-with-puppet-apply/
# adapted with the instructions from http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html
# define a variable for the webupd8team ppa sources list
$webupd8src = '/etc/apt/sources.list.d/webupd8team.list'
exec {'hello':
unless => "/bin/true",
@tfnico
tfnico / README.md
Last active Apr 12, 2018
Cross-compiling Rust for raspberry-pi (with system dependencies)
View README.md

This is a quick guide on how to set up cross-compilation of Rust programs, where you are using Rust libraries that have system level dependencies, like openssl.

We think it's easiest to cross-compile on a 32 bit linux machine. Could be that 64 bit works as well, but since the arm is 32 bit..

Set up cross-compilation according to https://github.com/Ogeon/rust-on-raspberry-pi

It is a bit of work. but make sure you follow the instructions, and keep to the 32 bit options.

View keybase.md

Keybase proof

I hereby claim:

  • I am tfnico on github.
  • I am tfnico (https://keybase.io/tfnico) on keybase.
  • I have a public key ASDkQGs8RbZYJwhOiWGG4FQnZi7zJlsDf8lgDiDRq3nmKwo

To claim this, I am signing this object:

@tfnico
tfnico / post-receive-email
Created Jul 27, 2011 — forked from cmcculloh/post-receive-email
Example of a post receive email file called by a git hook that sends a color coded formatted html email of the git diff
View post-receive-email
#!/bin/sh
#
# Copyright (c) 2007 Andy Parkins
#
# An example hook script to mail out commit update information. This hook
# sends emails listing new revisions to the repository introduced by the
# change being reported. The rule is that (for branch updates) each commit
# will appear on one email and one email only.
#
# This hook is stored in the contrib/hooks directory. Your distribution
@tfnico
tfnico / console
Last active Mar 1, 2016
Phantomjs died while running protractor tests
View console
> node_modules/protractor/bin/protractor src/test/js/e2e/protractor_phantom.js
Starting selenium standalone server...
Selenium standalone server started at http://192.168.178.59:51258/wd/hub
F
Failures:
1) homepage should show notification after starting import
Message:
@tfnico
tfnico / pom.xml
Last active Dec 28, 2015
dummy pom
View pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.tfnico.dummy</groupId>
<artifactId>dummy-pom</artifactId>
<version>1.0</version>
<build>
<plugins>
<plugin>