Skip to content

Instantly share code, notes, and snippets.

View shahnawaz's full-sized avatar
🎯
Focusing

Shahnawaz Ali Kausar shahnawaz

🎯
Focusing
View GitHub Profile
# -----------------------
# Apps
# -----------------------
alias google="open -a /Applications/Google\ Chrome.app"
alias gmail="google https://mail.google.com/"
alias slack="open -a /Applications/Slack.app"
alias pman="open -a /Applications/Postman.app"
alias enote="open -a /Applications/Evernote.app"
@shahnawaz
shahnawaz / ingress-nginx
Last active July 8, 2020 08:59
k8s - v1.16 | ingress-nginx - v1 (Error from server (InternalError): error when creating "STDIN": Internal error occurred: failed calling webhook "validate.nginx.ingress.kubernetes.io": Post https://ingress-nginx-controller-admission.ingress-nginx.svc:443/extensions/v1beta1/ingresses?timeout=30s: x509: certificate signed by unknown authorit)
apiVersion: v1
kind: Namespace
metadata:
name: ingress-nginx
labels:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/instance: ingress-nginx
---
@shahnawaz
shahnawaz / App.tsx
Last active June 22, 2020 13:53
react-native-barcode-mask onLayoutMeasured (Provides event so we could get mask position on screen and filter coordinates from camera component)
import React from 'react';
import { StyleSheet, Text, View, Button } from 'react-native';
import { RNCamera } from 'react-native-camera';
import BarcodeMask, { LayoutChangeEvent } from 'react-native-barcode-mask';
export default function App() {
const [isCameraOpen, setIsCameraOpen] = React.useState(false);
const onLayoutMeasuredHandler = (e: LayoutChangeEvent) => {
alert(JSON.stringify(e));
/* Our greeting function */
function greeting(message) {
return `${this.name}! ${message}`;
}
/* Person we will be greeting */
const Person = {
name: 'Don Joe'
};
@shahnawaz
shahnawaz / barcode-mask-example-3.jsx
Last active March 15, 2024 12:34
react-native-barcode-mask example usage
import React from "react";
import {
Text,
View,
Item,
Icon,
Input,
Button
} from 'native-base';
import { KeyboardAvoidingView } from "react-native";
---
ip: "192.168.10.10"
memory: 1348
cpus: 2
authorize: C:/Users/Shahnawaz Ali/.ssh/id_rsa.pub
keys:
- C:/Users/Shahnawaz Ali/.ssh/id_rsa
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#