Skip to content

Instantly share code, notes, and snippets.

Avatar
😃
Exploring

Shareef hiasat shareefhiasat

😃
Exploring
View GitHub Profile
@shareefhiasat
shareefhiasat / sample of what is going on
Created April 12, 2019 15:24
Connection String Encryption
View sample of what is going on
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Diagnostics;
@shareefhiasat
shareefhiasat / paybutton
Created April 9, 2019 13:01
console log
View paybutton
Got the catalog! [{"catalogId":1,"name":"PCSB Online Catalog","status":"ACTIVE","segment":"CONSUMER","description":"The Progresif online Catalog for consumers","validFromDate":null,"category":"MASTER","operator":"PCSB"}]
paybutton.js:formatted:168 Got the product! [{"productId":101,"productLegacyId":"PCSB-ETICKET","catalog":{"catalogId":1,"name":"PCSB Online Catalog","status":"ACTIVE","segment":"CONSUMER","description":"The Progresif online Catalog for consumers","validFromDate":null,"category":"MASTER","operator":"PCSB"},"subCatalog":{"catalogId":3,"name":"A360-CATALOG","status":"ACTIVE","description":"A360 (ARIS) catalog","validFromDate":null,"category":"OSS-BSS","operator":"PCSB"},"productName":"eTicket","upfrontCost":0,"upfrontVat":0,"recurringVat":0,"costUnit":"cents","currency":"BND","recurring":false,"description":"eTicket technical offer","rank":6,"billingMode":"PREPAID","category":"TechnicalOffer","subCategory":"ETicket","localizedCategory":"Technical Offer","saleExpiryDate":null,"navigable":true,"ta
View jquery.cardvalidator.js
// Generated by CoffeeScript 1.10.0
(function() {
var $, Range, Trie,
indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
Trie = (function() {
function Trie() {
this.trie = {};
}
@shareefhiasat
shareefhiasat / Algorithims_Interview_Review.java
Last active August 11, 2018 18:52
Algorithims Interview Review
View Algorithims_Interview_Review.java
//2-kim
public void bubbleIterative(int arr[], int start, int end){
int n = arr.length;
int k;
for(int m = n; m >= 0; m--){
for(int i = 0; i < n-1; i++){
k = i + 1;
if(arr[k] > arr[i]){
swap(arr,k,i);
@shareefhiasat
shareefhiasat / git_newrepo
Created August 3, 2018 14:04 — forked from c0ldlimit/git_newrepo
Git: Push a new or existing repo to Github
View git_newrepo
# Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/c0ldlimit/vimcolors.git
git push -u origin master
# Push an existing repository from the command line
@shareefhiasat
shareefhiasat / ticket fetching
Created January 2, 2018 09:14
try this gist its cmd curl
View ticket fetching
curl "https://www.sajilni.com/cart-new/buy-tickets/5106/5757" -H "Cookie: _ga=GA1.2.1189611452.1511121150; sajilni_sendTicket=true; sajilni_sendEmailConfirmation=true; __utmz=164148285.1513687291.162.2.utmcsr=localhost:8081^|utmccn=(referral)^|utmcmd=referral^|utmcct=/cart-new/checkout/4399; countryCode=US; __utma=164148285.1189611452.1511121150.1514825209.1514880574.187; __utmc=164148285; JSESSIONID=CE52DE885E185E3E199E3B24AD45BD95; loginToken=3b8a9be496cf; AWSELB=75BB91F50A87D525582B9C772647912828620F06ED31BE5C746F0E113B3D337606B50160F5A554CF4F3404A4CAE176DB5147456F7406B79F05B428D321556BF1695B535D334976B6C09C23953065F2E7AA2C9BC047; buyTimer=60; buyTimerCreatedOn=Tue Jan 02 2018 11:13:15 GMT+0200 (Jordan Standard Time)" -H "Origin: https://www.sajilni.com" -H "Accept-Encoding: gzip, deflate, br" -H "Accept-Language: en-US,en;q=0.9" -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36" -H "Content-Type: application/json" -H "Accept:
View mail template
mail template
IMPORTANT:
We will have to maintain, backward compatability
knowing that we may need to ammend
old ones , or re create them
Expected From editor:
That it shall, have like these operation here
View bug template
INSERT INTO security_3.html_template (pos, json, name, html, description, owner_id, template_name, default_template, wkhtml_options, lang, event_id, product_id) VALUES (0, '[{"position":{"x":0,"y":0},"orientation":"Landscape","angle":0,"pos":0,"isDefaultTmpl":1,"format":"","backgroundUrl":"","fillColor":"transparent","width":"175.006mm","height":"101.6mm","$type":"TicketLayout"},{"position":{"x":100,"y":100},"angle":0,"url":"//placehold.it/100x100","strokeWidth":"0","strokeColor":"#ffffff","width":"100","height":"100","text":"https://localhost:8443/chart/encode/code128.html?width={{width}}&height={{height}}&code=CODE_128","variable":"https://localhost:8443/chart/encode/code128.html?width={{width}}&height={{height}}&code=${orderItem.referenceNumber}","$type":"BarcodeVar"},{"position":{"x":193.92832946777344,"y":101},"angle":0,"url":"//placehold.it/100x100","strokeWidth":"0","strokeColor":"#ffffff","width":"100","height":"100","text":"https://localhost:8443/chart/encode/qrcode.html?width={{width}}&height={{heig
View media
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
View security exception
Jul 12, 2017 12:03:30 PM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet jsp threw exception
javax.servlet.ServletException: File &quot;/WEB-INF/theme/admin/jsp/footer-scripts-Sajilni.jsp&quot; not found
at org.apache.jasper.servlet.JspServlet.handleMissingResource(JspServlet.java:412)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:379)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)