Skip to content

Instantly share code, notes, and snippets.

View eduzera's full-sized avatar
😀

Eduardo Zaghi eduzera

😀
View GitHub Profile
@eduzera
eduzera / Readme.md
Created September 1, 2021 16:18
nodejs - SSL for localhost
@eduzera
eduzera / main.swift
Created January 11, 2021 23:33
Swift Date and Currency Format
import Foundation
// 1. Current Date
let date = Date()
// 2. Create Formatter
let dateFormatter = DateFormatter()
// 3. Display Date short format
print("---")
@eduzera
eduzera / main.java
Created January 11, 2021 19:35
Java Date abd Currency Format
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.text.NumberFormat;
import java.util.Date;
import java.util.Locale;
public class main {
public static void main(String[] args){
// 1. Current Date
Date date = new Date();
@eduzera
eduzera / posts.js
Last active March 23, 2020 21:37
posts example with jquery
function makePost(data){
var url = "/api/v1/posts"
$.ajax({
type: "POST",
url: url,
data: {
name: 'edu',
age: '33'
},
@eduzera
eduzera / readme.md
Last active October 24, 2019 18:59
Migrate Wordpress Server

Como migrar wordpress de servidor

Pré Requistos

  • Um novo servidor já com o wordpress instalado, de preferência ubuntu ou debian
  • É aconselhavel ser a mesma versão do wordpress do servidor atual
  • Ter acesso ao banco de dados mysql de ambos os servidores
  • Acesso ssh e nível root ao novo server

Server Atual

@eduzera
eduzera / readme.md
Created June 12, 2019 17:11
Processo apontamento DNS do dominio no godaddy
  1. Faça o login no godaddy

  2. No nome do seu dominio 'postare.com.br' clicar em DNS

  3. Na teá dos registro dns escola a opção ADD

  4. Define o Type: CNAME

  5. Host: www

@eduzera
eduzera / readme.md
Last active March 18, 2019 14:06
iResign - Error

It is an intermittent bug in iResign which causes it to include entitlments.plist in application bundle. It is not even plist file but a dump of entitlements keys/values.

Here is a workaround, which SHOULD work:

Extract the ipa into a directory. Assuming your app is named as MyApp.ipa

$ mkdir extract
$ unzip -qo MyApp.ipa -d extract
@eduzera
eduzera / readme.md
Last active January 23, 2019 12:48
Roadmap - Git tutorial

Tutorial Git

Initial

  • why git?
  • where to host?
  • what do you need to run?
  • set up your account
    • ssh
    • config name
    • email
@eduzera
eduzera / readme.md
Last active June 18, 2020 19:01
Mercado Livre - Pausar e Remover Anuncios

Pausar Anuncios

Pré Requsitos

  • JQuery injetado na página
  • console do browser aberto

Script

Em cada página rodar o seguinte script

I was experiment the same issue some weeks ago, and this procedure was solve the problem.

First, search where is the most space use

    for i in /*; do echo $i; find $i |wc -l; done

Pay attention when some directories take more time to be readed. In my case was the /var/ where take more time searching.