Skip to content

Instantly share code, notes, and snippets.

View highelf's full-sized avatar
😃

amir modiri highelf

😃
View GitHub Profile
@buo
buo / grafana-config.yml
Created July 25, 2017 08:54
Kubernetes ConfigMap for Grafana default configuration
apiVersion: v1
kind: ConfigMap
metadata:
name: grafana-config
data:
grafana.ini: |
##################### Grafana Configuration Example #####################
#
# Everything has defaults so you only need to uncomment things you want to
# change
@alanwill
alanwill / s3-bucket-move
Created December 5, 2015 20:27
Move an S3 bucket to a different region
aws s3 sync s3://oldbucket s3://newbucket --source-region us-west-1 --region us-west-2
@brianz
brianz / install-docker.sh
Last active July 7, 2023 07:32
Install docker on Amazon Linux
#!/bin/bash
#
# steps taken verbatim from:
# http://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-basics.html#install_docker
#
sudo yum update -y
sudo yum install -y docker
sudo service docker start
sudo usermod -a -G docker ec2-user
# log out and log in to pickup the added group
@plepe
plepe / gist:52ecc9f18efb32c68d18
Last active October 21, 2025 13:49
MDADM and LVM cheat sheet

mdadm

Glossary:

  • md: multiple devices
command description
cat /proc/mdstat show status of all raids
mdadm --detail /dev/md0 detailed status of raid md0
QBUser participant = new QBUser(2);
QBPrivateChatManager manager = QBChatService.getInstance().getPrivateChatManager();
manager.addChatListener(new QBChatManagerListener() {
@Override
public void chatCreated(QBChat chat) {
}
@rob-murray
rob-murray / add_intellij_launcer
Last active October 1, 2025 08:52
Add Intellij launcher shortcut and icon for ubuntu
// create file:
sudo vim /usr/share/applications/intellij.desktop
// add the following
[Desktop Entry]
Version=13.0
Type=Application
Terminal=false
Icon[en_US]=/home/rob/.intellij-13/bin/idea.png
Name[en_US]=IntelliJ