Skip to content

Instantly share code, notes, and snippets.


Shareef hiasat shareefhiasat

View GitHub Profile
shareefhiasat /
Last active Aug 13, 2021 — forked from steini/
import RDS certificates to java keystore on alpine / osx
#!/usr/bin/env sh
#i tried it and working like charm just have to note make the file .sh chmod +x and you may need sudo to run with permission but be carefull with sudo
#be sure the $JAVA_HOME is configure correctly or make it static as commentedline 7 below
if [ -z "$CACERTS_FILE" ]; then
# you should have java home configure to point for example /usr/lib/jvm/default-java/jre/lib/security/cacerts
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;
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 = {};
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]){
shareefhiasat / git_newrepo
Created Aug 3, 2018 — 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
git init
git add
git commit -m "first commit"
git remote add origin
git push -u origin master
# Push an existing repository from the command line
shareefhiasat / ticket fetching
Created Jan 2, 2018
try this gist its cmd curl
View ticket fetching
curl "" -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:" -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
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":"//","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":"//","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