Skip to content

Instantly share code, notes, and snippets.

View wellington1993's full-sized avatar
🏠
Working from home

Wellington Torrejais da Silva wellington1993

🏠
Working from home
View GitHub Profile
@wellington1993
wellington1993 / exporta-firebird-banco-A-para-banco-B.pas
Created May 2, 2024 18:19
Exporta de um banco A(Firebird) para um novo banco B, mudando colunas BIGINT para INTEGER
uses
SysUtils, Classes, ShellApi, Windows, IBDatabase, IBSQL;
const
CAMINHO_BANCO_ORIGEM = 'caminho_do_banco_origem.fdb';
USUARIO_ORIGEM = 'usuario_origem';
SENHA_ORIGEM = 'senha_origem';
CAMINHO_BANCO_DESTINO = 'caminho_do_novo_banco_de_dados.fdb';
USUARIO_DESTINO = 'usuario_destino';
SENHA_DESTINO = 'senha_destino';
@wellington1993
wellington1993 / XPIInstall.jsm
Created May 20, 2020 17:40
view-source:resource://gre/modules/addons/XPIInstall.jsm
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
/**
* This file contains most of the logic required to install extensions.
* In general, we try to avoid loading it until extension installation
* or update is required. Please keep that in mind when deciding whether
@wellington1993
wellington1993 / DevToolsUtils.js
Created August 26, 2019 17:56
resource://devtools/shared/DevToolsUtils.js
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* globals setImmediate, rpc */
"use strict";
/* General utilities used throughout devtools. */
@wellington1993
wellington1993 / kinto-http-client.js
Created January 3, 2020 16:19
resource://services-common/kinto-http-client.js
/*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@wellington1993
wellington1993 / highlighters.js
Created January 15, 2020 21:27
resource://devtools/server/actors/highlighters.js
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
const { Ci, Cu } = require("chrome");
const ChromeUtils = require("ChromeUtils");
const EventEmitter = require("devtools/shared/event-emitter");
@wellington1993
wellington1993 / osfile_async_front.jsm
Created September 15, 2019 00:43
resource://gre/modules/osfile/osfile_async_front.jsm
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
/**
* Asynchronous front-end for OS.File.
*
* This front-end is meant to be imported from the main thread. In turn,
* it spawns one worker (perhaps more in the future) and delegates all
* disk I/O to this worker.
@wellington1993
wellington1993 / loader-plugin-raw.jsm
Created January 11, 2020 00:26
resource://devtools/shared/loader-plugin-raw.jsm
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
const { NetUtil } = ChromeUtils.import("resource://gre/modules/NetUtil.jsm");
/**
* A function that can be used as part of a require hook for a
@wellington1993
wellington1993 / throttle.js
Created January 15, 2020 21:39
resource://devtools/shared/webconsole/throttle.js
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
const { CC, Ci, Cc } = require("chrome");
const ArrayBufferInputStream = CC(
"@mozilla.org/io/arraybuffer-input-stream;1",
@wellington1993
wellington1993 / service.js
Created July 30, 2019 17:19
resource://services-sync/service.js
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
var EXPORTED_SYMBOLS = ["Service"];
// How long before refreshing the cluster
const CLUSTER_BACKOFF = 5 * 60 * 1000; // 5 minutes
// How long a key to generate from an old passphrase.
@wellington1993
wellington1993 / service.js
Created August 5, 2019 17:51
resource://services-sync/service.js
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
var EXPORTED_SYMBOLS = ["Service"];
// How long before refreshing the cluster
const CLUSTER_BACKOFF = 5 * 60 * 1000; // 5 minutes
// How long a key to generate from an old passphrase.