Skip to content

Instantly share code, notes, and snippets.

View weibeld's full-sized avatar

Daniel Weibel weibeld

View GitHub Profile
@weibeld
weibeld / build.gradle
Last active January 15, 2018 08:17
Example build.gradle file for deploying project to Sonatype OSSRH
// Building
apply plugin: 'java'
repositories {
mavenCentral()
}
dependencies {
compile 'com.rabbitmq:amqp-client:5.1.0'
}
@weibeld
weibeld / Util.java
Created January 20, 2018 02:24
Java class with static util methods
package org.weibeld.util;
/**
* Class with various static utility methods.
* Created by dw on 28/10/16.
*/
public class Util {
private Util() {}
@weibeld
weibeld / list-unicode.sh
Created January 20, 2018 03:30
Bash script for listing Unicode code points and their binary and hexadecimal representation
#!/bin/bash
#
# Given a Unicode code point 'U' and a number 'n', print n lines for each of
# the Unicode code points 'U' to 'U+n', consisting of:
#
# 1. The character 'c' corresponding to 'U'
# 2. The Unicode code point 'U'
# 3. The binary code of 'c' in the terminal's current encoding
# 4. The hexadecimal code of 'c' in the terminal's current encoding
#
@weibeld
weibeld / greek-philosopers.md
Created January 20, 2018 03:37
List of ancient Greek philosophers

Pre-Socratics

Ionian Tradition

Scientific-rationalist orientation.

  • Thales
    • Miletus
    • ca. 624–-546 BC
  • Anaximander
@weibeld
weibeld / greek-civilisations.md
Created January 20, 2018 03:39
List of ancient Greek civilisations

Minoan Culture

  • Crete
  • 2600 to 1100 BC
  • First high civilisation in Europe

Mycenaean Culture

  • Mainland Greece
  • 1600 - 1100 BC
@weibeld
weibeld / aws-ec2-init-ubuntu.sh
Last active March 4, 2018 21:10
AWS EC2 Ubuntu instance configuration script
#!/bin/bash
#
# Script executed automatically upon launch of an AWS EC2 Ubuntu instance.
#
# Pass this script as the "user data" to the instance launching process:
#
# - Web Console: Step 3
# - CLI: aws ec2 run-instances ... --user-data "commands..."
#
# Note that all commands in this script are executed as root in /root.
@weibeld
weibeld / telegram-api.pdf
Last active April 20, 2025 22:08
Telegram CLI Commands
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@weibeld
weibeld / install-docker-ec2-ubuntu.sh
Created August 3, 2018 07:59
Install Docker on AWS EC2 instance
#!/bin/bash
# Install Docker
apt-get update
apt-get install -y docker.io
# Add user 'ubuntu' to group 'docker'
usermod -aG docker ubuntu
@weibeld
weibeld / blocked-apps-in-china.txt
Created August 28, 2018 08:05
Blocked applications in China (2018)
Blocked:
- WhatsApp
- Telegram
- Slack
- Reddit
- Medium
- Facebook
- Instagram
- Twitter
@weibeld
weibeld / install-cloud-foundry.sh
Created August 28, 2018 08:41
Cloud Foundry installation script
wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | apt-key add -
echo "deb https://packages.cloudfoundry.org/debian stable main" | tee /etc/apt/sources.list.d/cloudfoundry-cli.list
apt-get -y install apt-transport-https
apt-get -y update
apt-get -y install cf-cli