This file contains 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 initPayPalButton() { | |
var shipping = 0; | |
var orderDescription = 'Additional Services'; | |
if(orderDescription === '') { | |
orderDescription = 'Item'; | |
} | |
paypal.Buttons({ | |
style: { | |
shape: 'rect', |
This file contains 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
import m from "mithril" | |
type TProps = {} | |
const MyComponent: m.ClosureComponent<TProps> = () => { | |
return { | |
view: () => | |
{ | |
return <> |
This file contains 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
mkdir blog | |
cd blog | |
wp core download | |
wp config create --dbname=wordpress_plugin --dbuser=root --dbpass=root | |
wp db create | |
wp core install --url=example.com --title=Example --admin_user=supervisor --admin_password=password --admin_email=info@example.com | |
wp server --port=8001 |
This file has been truncated, but you can view the full file.
This file contains 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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
</head> | |
<body> | |
<style> |
This file contains 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
select avg(valor) previsao_valor from ( | |
SELECT TOP (1000) avg(VALOR) valor | |
FROM [onboard].[dbo].[RESUMO] | |
where (EMPRESA_ID = 1) | |
and (VALOR > 0) | |
and (DAY_WEEK = 1) | |
UNION | |
SELECT TOP (1000) avg(VALOR) valor | |
FROM [onboard].[dbo].[RESUMO] |
This file contains 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
select avg(valor) previsao_valor from ( | |
SELECT TOP (1000) avg(VALOR) valor | |
FROM [onboard].[dbo].[RESUMO] | |
where (EMPRESA_ID = 1) | |
and (VALOR > 0) | |
and (DAY_WEEK = 1) | |
UNION | |
SELECT TOP (1000) avg(VALOR) valor | |
FROM [onboard].[dbo].[RESUMO] |
This file contains 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
<?php | |
$host = ""; | |
$db = 'onboard'; | |
$user = 'inffel'; | |
$pass = ""; | |
$conn = new PDO("sqlsrv:server=$host,1433;Database=$db", $user, $pass); | |
$tsql = "select * from usuarios"; |
This file contains 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
sudo docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=<YourStrong!Passw0rd>' -p 1433:1433 --name sql1 -d -v /home/raphael/projects/freelas/OnBoard/Backup:/home/backup mcr.microsoft.com/mssql/server:2017-latest | |
sudo docker start sql1 | |
sudo docker exec -it sql1 "bash" | |
## on container, it request pass | |
/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -Q "RESTORE DATABASE central FROM DISK = '/home/backup/Central.bak' WITH MOVE 'central' TO '/var/opt/mssql/data/central.mdf', MOVE 'central_log' TO '/var/opt/mssql/data/central.ldf'" | |
/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -Q "RESTORE DATABASE onboard FROM DISK = '/home/backup/Onboard.bak' WITH MOVE 'onboard' TO '/var/opt/mssql/data/onboard.mdf', MOVE 'onboard_log' TO '/var/opt/mssql/data/onboard.ldf'" |
This file contains 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
https://secure.gravatar.com/avatar/cd0c263b28fce0e1d89a0002cc75648b?size=400 |
This file contains 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
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/default -dNOPAUSE -dQUIET -dBATCH -dDetectDuplicateImages -dCompressFonts=true -r150 -sOutputFile=output.pdf input.pdf |
NewerOlder