Skip to content

Instantly share code, notes, and snippets.

View lalamax3d's full-sized avatar

Haseeb Ahmed lalamax3d

View GitHub Profile
@lalamax3d
lalamax3d / vtk_imgui.md
Created January 26, 2024 05:38
VTK and ImGui ( Setup / Build ) vs 2022 community

NOTES

Build VTK from src (cmake n Vs 2022)

i followed mostly this guide

  • install cmake (latest)
  • install visual studio 2022 community
  • download vtk (latest), extract in src (like)
@lalamax3d
lalamax3d / split_cube_pano_room.py
Last active January 19, 2024 23:33
split_cube_pano_room.py
from PIL import Image
import os
'''
intent is to save main tiles and then stitch them horizontally.
like here >> https://github.com/doge/cubemap_converter (hrow)
'''
@lalamax3d
lalamax3d / tk_cv_example.py
Created December 26, 2019 17:55
sample tk application structure to work with opencv
import tkinter
import cv2
import PIL.Image, PIL.ImageTk
import time
class App():
def __init__(self, window, window_title, video_source=0):
self.window = window
self.window.title(window_title)
self.window.configure(background='dark slate gray')
@lalamax3d
lalamax3d / notes_python.md
Last active July 14, 2021 15:54
simple conda cheat sheet for my own brain.

CONDA

  • conda info -e
  • jupyter notebook
  • conda create -h
  • conda create -n myenv python=3.7.9 ipython pyside2
  • conda create -n myenv sqlite
  • conda activate myenv
  • activate myenv | source activate myenv
  • deactivate
@lalamax3d
lalamax3d / notes_vestaCP.md
Last active January 25, 2021 18:31
general stuff related to vestacp or basic linux commands

ssh machine access and onward notes (centos or ubuntu etc)

CHECK / SET MACHINE NAME

hostname hostnamectl status

CHECK USAGE ETC

@lalamax3d
lalamax3d / notes_ubuntu-CLI.md
Last active February 16, 2021 18:39
ubuntu cli tips

List of useful cli tools in ubuntu

  • altinstall
  • jobs
  • rclone
  • cron
  • tmux (session continuity in remote sessions)
  • mitmproxy
  • cockpit (docker)
  • puppet | chef | ansible | rudder ( remote server compliance )
  • top | htop | ntop
@lalamax3d
lalamax3d / notes_ubuntu-desktop.md
Last active January 25, 2021 18:34
useful tips about using linux desktop (one step better)

top >> h ? top -b -n1 > logs/topLog.txt (run in batch move | outputs data in log file) top -o %CPU -d 10 -i (sort cpu usage wise | refresh after 10 seconds | hide idle processes) top -u root (show root user processes)

SHORTCUT KEYS q > quit ctl+z > hide fg > show again pgup | pgdn scroll

@lalamax3d
lalamax3d / notes_wordpress.md
Last active January 25, 2021 18:49
wordpress notes

if wp theme screwed , wanted to set to default via phpmyadmin

  • update wp_options set option_value = 'default' where option_name = 'template'
  • update wp_options set option_value = 'default' where option_name ='stylesheet'

Remove Admin bar on top

In functions.php > Add at end

add_action('after_setup_theme', 'remove_admin_bar');

function remove_admin_bar() { if (!current_user_can('administrator') && !is_admin()) {