This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| create or replace procedure assert( | |
| p_condition in boolean | |
| ) is | |
| l_caller_owner varchar2(128); | |
| l_caller_name varchar2(128); | |
| l_caller_lineno varchar2(128); | |
| l_caller_caller_t varchar2(128); | |
| begin | |
| if not p_condition then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| RCON=/home/minecraft/mcrcon/mcrcon.sh | |
| $RCON say ATENÇÃO! O servidor será automaticamente reiniciado dentro de 5 minutos! | |
| sleep 120 | |
| $RCON say ATENÇÃO! O servidor será automaticamente reiniciado dentro de 3 minutos! | |
| sleep 60 | |
| $RCON say ATENÇÃO! O servidor será automaticamente reiniciado dentro de 2 minutos! | |
| sleep 60 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| # coding: utf8 | |
| import display | |
| import sms | |
| import time | |
| # Main program block | |
| def main(): | |
| sleep_time = 0.4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| create or replace function ddl_export( | |
| p_type in varchar2, | |
| p_name in varchar2, | |
| p_package in boolean default true | |
| ) return clob is | |
| l_result clob; | |
| function use_table_user_source( | |
| p_type in varchar2, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| RCON=/home/minecraft/mcrcon/mcrcon.sh | |
| # | |
| # deletes files older than 1 week | |
| # | |
| WORKING_DIR=/home/root/minecraft_backups | |
| echo `date`: Beginning archive backup of minecraft folder 1>&2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Nokia 5110 LCD-Display (SIZE_HxSIZE_V Bildpunkte) | |
| #include <Adafruit_GFX.h> | |
| #include <Adafruit_PCD8544.h> | |
| #define LCD_WIDTH 84 | |
| #define LCD_HEIGHT 48 | |
| #define LCD_HEIGHT8 (LCD_HEIGHT >> 3) | |
| #define map(i, j) (i + LCD_WIDTH*j) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset=utf-8 /> | |
| <title>news</title> | |
| <link rel="stylesheet" type="text/css" media="screen" href="/styles/reset.css" /> | |
| <link rel="stylesheet" type="text/css" media="screen" href="/styles/sidebar.css" /> | |
| <script type="text/javascript" src="/scripts/jquery.js"></script> | |
| <script type="text/javascript" src="/scripts/frames.js"></script> | |
| <script type="text/javascript" src="/scripts/steve.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function generate_background_css return varchar2 is | |
| cursor c_get_background_css(p_sys_cliente_id integer, p_sys_utilizador_id integer) is | |
| select nvl(cb.background_repeat, 1) background_repeat, | |
| nvl(cb.background_attachment,1) background_attachment, | |
| nvl(cb.background_position, 1) background_position, | |
| nvl(cb.background_color, '#000000') background_color | |
| from cli_backgrounds cb | |
| where cb.sys_cliente_id = p_sys_cliente_id | |
| and cb.sys_utilizador_id = p_sys_utilizador_id; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <? | |
| namespace lib\template; | |
| class Template { | |
| public function __construct($name) { | |
| $this->_name = "templates/$name.php"; | |
| $this->_map = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <? | |
| namespace lib\template; | |
| class Template { | |
| public function __construct($name) { | |
| $this->_name = "templates/$name.php"; | |
| $this->_map = []; |