Skip to content

Instantly share code, notes, and snippets.

View SeppPenner's full-sized avatar
😜
I like cookies 🍪🍪🍪🍪

SeppPenner SeppPenner

😜
I like cookies 🍪🍪🍪🍪
View GitHub Profile
@SeppPenner
SeppPenner / raspbian-python3.6.rst
Last active July 6, 2018 16:47 — forked from dschep/raspbian-python3.6.rst
Installing Python 3.6 on Raspbian

Installing Python 3.6 on Raspbian

As of January 2017, Raspbian does not yet include the latest Python release, Python 3.6. This means we will have to build it ourselves, and here is how to do it.

  1. Install the required build-tools (some might already be installed on your system).

@SeppPenner
SeppPenner / Installing Python 3.6.4 on Raspbian.rst
Last active June 29, 2019 15:57
Installing Python 3.6.4 on Raspbian

Installing Python 3.6.4 on Raspbian =================================

As of March 2018, Raspbian does not yet include the latest Python release, Python 3.6.4 This means we will have to build it ourselves, and here is how to do it.

  1. Install the required build-tools (some might already be installed on your system).

@SeppPenner
SeppPenner / gist:12cea36ed62e1d7f9847c325499659e3
Created February 24, 2018 17:02 — forked from jwebcat/gist:5122366
Properly download from github using wget and curl
wget --no-check-certificate --content-disposition https://github.com/joyent/node/tarball/v0.7.1
# --no-check-cerftificate was necessary for me to have wget not puke about https
curl -LJO https://github.com/joyent/node/tarball/v0.7.1
@SeppPenner
SeppPenner / README.md
Created April 11, 2018 08:55 — forked from roachhd/README.md
EMOJI cheatsheet 😛😳😗😓🙉😸🙈🙊😽💀💢💥✨💏👫👄👃👀👛👛🗼🔮🔮🎄🎅👻

EMOJI CHEAT SHEET

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. ✈ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

People

:bowtie: 😄

@SeppPenner
SeppPenner / gist:18329cb1086c93f01215ffd80c53e5c1
Created April 11, 2018 08:55 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@SeppPenner
SeppPenner / gist:4b3f7d8f6cb05091bae2de5821499fad
Created May 7, 2018 15:46 — forked from oysteinjakobsen/gist:e59cdd38a688ee8a418a
How to get docker-compose (fig) up and running on Raspberry Pi 2

Background

I assume you already have Docker up and running on your Raspberry Pi 2. If not, see this article.

The next natural step is to install Docker Compose (formerly Fig), but there's no ARM support out of the box. This recipe will help you install Docker Compose on your Raspberry Pi 2!

The following six steps will do the trick:

  1. Get the docker-compose source code from git
@SeppPenner
SeppPenner / gist:0cadb187b7f49c5743b3edd855092964
Created May 10, 2018 16:27 — forked from pazdera/gist:1121315
Brute-force string generation in Python (optimized for printable characters only)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Brute-force string generation
# Copyright (C) 2011 Radek Pazdera
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
@SeppPenner
SeppPenner / ChooserDialog.java
Created May 13, 2018 12:15
ChooserDialog.java with setOnCancelListener and setNegativeButton
package something.filechooser;
import android.Manifest;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Environment;
@SeppPenner
SeppPenner / Log for signal app-Contact sync.txt
Last active June 20, 2018 18:19
Log for signal app-Contact sync
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Signal/1.12.1 Chrome/61.0.3163.100 Electron/2.0.1 Safari/537.36 node/8.9.3 env/production
INFO 2018-06-20T13:07:08.514Z app ready
INFO 2018-06-20T13:07:08.530Z Ensure attachments directory exists
INFO 2018-06-20T13:07:08.718Z Location reset needed
INFO 2018-06-20T13:07:08.718Z Initializing BrowserWindow config: {"show":true,"width":800,"height":610,"minWidth":640,"minHeight":360,"autoHideMenuBar":false,"webPreferences":{"nodeIntegration":false,"nodeIntegrationInWorker":false,"preload":"[REDACTED]\\app.asar\\preload.js","nativeWindowOpen":true},"icon":"[REDACTED]\\app.asar\\images\\icon_256.png"}
INFO 2018-06-20T13:07:13.022Z Using OS-level spell check API with locale de_DE
INFO 2018-06-20T13:07:13.319Z pre-main prep time: 0 ms
INFO 2018-06-20T13:07:13.366Z Build expires: 2018-09-12T23:01:49.000Z
INFO 2018-06-20T13:07:13.401Z background page reloaded
INFO 2018-06-20T13:07:13.402Z environment: production
@SeppPenner
SeppPenner / Dockerfile
Last active April 9, 2021 10:05
Dockerfile for VerneMQ setup on Raspberry Pi including bridging to another broker
FROM armhf/debian:jessie
RUN apt-get update && apt-get install -y \
libssl-dev \
logrotate \
sudo \
curl \
jq \
&& rm -rf /var/lib/apt/lists/*