Skip to content

Instantly share code, notes, and snippets.

View Damian96's full-sized avatar

Damianos Giankakis Damian96

View GitHub Profile
@Damian96
Damian96 / kde-connect-logs.txt
Created January 19, 2025 13:35
KDE Connect deletes file immediately after download it from iPhone
kdeconnect.core: Daemon starting
kdeconnect.core: LanLinkProvider started
kdeconnect.core: Daemon started
kdeconnect.core: Broadcasting identity packet
kdeconnect.core: LanLinkProvider newConnection
kdeconnect.core: LanLinkProvider received reply: "{\"id\":1737293296,\"type\":\"kdeconnect.identity\",\"body\":{\"deviceId\":\"42CB418BA0604E418C88470D44881162\",\"protocolVersion\":7,\"tcpPort\":1716,\"deviceType\":\"phone\",\"deviceName\":\"iPhone \xE2\x80\x93 Damianos\",\"incomingCapabilities\":[\"kdeconnect.ping\",\"kdeconnect.share.request\",\"kdeconnect.share.request.update\",\"kdeconnect.findmyphone.request\",\"kdeconnect.battery.request\",\"kdeconnect.battery\",\"kdeconnect.clipboard\",\"kdeconnect.clipboard.connect\",\"kdeconnect.runcommand\"],\"outgoingCapabilities\":[\"kdeconnect.ping\",\"kdeconnect.share.request\",\"kdeconnect.share.request.update\",\"kdeconnect.findmyphone.request\",\"kdeconnect.battery.request\",\"kdeconnect.battery\",\"kdeconnect.clipboard\",\"kdeconnect.clipboard.connect\",\"kdecon
@Damian96
Damian96 / my-redux-config.php
Created March 20, 2022 12:21
Redux Options Config for Theme
<?php
/*
The Redux Framework Options Configuration File.
Assigns to the global variable $theme_options all of the admin's options.
*/
if (!class_exists('Redux')) {
require_once ABSPATH . '\wp-content\plugins\redux-framework\redux-core\framework.php';
@Damian96
Damian96 / category.php
Created April 26, 2021 10:38
Opencart empty result set
<?php
class ModelCatalogCategory extends Model {
public function getCategory($category_id) {
$query = $this->db->query("SELECT DISTINCT * FROM " . DB_PREFIX . "category c LEFT JOIN " . DB_PREFIX . "category_description cd ON (c.category_id = cd.category_id) LEFT JOIN " . DB_PREFIX . "category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.category_id = '" . (int)$category_id . "' AND cd.language_id = '" . (int)$this->config->get('config_language_id') . "' AND c2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND c.status = '1'");
return $query->row;
}
public function getCategories($parent_id = 0) {
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "category c LEFT JOIN " . DB_PREFIX . "category_description cd ON (c.category_id = cd.category_id) LEFT JOIN " . DB_PREFIX . "category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '" . (int)$parent_id . "' AND cd.language_id = '" . (int)$this->config->get('config_language_id') . "' AND c2s.store
@Damian96
Damian96 / pray.txt
Created April 16, 2020 08:44
pray.txt
. .... .......
............ ...........
......,7+=+$..I?=+7~....
...,,,7~::~=7:I~::~I,,,.
.,,,,?I~::~=7?+~::~+7,, ...
.... ,:,I???II+77I?I??+$: ......
....... .::?I~~~+7$7$+~~~?7. .,,,......
......,,, ,:7+::~=?$$I=~::~7. .,,,,,.....
.....,,,,,,. ~I~::~=?$$I=~::~?~ .:::,,,,,.
...,,,,:::,. :+~::~=?7$I=~::~=7. .:::::,,,..
@Damian96
Damian96 / paokfc.txt
Created September 28, 2019 11:48
PAOKFC ASCCI LOGO
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMDO$I+============================?I$8DMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMOI===================================================?7OMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMN$+===============?7$ODDMMMMMMMMMMMMMMMMMMMMMNDDZZII============+==7OMMMMMMMMMMMMMMMM
MMMMMMMMMMMMN$+============?7Z8DMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMDZ$?=============7DMMMMMMMMMMMMM
MMMMMMMMMO?=========?ZNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN$+=========INMMMMMMMMM
MMMMMDI=======?OMMMMMMMMMMMMMMMN8$I=~. . . . ...... . . . :=+I78MMMMMMMMMMMMMMMD$+======+ZMMMMMM
MMMMZ=======7DMMMMMMMMMMMMNOI~:. . ........................... . . :+78MMMMMMMMMMMMN8+======+DMMMM
MMM7?+===$NMMMMMMMMMO?.... ................. ... ..........................IDMMMMMMMMMD?===?7NMMM
MMM????OMMMMMMNI, . . . .............7M+D8N=MOM=.NZ...........................~ZMMMMMMM7777OMMM
MMD????DMMMD$= . ~======.7M~NND.~8N:7M8 +======. ,?ONMMMZI77$MMM
<?php
if (session_status() != PHP_SESSION_ACTIVE)
session_start();
if ( ! isset($_SESSION['u_email']) ):
header($_SERVER["SERVER_PROTOCOL"] . "401 Unauthorized");
header('Location: login.php');
exit;
endif;
@Damian96
Damian96 / peer-rev.md
Created May 4, 2019 08:13
Damianos Giankakis Peer Review
  1. 2 / 5
  2. 1 / 5 (I can't even click the sources)
  3. 3 / 5
  4. 3 / 5 (Page numb. begins at abstract, Pie Chart should be at appendix)
  5. 3 / 5 (Page numb. begins at abstract, Pie Chart should be at appendix)
  6. Challenges of Data Driven decision making, were thoroughly analysed and discussed.
  7. Historical Development Chapter, was not thoroughly analysed and developed as it should have been. It stated only some keypoints of the history of the decision making science, and didn't analysed as much as it should have.
@Damian96
Damian96 / php.ini
Created April 25, 2019 10:09
XAMPP php.ini
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
@Damian96
Damian96 / compression_algos_diff.md
Last active April 21, 2019 11:15
7zip 9.20.0 Compression Algorithms Benchmark on A Unity Builded Game Folder

Uncompressed Size: 189,194 KB

Filetype Algorithm Size(KB)
zip PPMD 31,572
zip LZMA 25,898
zip Deflate64 45,455
zip Deflate 48,324
zip Bzip2 36,082
7z PPMD 32,737