Skip to content

Instantly share code, notes, and snippets.

View mimukit's full-sized avatar

Mukitul Islam Mukit mimukit

View GitHub Profile
@mimukit
mimukit / SSH key setup.md
Last active October 11, 2024 11:38
Quick guide for SSH setup on macOS
  1. Setup ssh key on your pc (skip this step if you already have it)
    • Run this command with your email address instead of your_email@example.com .
    ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
    
    • Start the ssh-agent in the background.
    eval "$(ssh-agent -s)"
    
  • Add your SSH private key to the ssh-agent and store your passphrase in the keychain.
[PHP]
;;;;;;;;;;;;;;;;;;;;
; Language Options ;
;;;;;;;;;;;;;;;;;;;;
engine = On
short_open_tag = Off
precision = 14
output_buffering = 4096
zlib.output_compression = Off
@mimukit
mimukit / custom_php.ini
Last active July 16, 2024 08:13
Custom PHP config file
[PHP]
;;;;;;;;;;;;;;;;;;;;
; Language Options ;
;;;;;;;;;;;;;;;;;;;;
engine = On
short_open_tag = Off
precision = 14
output_buffering = 4096
zlib.output_compression = Off
@mimukit
mimukit / block_youtube_shots.md
Created December 6, 2022 18:33
Disable youtube shots on browser using ublock origin

How to block youtube shorts using ublock origin

  • Add the following script to your ad blocker. I used Ublock Origin (Dashboard > My Filters). It may work with other add-ons.
www.youtube.com##:xpath(//ytd-grid-video-renderer[descendant::a[contains(@href,"shorts")] and not(contains(@class,"shelf"))])
  • Click on Apply changes.
@mimukit
mimukit / OpenGL_ChessBoard.cpp
Created June 12, 2016 17:57
ChessBoard Drawing Using Loop with OpenGL
#include <stdio.h>
#include <GL/glut.h>
int x = 50, y = 50;
bool isBlack = true;
void whiteBox(int x, int y)
{
glBegin(GL_LINE_LOOP);
glVertex2i(x, y);
@mimukit
mimukit / OpenGL_CircleAlog.cpp
Created June 13, 2016 06:41
Midpoint Circle Drawing Algorithm Implementation using OpenGL
#include <stdio.h>
#include <iostream>
#include <GL/glut.h>
using namespace std;
int pntX1, pntY1, r;
void plot(int x, int y)
{
glBegin(GL_POINTS);
@mimukit
mimukit / starship.toml
Created January 9, 2022 18:01
Starship configuration (Starship.rs)
# ~/.config/starship.toml
[battery]
full_symbol = "🔋"
charging_symbol = "🔌"
discharging_symbol = "⚡"
[[battery.display]]
threshold = 30
style = "bold red"
@mimukit
mimukit / OpenGL_Mouse_Keyboard_Interaction.cpp
Created August 1, 2016 07:53
Mouse and keyboard event handling with OpenGL
#include <stdio.h>
#include <GL/glut.h>
static GLfloat spin = 0.0;
static GLfloat spin_speed = 1.0;
float spin_x = 0;
float spin_y = 1;
float spin_z = 0;
float translate_x = 0.0;
@mimukit
mimukit / OpenGL_ExtendedBasicTransformation.cpp
Last active October 7, 2022 12:06
Translation, Scaling, Rotation, Mirror Reflection and Shearing with OpenGL library
#include <stdio.h>
#include <math.h>
#include <iostream>
#include <vector>
#include <GL/glut.h>
using namespace std;
int pntX1, pntY1, choice = 0, edges;
vector<int> pntX;
vector<int> pntY;
@mimukit
mimukit / fish_shell_abbreviations.md
Last active August 24, 2022 20:34
Fish shell abbreviations for mac

abbr -a -U -- abbra 'abbr --add'

abbr -a -U -- addfishpath 'set --universal --append fish_user_paths'

abbr -a -U -- brewup 'brew update && brew upgrade && brew cleanup'

abbr -a -U -- c clear

abbr -a -U -- ct 'cloudflared tunnel'