Skip to content

Instantly share code, notes, and snippets.

@u3games
u3games / gist:89eabaa5920dc711527b
Created August 13, 2014 11:18
Rin4a's scheme buffer (L2J-Server H5-Beta)
Index: dist/game/data/scripts.cfg
===================================================================
--- dist/game/data/scripts.cfg (revision 10413)
+++ dist/game/data/scripts.cfg (working copy)
@@ -310,6 +310,7 @@
custom/ShadowWeapons/ShadowWeapons.java
custom/NewbieCoupons/NewbieCoupons.java
custom/RaidbossInfo/RaidbossInfo.java
+custom/NpcBuffer/NpcBuffer.java
custom/NpcLocationInfo/NpcLocationInfo.java
@joashp
joashp / openssl_encrypt_decrypt.php
Created September 4, 2015 15:59
Simple PHP encrypt and decrypt using OpenSSL
<?php
/**
* simple method to encrypt or decrypt a plain text string
* initialization vector(IV) has to be the same when encrypting and decrypting
*
* @param string $action: can be 'encrypt' or 'decrypt'
* @param string $string: string to encrypt or decrypt
*
* @return string
*/
@pantsel
pantsel / docker-compose.yml
Last active May 13, 2024 14:29
example docker-compose.yml for kong, postgres and konga
version: "3"
networks:
kong-net:
driver: bridge
services:
#######################################
# Postgres: The database used by Kong
@herrera-ignacio
herrera-ignacio / ec2-apache.sh
Created July 26, 2019 01:01
EC2 User data: install Apache web server for Amazon Linux 2 Image
#!/bin/bash
########################################
##### USE THIS WITH AMAZON LINUX 2 #####
########################################
# get admin privileges
sudo su
# install httpd (Linux 2 version)