Skip to content

Instantly share code, notes, and snippets.

View lablnet's full-sized avatar
🤗
I may be slow to respond.

Muhammad Umer Farooq lablnet

🤗
I may be slow to respond.
View GitHub Profile
@lablnet
lablnet / open.md
Last active April 2, 2024 05:53
What are the steps to launch the iOS Simulator as an iPad Pro and other model using the open command in the Terminal?

To open the iOS Simulator as an iPad Pro or other using the open command, you can follow these steps:

  • First, ensure that Xcode is installed on your Mac, as it includes the iOS Simulator.
  • Open the Terminal app.
  • Use the xcrun simctl list command to get a list of available devices and find the identifier for the iPad Pro model you want to simulate.
  • Use the open command with the -a flag to launch the Simulator app, and then specify the device type with the --args flag and -CurrentDeviceUDID followed by the device identifier. Here's a general example of the command:
open -a Simulator --args -CurrentDeviceUDID YOUR-DEVICE-ID
@lablnet
lablnet / README.md
Last active July 24, 2023 01:58
Add multiple origin url into one repo.

Instruction

  1. Consider you have already one origin url which you added by git remote add origin $url
  2. Now other URL you will add like that, git remote set-url --add origin $url

That's all.

@lablnet
lablnet / Dockerfile
Created September 10, 2022 11:18
Flutter Dev Container For GitHub CodeSpace / VS Code.
FROM mcr.microsoft.com/vscode/devcontainers/universal:1-focal
USER root
# [Optional] Uncomment this section to install additional OS packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-list-here>
USER codespace
@lablnet
lablnet / how-to-setup-verified-commits.md
Created March 15, 2022 12:32 — forked from Beneboe/how-to-setup-verified-commits.md
How to Setup Verified Commits on Github
<?php
class Capture
{
/**
* Capture web screenshot using google api.
*
* @param (string) $url Valid url
*
* @return blob
#!/bin/bash
# usage ./git.sh "commit msg" branch
if [ -z "$1" ]; then
echo "Please provide commit message."
exit
fi
# we can pull before commit or push
@lablnet
lablnet / List.h
Created May 3, 2021 11:29
DSA Mid Exam Riphah
#ifndef MIDTERMEXAM_LIST_H
#define MIDTERMEXAM_LIST_H
template <typename T>
class List {
public:
T data;
List *prev;
List *next;
};
@lablnet
lablnet / flutter_github_ci.yml
Created April 20, 2021 08:53 — forked from rodydavis/flutter_github_ci.yml
Flutter Github Actions Build and Deploy Web to Firebase Hosting, iOS to Testflight, Android to Google Play (fastlane)
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build_web:
@lablnet
lablnet / List.cpp
Created March 31, 2021 02:50
C++ Dynamic list without quote unquote Linked List
#include <iostream>
//#include "List/List.h"
template <typename T>
class List {
private:
T *data;
T *tmp;
int storage = 1;
@lablnet
lablnet / stackNqueue_C++.cpp
Created March 28, 2021 11:50
Stack and Queue implementation to array in C++
#include <iostream>
template <typename T>
class Stack {
public:
T *arr = new T[sizeof(T)];
int top = -1;
void push(T element)
{