Skip to content

Instantly share code, notes, and snippets.

import os
import subprocess
import sys
def run_cmd(cmd):
try:
result = subprocess.run(cmd, capture_output=True, text=True, check=True)
output = result.stdout.strip()
error = result.stderr.strip()
{
"certified": false,
"deleted": false,
"docker_image_digest": "sha256:edf45b99bc454d160aec04e50efaa43b00d9f07c408ae09a2f7eb4fa75fc00b6",
"docker_image_id": "sha256:7141b65bcbd3e3b0bd624fb5b4df68dfe6245dff39b0b4392e3c7c0dd1847cb2",
"image_id": "sha256:edf45b99bc454d160aec04e50efaa43b00d9f07c408ae09a2f7eb4fa75fc00b6",
"parsed_data": {
"architecture": "amd64",
"created": "2025-02-11 17:31:21.326151406 +0000 UTC",
"image_id": "sha256:edf45b99bc454d160aec04e50efaa43b00d9f07c408ae09a2f7eb4fa75fc00b6",
@XTechnology-TR
XTechnology-TR / Understanding the Role of a Day Trader.md
Created February 11, 2025 18:02 — forked from johntday/Understanding the Role of a Day Trader.md
Day trading represents a high-stakes, fast-paced approach to trading financial instruments, where traders buy and sell assets within the same trading day.

Understanding the Role of a Day Trader

Date: January 27, 2025

Introduction

Day trading represents a high-stakes, fast-paced approach to trading financial instruments, where traders buy and sell assets within the same trading day. This method is characterized by its focus on short-term price movements and the avoidance of overnight risks. The allure of day trading lies in its potential for high returns and financial independence, offering traders the flexibility to work from virtually anywhere with an internet connection. However, this potential is counterbalanced by significant risks, including financial losses and the psychological demands of maintaining emotional control under pressure (Forbes).

The mechanics of day trading involve a variety of strategies such as scalping, momentum trading, and news-based trading, each designed to exploit market inefficiencies. These strategies require a deep understanding of market dynamics and th

@choco-bot
choco-bot / Install.txt
Created February 11, 2025 18:01
WindowsAzureLibsForNet v2.9 - Failed - Package Tests Results
2025-02-11 18:01:31,970 4544 [DEBUG] - XmlConfiguration is now operational
2025-02-11 18:01:32,108 4544 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 18:01:32,108 4544 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-11 18:01:32,108 4544 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 18:01:32,108 4544 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco'
2025-02-11 18:01:32,108 4544 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-11 18:01:32,129 4544 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco'
2025-02-11 18:01:32,129 4544 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 18:01:32,129 4544 [DEBUG] - Adding new typ
@vitoksmile
vitoksmile / HintAnchor.kt
Created February 11, 2025 18:01
ComposeHints
fun Modifier.hintAnchor(state: HintAnchorState): Modifier = composed {
val statusBarInsets = WindowInsets.statusBars.getTop(LocalDensity.current).toFloat()
onGloballyPositioned {
state.size = it.size
state.offset = it.positionInWindow()
// To fix WindowInsets on Android
.minus(Offset(x = 0f, y = statusBarInsets))
}
}
@SystemicVoid
SystemicVoid / textlive-full-beefless.md
Last active February 11, 2025 18:02 — forked from wkrea/textlive-full-beefless.md
`texlive-full` without the beef

TLDR;

On an Debian/Ubuntu-based system, to install texlive-full without docs and language packs, simply do this:

sudo apt install `sudo apt --assume-no install texlive-full | \
		awk '/The following additional packages will be installed/{f=1;next} /Suggested packages/{f=0} f' | \
		tr ' ' '\n' | grep -vP 'doc$' | grep -vP 'texlive-lang' | grep -vP 'latex-cjk' | tr '\n' ' '`

After this, if you wish to install the language packs, selectively install them. E.g.:

@choco-bot
choco-bot / FilesSnapshot.xml
Created February 11, 2025 18:00
buildkite v2.6.1 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\buildkite\buildkite-agent-windows-amd64-2.6.1.zip.txt" checksum="CED51B583CC0893823E8FB82529EA913" />
<file path="C:\ProgramData\chocolatey\lib\buildkite\buildkite.nupkg" checksum="7EA9C2326B300167E4435D312A3D1D40" />
<file path="C:\ProgramData\chocolatey\lib\buildkite\buildkite.nuspec" checksum="931EE5A3A90AB98B6834B0D33FDFF582" />
<file path="C:\ProgramData\chocolatey\lib\buildkite\tools\bootstrap.bat" checksum="0DD52019DEF5742A47B144240AD6E411" />
<file path="C:\ProgramData\chocolatey\lib\buildkite\tools\buildkite-agent.cfg" checksum="8EB7B7C8B795C15E841FFC8ECBD90DE0" />
<file path="C:\ProgramData\chocolatey\lib\buildkite\tools\buildkite-agent.exe" checksum="B76DAB1F91E2AAC4288872A38CFB2B17" />
<file path="C:\ProgramData\chocolatey\lib\buildkite\tools\chocolateyinstall
@vitoksmile
vitoksmile / HintOverlayBackground.kt
Last active February 11, 2025 18:03
ComposeHints
@Composable
fun HintOverlay(
anchors: () -> List<HintAnchorState>,
) {
Box(
modifier = Modifier
.fillMaxSize()
.overlayBackground(anchors)
)
}
@vitoksmile
vitoksmile / ComposeHints6.kt
Created February 11, 2025 18:00
ComposeHints
val topAppBarActionHintAnchor = rememberHintAnchorState()
val actionHintAnchor = rememberHintAnchorState()
val bottomNavigationHintAnchor = rememberHintAnchorState()
IconButton(
modifier = Modifier
.hintAnchor(topAppBarActionHintAnchor),
onClick = {},
)
import time
import board
import neopixel
pixel_pin = board.D2
num_pixels = 16
pixels = neopixel.NeoPixel(pixel_pin, num_pixels, brightness=0.7, auto_write=False)
while True: