Skip to content

Instantly share code, notes, and snippets.

Daniel Weibel weibeld

Block or report user

Report or block weibeld

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
@weibeld
weibeld / kubernetes-projects.md
Created Jan 16, 2019
Collection of interesting Kubernetes projects
View kubernetes-projects.md
View 09986-2018-12-07.md

2018-12-07

During the last days, figured out a couple of things.

Creating and deleting users and vhosts through the RabbitMQ Management REST API

This is done through simple HTTP calls to different endpoints under http://host:15672/api/. All the calls use HTTP Basic Authentication with username and password of a RabbitMQ user with appropriate permissions.

To create a user and vhost and grant the user access to this vhost only:

@weibeld
weibeld / install-cloud-foundry.sh
Created Aug 28, 2018
Cloud Foundry installation script
View install-cloud-foundry.sh
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
@weibeld
weibeld / blocked-apps-in-china.txt
Created Aug 28, 2018
Blocked applications in China (2018)
View blocked-apps-in-china.txt
Blocked:
- WhatsApp
- Telegram
- Slack
- Reddit
- Medium
- Facebook
- Instagram
- Twitter
@weibeld
weibeld / install-docker-ec2-ubuntu.sh
Created Aug 3, 2018
Install Docker on AWS EC2 instance
View install-docker-ec2-ubuntu.sh
#!/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 / telegram-cli.md
Last active Mar 3, 2019
Telegram CLI Commands
View telegram-cli.md

Telegram CLI Commands

Commands of the Telegram CLI. This is the output of the help command for version 1.4.1.

Command Description
accept_secret_chat <secret chat> Accepts secret chat. Only useful with -E option
add_contact <phone> <first name> <last name> Tries to add user to contact list
block_user <user> Blocks user
broadcast <user>+ <text> Sends text to several users at once
@weibeld
weibeld / aws-ec2-init-ubuntu.sh
Last active Mar 4, 2018
AWS EC2 Ubuntu instance configuration script
View aws-ec2-init-ubuntu.sh
#!/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 / pandoc-latex-template.tex
Created Feb 25, 2018
LaTeX template for using with Pandoc
View pandoc-latex-template.tex
% Pandoc LaTeX template
%
% Adapted from the R Markdown Pandoc LaTeX template.
%
% The tokens inside dollar signs are processed by Pandoc. Pandoc template
% variables can be passed to Pandoc on the command line with -V KEY[:VALUE]
% or --variable=KEY[:VALUE].
%
% The location of the R Markdown Pandoc LaTeX template (from which the present
% file derives) on Mac is something like:
@weibeld
weibeld / README.md
Last active May 3, 2019
Instructions for the dotfile repository on https://github.com/weibeld/dotfiles
View README.md

Dotfiles

Instructions for the dotfile repository on https://github.com/weibeld/dotfiles.

Introduction

The dotfiles in this repository are installed using a bare Git repository. This method does not use symlinks (like most other dotfile repositories).

After the installation, all the dotfiles will be physically present in your home folder, yet, you will still have them under full version control.

@weibeld
weibeld / greek-civilisations.md
Created Jan 20, 2018
List of ancient Greek civilisations
View greek-civilisations.md

Minoan Culture

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

Mycenaean Culture

  • Mainland Greece
  • 1600 - 1100 BC
You can’t perform that action at this time.