Skip to content

Instantly share code, notes, and snippets.

💻
I'm probably coding.

Alexander Rössler machinekoder

💻
I'm probably coding.
Block or report user

Report or block machinekoder

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jpawlowski
jpawlowski / HAproxy_uberspace.markdown
Last active Jul 23, 2019
Setup HAproxy on an Uberspace webspace
View HAproxy_uberspace.markdown

HAproxy als Reverse Proxy auf Uberspace installieren

Wer bei verschiedenen Reverse Proxy Aktivitäten auf seinem Uberspace mit Apache auf Grenzen stößt, kann HAproxy installieren. Ähnlich wie Pound ist es DASein Swiss Army Knife für alle HTTP, HTTPS und TCP Aktivitäten. Man kann sehr granular auf Layer 3-7 beeinflussen, wie Daten an andere Server und Dienste weitergeschleust werden sollen.

Ich benötigte HAproxy, um eine Website von einem externen Server via TLS gesichert per Uberspace verfügbar zu machen, also ein recht simles Szenario.

Apache Proxy einrichten

@mhaberler
mhaberler / ros-bb-jessie.sh
Created Jan 5, 2016
installing ROS indigo ROS-comm on beaglebone jessie
View ros-bb-jessie.sh
# derived from http://wiki.ros.org/ROSberryPi/Installing%20ROS%20Indigo%20on%20Raspberry%20Pi
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu jessie main" > /etc/apt/sources.list.d/ros-latest.list'
wget https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -O - | sudo apt-key add -
sudo apt-get update
sudo apt-get upgrade
@chrisvfritz
chrisvfritz / index.html
Created Nov 18, 2014
Simplest possible HTML template
View index.html
<!doctype html>
<html>
<head>
<title>This is the title of the webpage!</title>
</head>
<body>
<p>This is an example paragraph. Anything in the <strong>body</strong> tag will appear on the page, just like this <strong>p</strong> tag and its contents.</p>
</body>
</html>
@martarodriguezm
martarodriguezm / Google Play Api - Apk Upload.md
Last active Jun 5, 2019
This python script uploads an apk file into Google Play Store using Android Play Publisher API
View Google Play Api - Apk Upload.md

In Google Developer Console inside your app project, on the Credentials section, you must create a new "Service Account" "Client ID", if you have not already. And download the p12 file. You need the service account key file, generated in the Google APIs Console into the same directory and rename it to key.p12.

On Google Play Developer Console you have to give permissions to "YOUR_SERVICE_ACCOUNT_EMAIL@developer.gserviceaccount.com" for uploading apks.

Installation

Download Google APIs Client Library for Python (google-api-python-client): https://code.google.com/p/google-api-python-client/ or use pip:

  $ pip install google-api-python-client
@cit
cit / mu4e-citation-changer.el
Last active Aug 29, 2015
Change the language of the citation line in mu4e automatically when the ispell dictionary is changed.
View mu4e-citation-changer.el
;;; Change the language of the citation line in mu4e automatically
;;
;; Description: Change the language of the citation line in mu4e
;; automatically when the ispell dictionary is changed.
;;
;; Author: Florian Adamsky
;; Maintainer: Florian Adamsky (concat "fa-emacs" "@" "haktar" ".org")
;; Licence: Beer-ware (Revision 42)
;; As long as you retain this notice you can do whatever
View nameses.el
;;; Nameses enables named sessions.
;; Nameses is largely based on my-desktop.el by Scott Frazer
;; Modification by Jannis Teunissen
;; Version 0.02 - 21 Nov 2014 (added extra check)
;;; *** Usage ***
;; Note: if 'name' is not given, you'll be asked for a name
;;
;; (nameses-load prefix &optional name) -> without prefix: load session
;; (nameses-load prefix &optional name) -> with prefix: save session
@steakknife
steakknife / array_slicing_and_compaction.advanced.bash
Last active Jul 29, 2019
Advanced Bash :: Array slicing and compaction in bash
View array_slicing_and_compaction.advanced.bash
# Advanced Bash :: Array slicing and compaction in bash
# TL;DR
X=(something 'whatever' "i have more S P A C E S than i can give away. arent you jealous?")
# ${X[@]} the usual whole array
# ${X[@]:index:length} slice from index to index+length-1 inclusive
# ${X[@]::length} slice from 0 to length-1 inclusive
# ${X[@]:index} slice from index to end of array inclusive
You can’t perform that action at this time.