Skip to content

Instantly share code, notes, and snippets.

@teris1994
teris1994 / LogBroker.py
Last active July 10, 2022 18:43
LogBroker.py
#
# Copyright 2021 HiveMQ GmbH
#
# Licensed 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@teris1994
teris1994 / Clients.py
Last active July 10, 2022 18:42
Clients.py
import paho.mqtt.client as paho
from paho import mqtt
from random import randrange
import time
def on_connect(client, userdata, flags, rc, properties=None):
print("Connection, {}".format(rc))
def on_publish(client, userdata, mid, properties=None):
print("mid: " + str(mid))
@teris1994
teris1994 / Matlab
Created March 6, 2022 18:12
Playfair chiper.matlab
%alphaArr= {'A','B','C','D','E';'F','G','H','I','K';'L','M','N','O','P';'Q','R','S','T','U';'V','W','X','Y','Z'};
alphaArr= "ABCDEFGHIKLMNOPQRSTUVWXYZ";
key="MONARCHY";
plainText = "thisballisunderthegreentable";
printf("Key: %s \n",key);
printf("Text: %s \n",plainText);
%Orismos se kefalaia grammata
plainText = upper(plainText);
key = upper(key);
@teris1994
teris1994 / andruino
Created January 24, 2020 16:01
hgghh
//ΟΡΙΖΟΥΜΕ ΤΑ PIN.
int led2 = 2; //Ειναι μεταβλητη
int led3 = 3; //Ο αριθμος 3 ουσιαστικα ειναι το Digital 3 στην πλακετα.
int led4 = 4;
int led5 = 5;
//Εισοδος για να διαβαζει σε τη θεση ειναι ο διακοπτησ
diff --git a/L2J_DataPack/dist/game/data/stats/skills/10000-10099.xml b/L2J_DataPack/dist/game/data/stats/skills/10000-10099.xml
index d7e79cc..e21cae5 100644
--- a/L2J_DataPack/dist/game/data/stats/skills/10000-10099.xml
+++ b/L2J_DataPack/dist/game/data/stats/skills/10000-10099.xml
@@ -228,15 +228,22 @@
<set name="mpConsume" val="50" />
</skill>
<skill id="10021" levels="4" name="Spike Shield">
- <!-- AUTO GENERATED SKILL -->
+ <!-- Erheia Update -->
@teris1994
teris1994 / gist:f667afba2c2f39937dc0
Created January 9, 2015 10:53
Event Legendery Cards
/*
* Copyright (C) 2004-2015 L2J DataPack
*
* This file is part of L2J DataPack.
*
* L2J DataPack is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
id[0] id[1] id[2] id[3] id[4] id[5] id[6] name
0 88 55 82 39 39 38 a,As melee damage dealers, Human Fighters can specialize in various type of melee warriors.\0
1 88 55 82 39 39 38 a,As melee damage dealers, Warriors are specialized in melee weapons and Heavy or Light Armors.\0
2 88 55 82 39 39 38 a,As melee damage dealers, Gladiators are specialized in the use of Dualswords and wear Heavy or Light Armors. They use "Momentum" to power-up many of their attacks.\0
3 88 55 82 39 39 38 a,As melee damage dealers, Warlords are specialized in the use of Spears and wear Heavy Armors. They can sometimes use their Spear at a range.\0
4 88 55 82 39 39 38 a,As tanks, Human Knights are specialized in the use of One-handed Swords or Blunt Weapons and wear Heavy Armors and a Shield. They can provoke enemies to divert their attention.\0
5 88 55 82 39 39 38 a,As tanks, Paladins are specialized in the use of One-handed Swords or Blunt Weapons and wear Heavy Armors and a Shield. They can provoke enemies to divert their attentio
id[0] id[1] id[2] id[3] id[4] id[5] id[6] name
0 88 55 82 39 39 38 a,As melee damage dealers, Human Fighters can specialize in various type of melee warriors.\0
1 88 55 82 39 39 38 a,As melee damage dealers, Warriors are specialized in melee weapons and Heavy or Light Armors.\0
2 88 55 82 39 39 38 a,As melee damage dealers, Gladiators are specialized in the use of Dualswords and wear Heavy or Light Armors. They use "Momentum" to power-up many of their attacks.\0
3 88 55 82 39 39 38 a,As melee damage dealers, Warlords are specialized in the use of Spears and wear Heavy Armors. They can sometimes use their Spear at a range.\0
4 88 55 82 39 39 38 a,As tanks, Human Knights are specialized in the use of One-handed Swords or Blunt Weapons and wear Heavy Armors and a Shield. They can provoke enemies to divert their attention.\0
5 88 55 82 39 39 38 a,As tanks, Paladins are specialized in the use of One-handed Swords or Blunt Weapons and wear Heavy Armors and a Shield. They can provoke enemies to divert their attentio
java.sql.SQLException: Column 'faceB' not found.
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1086)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:989)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:975)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:920)
at com.mysql.jdbc.ResultSetImpl.findColumn(ResultSetImpl.java:1163)
at com.mysql.jdbc.ResultSetImpl.getInt(ResultSetImpl.java:2847)
at org.apache.commons.dbcp.DelegatingResultSet.getInt(DelegatingResultSe
t.java:275)
at org.apache.commons.dbcp.DelegatingResultSet.getInt(DelegatingResultSe
### Eclipse Workspace Patch 1.0
#P server
Index: dist/gameserver/data/html/admin/classes/setclass_4.htm
===================================================================
--- dist/gameserver/data/html/admin/classes/setclass_4.htm (revision 241)
+++ dist/gameserver/data/html/admin/classes/setclass_4.htm (working copy)
@@ -18,6 +18,9 @@
<button value="Iss Enchanter" action="bypass -h admin_setclass 144" width=180 height=18 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"><br1>
<button value="Wynn Summoner" action="bypass -h admin_setclass 145" width=180 height=18 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"><br1>
<button value="Aeore Healer" action="bypass -h admin_setclass 146" width=180 height=18 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"><br1>