Skip to content

Instantly share code, notes, and snippets.

View VictorHaine's full-sized avatar
Contributing to entropy since '94

Victor VictorHaine

Contributing to entropy since '94
View GitHub Profile
// Pergunta que com certeza vai cair na prova:
Quais são as informações necessárias para o roteador encaminhar informações no L3?
- Destino
- Origem
- Rotas
- Melhor Rota
// Comando IP Route
ip route 10.0.0.0 255.0.0.0 11.0.0.1
@VictorHaine
VictorHaine / Build.xml
Created July 4, 2016 04:40 — forked from NickCraver/Build.xml
Stack Overflow Build Reference Docs
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="PrepareStaticContent" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<!-- Passed in Parameters -->
<configuration></configuration>
<workingDir></workingDir>
<buildNumber></buildNumber>
<buildViews>false</buildViews>
<minifyJs>true</minifyJs>
<TargetsDirectory></TargetsDirectory>
@VictorHaine
VictorHaine / easing.css
Created July 4, 2018 04:56 — forked from bendc/easing.css
Easing CSS variables
:root {
--ease-in-quad: cubic-bezier(.55, .085, .68, .53);
--ease-in-cubic: cubic-bezier(.550, .055, .675, .19);
--ease-in-quart: cubic-bezier(.895, .03, .685, .22);
--ease-in-quint: cubic-bezier(.755, .05, .855, .06);
--ease-in-expo: cubic-bezier(.95, .05, .795, .035);
--ease-in-circ: cubic-bezier(.6, .04, .98, .335);
--ease-out-quad: cubic-bezier(.25, .46, .45, .94);
--ease-out-cubic: cubic-bezier(.215, .61, .355, 1);
@VictorHaine
VictorHaine / gist:9debf29c46050c24ed99d28fc14cd68d
Created July 22, 2018 21:13 — forked from SzymonPobiega/gist:5220595
DDD/CQRS/ES/Architecture videos

If you have two days to learn the very basics of modelling, Domain-Driven Design, CQRS and Event Sourcing, here's what you should do:

In the evenings read the [Domain-Driven Design Quickly Minibook]{http://www.infoq.com/minibooks/domain-driven-design-quickly}. During the day watch following great videos (in this order):

  1. Eric Evans' [What I've learned about DDD since the book]{http://www.infoq.com/presentations/ddd-eric-evans}
  2. Eric Evans' [Strategic Design - Responsibility Traps]{http://www.infoq.com/presentations/design-strategic-eric-evans}
  3. Udi Dahan's [Avoid a Failed SOA: Business & Autonomous Components to the Rescue]{http://www.infoq.com/presentations/SOA-Business-Autonomous-Components}
  4. Udi Dahan's [Command-Query Responsibility Segregation]{http://www.infoq.com/presentations/Command-Query-Responsibility-Segregation}
  5. Greg Young's [Unshackle Your Domain]{http://www.infoq.com/presentations/greg-young-unshackle-qcon08}
  6. Eric Evans' [Acknowledging CAP at the Root -- in the Domain Model]{ht
@VictorHaine
VictorHaine / wordpress-change-domain-migration.sql
Created February 28, 2019 05:54 — forked from chuckreynolds/wordpress-change-domain-migration.sql
Use this SQL script when changing domains on a WordPress site. Whether you’re moving from an old domain to a new domain or you’re changing from a development domain to a production domain this will work. __STEP1: always backup your database. __STEP2: change the ‘oldsite.com’ and ‘newsite.com’ variables to your own. __STEP3: make sure your databa…
SET @oldsite='http://oldsite.com';
SET @newsite='http://newsite.com';
UPDATE wp_options SET option_value = replace(option_value, @oldsite, @newsite) WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET post_content = replace(post_content, @oldsite, @newsite);
UPDATE wp_links SET link_url = replace(link_url, @oldsite, @newsite);
UPDATE wp_postmeta SET meta_value = replace(meta_value, @oldsite, @newsite);
/* only uncomment next line if you want all your current posts to post to RSS again as new */
#UPDATE wp_posts SET guid = replace(guid, @oldsite, @newsite);
<table>
<tbody>
<tr>
<td style="padding: 10px 15px 10px 10px; border-right: 1px solid #ddd;" valign="middle"><img style="margin: 0px; padding: 0px; width: 77px;" src="https://indevs.com.br/wp-content/uploads/2019/10/RGB_Square-Icon-White-Background.png" height="77" /></td>
<td style="padding: 10px;" valign="top">
<h2 style="font-size: 14px; font-weight: bold; color: #004fe2; margin: 0; padding: 0; font-family: Arial, Helvetica, sans-serif;">Victor Haine Takahashi</h2>
<h3 style="font-size: 14px; font-weight: normal; color: #333; margin: 0 0 7px 0; padding: 0; font-family: Arial, Helvetica, sans-serif;">CEO / INDEVS</h3>
<p style="font-size: 13px; line-height: 20px; font-weight: normal; color: #333; margin: 0; padding: 0; font-family: Arial, Helvetica, sans-serif;"><span style="font-weight: normal; color: #004fe2;">Website:</span> <a href="https://indevs.com.br/">https://indevs.com.br/</a><br /><span style="font-weight: normal; color: #004fe2;">Pho
@VictorHaine
VictorHaine / boilerplate.md
Created November 26, 2019 06:07 — forked from IgorMing/boilerplate.md
A simple guide to follow while starting a new project

Project guide

The following suggestions are personal. That's how I like to go while I'm starting a React/React Native project.

Step by step

JS or TS?

Decide whether you want to use plain Javascript or Typescript

@VictorHaine
VictorHaine / boilerplate.md
Created November 26, 2019 06:07 — forked from IgorMing/boilerplate.md
A simple guide to follow while starting a new project

Project guide

The following suggestions are personal. That's how I like to go while I'm starting a React/React Native project.

Step by step

JS or TS?

Decide whether you want to use plain Javascript or Typescript

@VictorHaine
VictorHaine / ThingEntity.java
Created January 27, 2020 02:44 — forked from michael-simons/ThingEntity.java
An example on how to use Hibernate-Spatial with Spring Data JPA Repositories
@Entity
@Table(name = "things")
public class ThingEntity {
@Id
private Long id;
// Needed for use with Hibernate Spatial 4.x
// @Type(type = "org.hibernate.spatial.GeometryType")
private Geometry geometry;
@VictorHaine
VictorHaine / s3-invalidation.js
Created April 27, 2020 17:16 — forked from supinf/s3-invalidation.js
AWS Lambda script:: CloudFront Invalidations which are triggered by s3 events.
console.log('Loading event');
var Q = require('q');
var aws = require('aws-sdk');
var cloudfront = new aws.CloudFront();
exports.handler = function (event, context) {
//_log('Received event: ', event);
var bucket = event.Records[0].s3.bucket.name;