Skip to content

Instantly share code, notes, and snippets.

zymr-keshav

  • ZYMR
  • Ahemdabad
Block or report user

Report or block zymr-keshav

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
@zymr-keshav
zymr-keshav / kep.sh
Last active Jul 19, 2018
Shell script which help to create a dynamic json file and run python script based on the arguments
View kep.sh
#!/bin/bash
# @author: Keshav Mohta
# file use to pump events using python script; this shell script help to build the required json data
# call as `sh kep_flag.sh -a <appName> -e <event> -t <eventType> -h <hostname>`
# example sh kep_flag.sh -a "Magento" -e "Attack" -t "Buffer Error" -h "20.20.1.47"
# event = Attack | Threat | File|
# appName: Magento | Sap | OpenText | Nginx | Tomcat | Wondercare
# eventType
# Attack : "ReflectiveXSS" | "File Integrity" | "SQLi"| "Spectre" | "DLLi" | "CSRF" | "CMDi" | "Buffer Error"
# Threat: "ReflectiveXSS" | "File Integrity" | "CSRF" |
@zymr-keshav
zymr-keshav / chart dataset
Last active Jun 26, 2018
javascript array
View chart dataset
const dataset = [
{
detail: {
team: [
{ name: 'alpha', game: 1 },
{ name: 'beta', game: 1 },
{ name: 'gamma', game: 1 },
{ name: 'delta', game: 1 },
{ name: 'echo', game: 1 }
@zymr-keshav
zymr-keshav / chartdata.js
Last active Apr 9, 2018
generate chartjs data from response which comes as key and data and turn into lables and data
View chartdata.js
remakeChartData(input) {
const output = {};
input.map((item) => {
for (let key in item) {
if (!(key in output)) {
output[key] = [];
}
output[key].push(item[key]);
}
});
@zymr-keshav
zymr-keshav / canvas_initials.html
Created Mar 28, 2018
create image with name initials using html5vcanvas
View canvas_initials.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Use Initials Image</title>
</head>
<body>
<img src="" / >
<script>
(function() {
@zymr-keshav
zymr-keshav / invite.html
Last active Feb 1, 2018
email_template.html
View invite.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Account Activation Mail</title>
<style>
body {
display: grid;
justify-content: center;
@zymr-keshav
zymr-keshav / .editorconfig
Created Dec 8, 2017
editor config for sublime text
View .editorconfig
# http://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
View SublimeLinter.sublime-settings
{
"user": {
"debug": true,
"delay": 0.25,
"error_color": "D02000",
"gutter_theme": "Packages/Boxy Theme/extras/SublimeLinter/Boxy.gutter-theme",
"gutter_theme_excludes": [],
"lint_mode": "load/save",
"linters": {
"eslint": {
@zymr-keshav
zymr-keshav / node.sublime-build
Created Dec 5, 2017
Sublime Build to run es6 properies
View node.sublime-build
{
"shell_cmd": "babel-node ${file}",
"selector": "source.js"
}
@zymr-keshav
zymr-keshav / eslint.sublime-build
Created Dec 5, 2017
eslint quick fix sublime build
View eslint.sublime-build
{
"shell_cmd": "$project_path/node_modules/eslint/bin/eslint.js --fix $file"
}
@zymr-keshav
zymr-keshav / Preferences.sublime-settings
Created Dec 5, 2017
sublime prefrences custom settings
View Preferences.sublime-settings
{
"always_show_minimap_viewport": true,
"auto_complete": true,
"auto_complete_commit_on_tab": true,
"auto_complete_with_fields": true,
"auto_find_in_selection": true,
"binary_file_patterns":
[
"*.dds",
"*.eot",
You can’t perform that action at this time.