Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hashlib | |
import json | |
def generate_hash(email, secret_key): | |
""" | |
Generate a hash based on the user's email and a secret key. | |
Args: | |
email (str): User's email address | |
secret_key (str): Secret key for hashing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Strange Even Check</title> | |
<style> | |
body { | |
font-family: Arial, sans-serif; | |
text-align: center; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@qb-testing-13832890558-tv265:/tmp/tests/optimize-legacy-table# /opt/spark/bin/spark-shell << EOF | |
:load ./OptimizeLegacyTable.scala | |
EOF | |
2025-03-13T11:16:47,401 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable | |
2025-03-13T11:16:47,933 WARN Utils: Service 'SparkUI' could not bind on port 4040. Attempting port 4041. | |
2025-03-13T11:16:48,399 WARN MetricsConfig: Cannot locate configuration: tried hadoop-metrics2-s3a-file-system.properties,hadoop-metrics2.properties | |
2025-03-13T11:16:48,429 INFO RoleCredentialsProviderWithUri: Using RoleCredentialsProviderWithUri for s3://qb-testing/spark-event-log | |
2025-03-13T11:16:49,272 WARN S3ABlockOutputStream: Application invoked the Syncable API against stream writing to spark-event-log/local-1741864607977.inprogress. This is unsupported | |
Spark context Web UI available at http://qb-testing-13832890558-tv265:4041 | |
Spark context available as 'sc' (master = local[*], app id = local-1741864607977). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private let decoder: JSONDecoder = { | |
$0.nonConformingFloatDecodingStrategy = .convertFromString( | |
positiveInfinity: "+Infinity", | |
negativeInfinity: "-Infinity", | |
nan: "NaN" | |
) | |
return $0 | |
} (JSONDecoder()) | |
private let encoder: JSONEncoder = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2025-03-13 11:26:50,027 96 [DEBUG] - XmlConfiguration is now operational | |
2025-03-13 11:26:50,261 96 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco' | |
2025-03-13 11:26:50,261 96 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco' | |
2025-03-13 11:26:50,278 96 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco' | |
2025-03-13 11:26:50,278 96 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco' | |
2025-03-13 11:26:50,293 96 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco' | |
2025-03-13 11:26:50,325 96 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco' | |
2025-03-13 11:26:50,325 96 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco' | |
2025-03-13 11:26:50,371 96 [DEBUG] - Adding new type 'RubyGemsService |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<user>S-1-5-21-208106577-3430488093-340667708-1000</user> | |
<keys> | |
<key installerType="Msi" displayName="Oh My Posh" displayVersion="25.4.1"> | |
<RegistryView>Registry64</RegistryView> | |
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{38BC3292-3980-4CFE-8411-6BE8A4E18AB2}</KeyPath> | |
<DefaultValue /> | |
<InstallLocation><![CDATA[]]></InstallLocation> | |
<UninstallString><![CDATA[MsiExec.exe /I{38BC3292-3980-4CFE-8411-6BE8A4E18AB2}]]></UninstallString> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://docs.google.com/forms/d/e/1FAIpQLSfLCKnVspoKZwqCvpuw8Mzg8nukHlIkAQFMOp5r0I8-7WASEg/viewform?usp=pp_url&entry.1333875291=%C4%90%C3%A3%20t%E1%BB%ABng.&entry.614366199=N%E1%BB%AF&entry.1034701032=T%E1%BB%AB%2018%20%C4%91%E1%BA%BFn%2028%20tu%E1%BB%95i&entry.425206506=B%C3%BAt%20bi&entry.2040973120=%C4%90%E1%BB%93ng%20%C3%BD%20ho%C3%A0n%20to%C3%A0n&entry.201783885=Ho%C3%A0n%20to%C3%A0n%20kh%C3%B4ng%20%C4%91%E1%BB%93ng%20%C3%BD&entry.988483181=%C4%90%E1%BB%93ng%20%C3%BD%20ho%C3%A0n%20to%C3%A0n&entry.548974364=Ho%C3%A0n%20to%C3%A0n%20kh%C3%B4ng%20%C4%91%E1%BB%93ng%20%C3%BD&entry.330515803=%C4%90%E1%BB%93ng%20%C3%BD%20ho%C3%A0n%20to%C3%A0n&entry.179790451=Ho%C3%A0n%20to%C3%A0n%20kh%C3%B4ng%20%C4%91%E1%BB%93ng%20%C3%BD&entry.458981124=%C4%90%E1%BB%93ng%20%C3%BD%20ho%C3%A0n%20to%C3%A0n&entry.250226986=%C4%90%E1%BB%93ng%20%C3%BD%20ho%C3%A0n%20to%C3%A0n&entry.903926264=Ho%C3%A0n%20to%C3%A0n%20kh%C3%B4ng%20%C4%91%E1%BB%93ng%20%C3%BD&entry.1740180664=%C4%90%E1%BB%93ng%20%C3%BD%20ho%C3%A0n%20to%C3%A0n&entry.19603431 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import uuid | |
from typing import TYPE_CHECKING, reveal_type | |
a = uuid.uuid4() | |
b = str(a) | |
if TYPE_CHECKING: | |
reveal_type(a) | |
reveal_type(b) | |
print(a == b) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import uuid | |
from typing import TYPE_CHECKING, reveal_type | |
a = uuid.uuid4() | |
b = str(a) | |
if TYPE_CHECKING: | |
reveal_type(a) | |
reveal_type(b) | |
print(a == b) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> | |
<style> | |
body { | |
margin: 0; | |
overflow: hidden; | |
background: #000; |