Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<script src="localized.js"></script>
</head>
<body>
</body>
</html>
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 26, 2024 21:45
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser! If you absolutely need to use browser instead of desktop app, use an extension to add the string Electron/ anywhere in your user-agent.

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
  2. Join a vc
  3. Stream any window (can be notepad or something)
  4. Press Ctrl+Shift+I to open DevTools
@wellington1993
wellington1993 / webconsole-ui.js
Created January 15, 2020 22:53
resource://devtools/client/webconsole/webconsole-ui.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 { Utils: WebConsoleUtils } = require("devtools/client/webconsole/utils");
const EventEmitter = require("devtools/shared/event-emitter");
const Services = require("Services");
const {
21:53:57.643 Error while detaching the browsing context target front: Error: "Protocol error (noSuchActor): No such actor for ID: server1.conn0.child60/frameTarget1"
onPacket resource://devtools/shared/protocol/Front.js:276
callFunctionWithAsyncStack resource://devtools/shared/platform/stack.js:61
onPacket resource://devtools/shared/protocol/Front.js:266
onPacket resource://devtools/shared/client/debugger-client.js:498
send resource://devtools/shared/transport/local-transport.js:68
makeInfallible resource://devtools/shared/ThreadSafeDevToolsUtils.js:111
makeInfallible resource://devtools/shared/ThreadSafeDevToolsUtils.js:111
browsing-context.js:140:15
@wellington1993
wellington1993 / browser-loader.js
Created January 15, 2020 22:53
resource://devtools/client/shared/browser-loader.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 loaders = ChromeUtils.import("resource://devtools/shared/base-loader.js");
const { require: devtoolsRequire, loader } = ChromeUtils.import(
"resource://devtools/shared/Loader.jsm"
);
const flags = devtoolsRequire("devtools/shared/flags");
@wellington1993
wellington1993 / zoom-keys.js
Created January 15, 2020 22:54
resource://devtools/client/shared/zoom-keys.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 Services = require("Services");
const ZOOM_PREF = "devtools.toolbox.zoomValue";
const MIN_ZOOM = 0.5;
http://laboratoriobhc.com.br/include/getTags.php
Warning: get_meta_tags(): SSL operation failed with code 1.
OpenSSL Error messages: error:14090086:SSL routines:
ssl3_get_server_certificate:certificate verify failed
in D:\web\localuser\laboratoriobhc\www\include\getTags.php on line 2
Warning: get_meta_tags(): Failed to enable crypto
in D:\web\localuser\laboratoriobhc\www\include\getTags.php on line 2
@subfuzion
subfuzion / redis-autostart-osx.md
Last active April 26, 2024 21:40
redis auto start OS X

Install with Homebrew

brew install redis

Set up launchctl to auto start redis

$ ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents

/usr/local/opt/redis/ is a symlink to /usr/local/Cellar/redis/x.y.z (e.g., 2.8.7)

@wellington1993
wellington1993 / PrivateBrowsingUtils.jsm
Created January 11, 2020 00:23
resource://gre/modules/PrivateBrowsingUtils.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/. */
var EXPORTED_SYMBOLS = ["PrivateBrowsingUtils"];
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
const kAutoStartPref = "browser.privatebrowsing.autostart";
@wellington1993
wellington1993 / PHP-exemplo-busca-CSRF-Token-Rails-usando-meta-tags.php
Last active April 26, 2024 21:40
PHP, exemplo busca de CSRF Token do Rails, usando meta tags
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
# phpinfo();
$url = 'https://lablaudo.com.br/home';
$tags = get_meta_tags($url);
# print_r($tags);