Skip to content

Instantly share code, notes, and snippets.

View abalhomaid's full-sized avatar

Abdulaziz Al-Homaid abalhomaid

  • Qatar Computing Research Institute
  • Qatar
View GitHub Profile
@gansanay
gansanay / hdf_vs_feather.ipynb
Last active June 26, 2023 12:25
Compare HDF5 and Feather performance (speed, file size) for storing / reading pandas dataframes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rsaenzi
rsaenzi / PointAtMouse.cs
Last active August 9, 2023 10:57
Script to make a gameobject look at the mouse position in Unity
//
// PointAtMouse.cs
//
// Created by Rigoberto Sáenz Imbacuán (https://linkedin.com/in/rsaenzi/)
// Copyright © 2021. All rights reserved.
//
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
@kwonghung-YIP
kwonghung-YIP / backup-docker-secrets.sh
Created October 15, 2019 03:26
Shell script for export all secrets defined in docker swarm
#!/bin/bash
service_name="backup-all-secrets"
secret_list=( `docker secret ls --format "{{ .Name }}"` )
cmd="docker service create \
--name $service_name \
--constraint node.hostname==`hostname` "
for secret in "${secret_list[@]}"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wwerner
wwerner / grafana-postgres-datasource.yml
Created April 1, 2021 10:02
Example grafana datasource provisioning for postgreSQL
apiVersion: 1
datasources:
- name: Postgres
type: postgres
url: localhost:5432
database: grafana
user: grafana
secureJsonData:
password: "Password!"