Skip to content

Instantly share code, notes, and snippets.

View isheraz's full-sized avatar
:atom:

Sheraz Ahmed isheraz

:atom:
View GitHub Profile
@isheraz
isheraz / index.html
Last active November 24, 2023 14:23
Task one for Diractions
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sheraz's Introduction</title>
</head>
<body>
<h1>Sheraz Ahmed, ~9 years of dev experience in the industry. Engineering Consultant, CTO for companies\n Here to
@isheraz
isheraz / follower.json
Last active July 24, 2023 21:26
node follower script
{
"cluster": {
"peername": "ipfs-node-02",
"secret": "ea87ae0d2a8acc435abd57096a44a73631cf6b64e5fda5ef326487f9a405b2d1",
"leave_on_shutdown": false,
"listen_multiaddress": [
"/ip4/0.0.0.0/tcp/9096",
"/ip4/0.0.0.0/udp/9096/quic"
],
"follower_mode": true,
const request = require('supertest');
const {
randomNumber,
randomStr,
} = require('../helpers');
const {
app,
server
@isheraz
isheraz / Links.txt
Last active May 15, 2022 08:05
Blockchain intro Resources List
@isheraz
isheraz / Browser.ts
Last active September 30, 2020 08:32
This is a library for basic browser operations needed in e2e testing
import {
Builder,
ThenableWebDriver,
By,
WebElementPromise,
Key,
WebElement,
Locator,
until
} from 'selenium-webdriver';
@isheraz
isheraz / postgres_backup_restore_without_password.md.js
Last active December 13, 2019 14:47
Postgres backup restore without password
//To Restore The Database Without Password command terminal
// psql --dbname=postgresql://USER:123@localhost:5432/DATABASENAME < PATHTOSTOREFILEAT.sql
//To Generate a Dump of The Database Without Password command terminal
// pg_dump --dbname=postgresql://USER:PASSWORD@localhost:5432/DATABASENAME > PATHTOSTOREFILEAT.sql
// Using NodeJS Process
"use strict";
const execFile = require('child_process').execFile;
const fs = require('fs');
@isheraz
isheraz / iseedAll.php
Created November 9, 2019 06:25
Install iseed and extends to include all tables when seeding
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class iseedAll extends Command
{
/**
* The name and signature of the console command.
@isheraz
isheraz / demo.postman_collection.json
Created April 8, 2019 12:28
Demo Collection for client_credential
{
"info": {
"_postman_id": "b06ceb57-8182-43db-b17b-2ce0fdd63298",
"name": "e-Learn",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "user-demo",
"request": {
@isheraz
isheraz / index.html
Last active October 15, 2018 20:56
Responsive Email Template
<html>
<head>
<style>
@import url(https://fonts.googleapis.com/css?family=Roboto:400,700,400italic,700italic&subset=latin,cyrillic);
body {
margin: 0;
padding: 0;
mso-line-height-rule: exactly;
min-width: 100%;
}
@isheraz
isheraz / request.ino
Created September 11, 2018 21:18
for Lucas to use with beerontaps.com
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
#include <ArduinoJson.h>
const char* ssid = "509 Pak Block";
const char* ssidPassword = "IKnowSomethings12";
DynamicJsonBuffer jsonBuffer;
HTTPClient http;