Skip to content

Instantly share code, notes, and snippets.

View helllth's full-sized avatar

Thorsten Hell helllth

View GitHub Profile
@helllth
helllth / settings.xml
Last active May 17, 2016 10:23
Public Dev settings.xml
<?xml version="1.0"?>
<settings>
<localRepository>.\m2_repository</localRepository>
<profiles>
<profile>
<id>global-properties</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile>
@helllth
helllth / 000-Import.sh
Last active September 6, 2018 09:08
MongoDB Geospatial Queries
mongoimport --db test --collection auszug --file WuppertalCSV-Auszug1.txt
mongoimport --db test --collection auszug --file WuppertalCSV-Auszug2.txt
@helllth
helllth / 000-steps.sh
Last active November 17, 2015 06:53
WuNDa REST Zugriff
################################################################################
#Zugriffstest
################################################################################
curl https://boxy.cismet.de:8891/service/ping
#curl: (60) SSL certificate problem: self signed certificate
#More details here: http://curl.haxx.se/docs/sslcerts.html
#curl performs SSL certificate verification by default, using a "bundle"
# of Certificate Authority (CA) public keys (CA certs). If the default
@helllth
helllth / OpenIssue
Created January 21, 2015 13:47
Bookmarklet to open issue by number (same window if already in the project)
javascript:(function(){
var val=prompt("Kundenportal Wuppertal\n\nIssue# eingeben","");
if(val){
var loc=window.location+" ";
if (loc.indexOf('https://github.com/cismet/wupp/issues')>-1) {
// window.alert('window.location');
window.location='https://github.com/cismet/wupp/issues/'+escape(val);
}
@helllth
helllth / 0_reuse_code.js
Created June 3, 2014 13:08
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

Keybase proof

I hereby claim:

  • I am helllth on github.
  • I am helllth (https://keybase.io/helllth) on keybase.
  • I have a public key whose fingerprint is D671 60A1 5EA0 CEE1 5A55 5865 B67F 8CF6 72D5 15A2

To claim this, I am signing this object:

@helllth
helllth / pr.md
Created October 28, 2013 17:04 — forked from piscisaureus/pr.md

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@helllth
helllth / beep.sh
Last active December 19, 2015 00:39
Beeper ... makes some noise
#!/bin/bash
COUNTER=0
speech="th Beep"
speech2=" of "
pause=$2
if [ ! -z $1 ] && [ $1 = ? ]
then
echo "beep [nummer of beeps] [pause in seconds]"
exit
@helllth
helllth / createAGithubIssueWithCURL.bash
Last active December 15, 2015 03:39
a command to create an issue on github (even with line breaks in the body)
#!/bin/sh
curl -X POST -u '[user]:[pass]' -d @jsonFileLikeTheCommentsBelow.json https://api.github.com/repos/[user]/[reponame]/issues
#{"title": "curl Issue","body": "the body (with linebreaks)\n
# yes with linebreaks.\n
# just don't forget the backslash n at the end\n
#"}
@helllth
helllth / pocket.js
Created November 4, 2012 10:33
+pocket Bookmarklet
javascript:(function()%7BISRIL_H='4b92';PKT_D='getpocket.com';ISRIL_SCRIPT=document.createElement('SCRIPT');ISRIL_SCRIPT.type='text/javascript';ISRIL_SCRIPT.src='http://'+PKT_D+'/b/r.js';document.getElementsByTagName('head')%5B0%5D.appendChild(ISRIL_SCRIPT)%7D)();