I'm not aware of how to use Google, how do I do this basic thing in Language X?
tagged coding, question
edited by Grammar Nazi (2.5M), asked by 1337z0r (2)
# https://stackoverflow.com/questions/39928401/recover-db-password-stored-in-my-dbeaver-connection | |
# requires pycryptodome lib (pip install pycryptodome) | |
import sys | |
import base64 | |
import os | |
import json | |
from Crypto.Cipher import AES |
require "http" | |
require "uuid" | |
require "uuid/json" | |
class App | |
include HTTP::Handler | |
def call(context) | |
Fiber.yield # Simulate getting data from the DB | |
response_payload.to_json context.response |
MIT License | |
Copyright (c) 2018 Noel Bundick | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
From 056f784b90d67dcd76aa87aa092d1ecd281b1480 Mon Sep 17 00:00:00 2001 | |
From: Leon Klingele <[email protected]> | |
Date: Thu, 24 Feb 2022 21:50:11 +0100 | |
Subject: [PATCH 1/2] apple-keychain-integration-other-changes | |
--- | |
Makefile.in | 16 +- | |
audit-bsm.c | 7 +- | |
auth.c | 2 +- | |
authfd.c | 25 ++ |
import java.util.stream.IntStream; | |
class Main { | |
public static void main(String args[]) { | |
IntStream.rangeClosed(2, 100) | |
.filter(i -> IntStream.rangeClosed(2, (int)Math.sqrt(i)) | |
.allMatch(j -> i%j != 0)) | |
.forEach(n -> { | |
System.out.println(n); | |
}); |
require "./mess/*" | |
require "kemal" | |
require "json" | |
require "mysql" | |
require "pool/connection" | |
db = ConnectionPool.new(capacity: 25, timeout: 0.01) do | |
DB.open(ENV["DATABASE_URL"]) | |
end |
This instruction will allow you to get keys from Google Authenticator via terminal. | |
1) Download oathtool | |
brew install oathtool | |
http://www.nongnu.org/oath-toolkit/oathtool.1.html | |
2) Get your 2-Factor authentication secret key. | |
For example, instead of capturing barcode, ask Google 2-factor auth to enter code manually. | |
And google 2-factor auth will provide you your secret key. |
// The player | |
var player = netflix.cadmium.objects.videoPlayer(); | |
// Metadata about current episode -- ID and url to get frame at a specific time | |
var episodeId = netflix.cadmium.metadata.getActiveVideo().episodeId; | |
var imgRoot = netflix.cadmium.metadata.getActiveVideo().progressImageRoot; | |
// Generates URL of preview image for given timestamp | |
function getFrame(timestamp) { | |
var t = Math.floor(timestamp/10000).toString(10); |
Open python
python
and type
>>> import ssl
>>> ssl.OPENSSL_VERSION
'OpenSSL 1.0.1g 7 Apr 2014'