Skip to content

Instantly share code, notes, and snippets.

View omair18's full-sized avatar

omair18 omair18

View GitHub Profile
@omair18
omair18 / postman_installation.md
Created February 15, 2023 02:36 — forked from Akhil-Suresh/postman_installation.md
Installing Postman on Ubuntu/Debian

Installing Postman

Step 1

If any version of postman is installed we need to remove it

sudo rm -rf /opt/Postman

Step 2

@omair18
omair18 / promtail_docker_logs.md
Created January 11, 2022 07:29 — forked from ruanbekker/promtail_docker_logs.md
Docker Container Logging using Promtail
### NOTE ###
The below gist is converted to a blog post and available at below link. Refer than instead.
http://hemenkapadia.github.io/blog/2016/05/07/Ubuntu-with-Nvidia-Bumblebee.html
#### Note about kernel versions ####
Between kernel versions 4.2 and 4.4 there are different options that need to bet set
@omair18
omair18 / pts2pcd
Created July 24, 2016 13:54 — forked from lorinma/pts2pcd
convert pts file to pcd file
filename="DamagedBeam.pts"
from numpy import loadtxt
from numpy import savetxt
lines = loadtxt(filename,skiprows=1)
size=str(lines[:,0].size)
header = "VERSION .7\nFIELDS x y z\nSIZE 4 4 4\nTYPE F F F\nCOUNT 1 1 1\nWIDTH "+size+"\nHEIGHT 1\nVIEWPOINT 0 0 0 1 0 0 0\nPOINTS "+size+"\nDATA ascii"
pcd=lines[:,[0,1,2]]
savetxt("DamagedBeam.pcd", pcd, fmt="%f",header=header,comments='')