Skip to content

Instantly share code, notes, and snippets.

View Xennis's full-sized avatar
🚀
rocketing

Fabian Rosenthal Xennis

🚀
rocketing
View GitHub Profile
@asukakenji
asukakenji / 0-go-os-arch.md
Last active November 6, 2024 03:19
Go (Golang) GOOS and GOARCH

Go (Golang) GOOS and GOARCH

All of the following information is based on go version go1.17.1 darwin/amd64.

GOOS Values

GOOS Out of the Box
aix
android
@jacquerie
jacquerie / README.mdown
Last active February 8, 2016 12:55
Generate and use GROBID bindings with PyXB

Generate and use GROBID bindings with PyXB

  1. Install PyXB and IPython:

    $ pip install ipython pyxb
  2. Generate the bindings:

@leonardorame
leonardorame / ngAdmin Login
Created February 9, 2015 18:37
ng-admin login
/*
Small ng-admin config showing how to inject a Login controller when
a 401 error is returned by the server.
*/
(function () {
"use strict";
var app = angular.module('myApp', [
@myusuf3
myusuf3 / delete_git_submodule.md
Created November 3, 2014 17:36
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
@renier
renier / comments-added.py
Created March 24, 2012 13:23
Gerrit hook for auto-submission when enough reviews and verifications are detected.
#!/usr/bin/python
import json, sys
from subprocess import Popen, PIPE
change = sys.argv[2]
for x in range(len(sys.argv)):
if sys.argv[x] == "--change":
change = sys.argv[x+1]
break
@devi
devi / hierarchy.php
Last active August 16, 2024 16:49
MySQL "Closure Table" for Kohana based on Bill Karwin design.
<?php defined('SYSPATH') or die('No direct script access.');
/**
* MySQL "Closure Table" for Kohana based on Bill Karwin design.
*
* @link http://www.slideshare.net/billkarwin/models-for-hierarchical-data
* @TODO improve
*
* sql schema:
* CREATE TABLE `closures` (
* `id` int(11) NOT NULL AUTO_INCREMENT,