Skip to content

Instantly share code, notes, and snippets.

Avatar
💚
Working

Rodrigo Alves Rodrigo54

💚
Working
View GitHub Profile
View add windows terminal no menu context.bat
:: Thanks to blak3r for creating the part to check for admin rights
:: https://stackoverflow.com/questions/4051883/batch-script-how-to-check-for-admin-rights
echo OFF
NET SESSION >nul 2>&1
IF %ERRORLEVEL% EQU 0 (
ECHO Administrator PRIVILEGES Detected!
) ELSE (
echo ######## ######## ######## ####### ########
echo ## ## ## ## ## ## ## ## ##
View datepicker.component.html
<mz-input-container class="container-date">
<i mz-icon mz-input-prefix icon="today"></i>
<input mz-input mz-validation
[label]="label"
[dataSuccess]="success"
[errorMessageResource]="erro"
id="date-input"
type="text"
class="datepicker">
</mz-input-container>
View mysql.bat
@REM This file detects the current enabled PHP version of wampserver (http://www.wampserver.com/) and executes the enabled php.exe and all parameters are passed
@REM Copy this file to WAMPSERVERPATH\bin\php
@REM Now you can add WAMPSERVERPATH\bin\php to your Windows Environment-Variable "PATH". Now you can use "php" global. For example "php -v".
@REM You can show the current PHP version with "php -v"
@setlocal enableextensions enabledelayedexpansion
@echo off
set serverPath="%~dp0\..\.."
set file="!serverPath!\wampmanager.conf"
View macros roll20.md

Raio de bruxa

/fx beam-frost @{target|Eu|token_id} @{target|Inimigo|token_id}
&{template:5eDefault}{{spell=1}}{{title= Raio de Bruxa }}{{subheader=@{target|Eu|character_name}}}{{attack=[[1d20+@{target|Eu|intelligence_mod}+@{target|Eu|PB}]]}}{{attackadv=[[1d20+@{target|Eu|intelligence_mod}+@{target|Eu|PB}]] acerta em [[@{target|Inimigo|AC}d1]]}}{{damage=[[1d12]] *elétrico* }}{{critdamage=[[1d12]] *elétrico* }}{{freetext=[raio](https://s-media-cache-ak0.pinimg.com/564x/0d/72/24/0d7224da9cc0a24d3e53b65dae9af971.jpg)}}

Escudo Arcano

View licença ST 3 3103
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
B085E65E 2F5F5360 8489D422 FB8FC1AA
93F6323C FD7F7544 3F39C318 D95E6480
FCCC7561 8A4A1741 68FA4223 ADCEDE07
@Rodrigo54
Rodrigo54 / php-html-css-js-minifier.php
Last active Jan 22, 2021 — forked from taufik-nurrohman/php-html-css-js-minifier.php
PHP Function to Minify HTML, CSS and JavaScript
View php-html-css-js-minifier.php
<?php
/**
* -----------------------------------------------------------------------------------------
* Based on `https://github.com/mecha-cms/mecha-cms/blob/master/system/kernel/converter.php`
* -----------------------------------------------------------------------------------------
*/
// HTML Minifier
function minify_html($input) {
View Default (Windows).sublime-keymap
[
{ "keys": ["ctrl+7"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+shift+7"], "command": "toggle_comment", "args": { "block": true } },
]
View Preferences.sublime-settings
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"draw_indent_guides": true,
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
@Rodrigo54
Rodrigo54 / phpmyadminnoWAMP.md
Last active Aug 29, 2015
Para atualizar a versão do phpmyadmin no WAMP faça o seguinte
View phpmyadminnoWAMP.md

Para atualizar a versão do phpmyadmin no WAMP faça o seguinte.

  1. Salve a nova versão do phpmyadmin na pasta de aplicativos do WAMP: Exemplo: c:/wamp/apps/phpmyadmin3.4.3.2/

  2. Acesse o arquivo alias do phpmyadmin e altere o caminho nos dois locais onde aparece o endereço da pasta Exemplo: arquivo que deve alterar:

@Rodrigo54
Rodrigo54 / shutdown.c
Created Jul 7, 2015
programa pra desligar pc
View shutdown.c
#include <stdio.h>
#include <string.h>
int main(){
char tempo[7], comando[24] = {"shutdown -r -t "};
printf("\nInforme o tempo para reiniciar seu computador em segundos :");
scanf("%s",tempo); //strings não precisam de '&' no scanf.
strcat(comando, tempo);
printf("\nO tempo determinado para reiniciar o pc sera de %s segundo(s).\n",tempo);