Skip to content

Instantly share code, notes, and snippets.

View DarkcoderSe's full-sized avatar
:octocat:
Focusing

Kashif S. DarkcoderSe

:octocat:
Focusing
View GitHub Profile
@DarkcoderSe
DarkcoderSe / cdm_uq_hospital.conf
Created May 12, 2021 05:56
Logstash configuration file to index data
input {
file {
path => "/home/darkcoder/Node/etlapp/db/cdm_uq_hospitals2.csv"
start_position => "beginning"
sincedb_path => "/dev/null"
}
}
filter {
csv {
separator => ","
@DarkcoderSe
DarkcoderSe / elasticsearch-template.sh
Created May 12, 2021 05:50
Creation of ElasticSearch template mapping using curl
curl -X PUT "localhost:9200/_template/templateName?pretty" -H 'Content-Type: application/json' -d'
{
"index_patterns": ["indexA*", "indexB*"],
"settings": {
"number_of_shards": 1
},
"mappings": {
"_source": {
"enabled": false
},
@DarkcoderSe
DarkcoderSe / Payment.php
Last active January 1, 2021 06:30 — forked from Miri92/Payment.php
KapitalBank Payment API with PHP Laravel framework - Example snippet
<?php
namespace App\Models;
use App\Database\EloquentModel as Model;
class Payment extends Model
{
protected $fillable = ['order_id', 'session_id', 'currency', 'order_status', 'order_description', 'amount', 'payment_url', 'status_code','order_check_status','language_code'];
@DarkcoderSe
DarkcoderSe / dumpfile.txt
Last active June 5, 2020 09:43
Cu-online student login credentials CIITWAH [sp13-sp16]
ddl_Session=FA14
ddl_Program=BSE
txt_RollNo=168
txt_Password=jul95
ddl_Session=FA14
ddl_Program=BEE
txt_RollNo=251
txt_Password=335Shahertar