Skip to content

Instantly share code, notes, and snippets.

View XTechnology-TR's full-sized avatar
:shipit:
Focusing

xtechnology XTechnology-TR

:shipit:
Focusing
View GitHub Profile
@johntday
johntday / Understanding the Role of a Day Trader.md
Last active February 11, 2025 18:02
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

@Br4ndonP0nce
Br4ndonP0nce / gist:53b089d946750ac529452fab063d8ebb
Created June 11, 2024 21:15
TradingBot Binance runs asynchronously a websocket to read latest data price for the pair BTCUSDT
import os
import asyncio
import math
from binance import AsyncClient, BinanceSocketManager
from dotenv import load_dotenv
from datetime import datetime
import time
# Load environment variables from .env file
load_dotenv()
{
"IntProperties": [ "BuyLeverage", "DcaBuyLeverage" ],
"PtFeeder": {
"BaseCurrency": "USDT",
"BaseCoinPair": "BTCUSDT",
// -------------------------------------------------------------------------------------------------------------------------------------------------
// P T F L I S T S
@MaximilianKohler
MaximilianKohler / Listmonk-tutorial.md
Last active May 15, 2025 15:48
Complete Listmonk setup guide. Step-by-step tutorial for installation and all basic functions. Amazon EC2 & SES

Listmonk setup and usage guide

When I first set up Listmonk it was to use with Amazon SES. At the time Amazon would give you free 62,000 emails/mo if you sent them from an EC2 instance. So EC2 was the best server to use. In mid 2023 Amazon ended that, so now you can use whatever server you like, which makes things much easier. It shouldn't be too hard to convert these directions to another server host of your choice.

I used Hetzner with another build, and once my free EC2 year ended the AWS t2.micro cost me $14/mo. Hetzner has better specs and costs me $5/mo, so I added an nginx vhost and moved listmonk to the same server. Here's a $20 credit for Hetzner.

There is also the possibility to use the 1-click installers for their featured hosts: https://listmonk.app/ - listed under "Hosting providers". I'm not familiar with any of them but there are lots of new guides

@MaximilianKohler
MaximilianKohler / How to send bulk-mass email.md
Last active June 10, 2025 02:29
How to send bulk/mass email with Amazon SES. 10,000-100,000 one-time emails, or thousands per day. Set up your own web server for newsletters. Mailchimp alternative

How to send bulk/mass email

The short answer is that you need to set up your own web server (Hetzner, AWS, DigitalOcean, etc.), install email software on it (Listmonk, Mailwizz, Mautic), and use an SMTP like Amazon SES. It's not that hard. If you're on Windows, Putty and FileZilla will be your main programs to access your server. When using CSV files for your contacts, you want to use UTF-8 format.

There are some detailed guides below for Sendy and Listmonk. But even if you have/want to hire someone to set it up for you, they should be able to do so for under $60 (check Fiverr). So it's still the most affordable option.

When I searched for this I had a very hard time finding a right answer because all the results were SEO blogs advertising their newsletter services (Mailchimp, Convertkit, etc.), which is not the same thing.

My use case is that I have a

@MaximilianKohler
MaximilianKohler / xenforo-forum-guide.md
Last active June 10, 2025 02:15
Detailed startup guide for newbies on migrating to, and setting up a Xenforo forum. Including reddit-like titles, and threaded comment view. [Centmin Mod]
<?
require('../../../../wp=load.php;
etag_start();
header('Service-Worker-Allowed: /');
?>
_wordpressConfig={templateUrl: <?=get_bloginfo('template_url');?> };
<?
readfile('sw.js');
etag_end();
?>
import openai
openai.api_key = "YOUR API KEY HERE"
model_engine = "text-davinci-003"
chatbot_prompt = """
As an advanced chatbot, your primary goal is to assist users to the best of your ability. This may involve answering questions, providing helpful information, or completing tasks based on user input. In order to effectively assist users, it is important to be detailed and thorough in your responses. Use examples and evidence to support your points and justify your recommendations or solutions.
<conversation_history>
User: <user input>
@Jeremy-Gstein
Jeremy-Gstein / open-ai-api.md
Last active February 25, 2024 02:24
Messing around with OpenAI - API and Whisper

Messing around with OpenAI

Disclaimer: this was just for fun and to learn about openai

I started messing around with openai's API and wanted to share some CLI tools. The following was used to test these scripts. May create a small container or codespace for this in the future.

Enviroment Used:

Fedora Silverblue 37 (VM):

  • 4 x 2 Vcpus (8 cores total)
@Typas
Typas / silverblue_nv_driver.md
Created December 14, 2022 16:04
Fedora Silverblue installation with nvidia drivers

The installation of Silverblue is almost identical with normal Fedora, unless you need some systemwide changes. Unfortunately, the nVIDIA driver is one of these changes. After the installation of Silverblue, I logged in, and the situation is unbearable. The whole screen started blinking, each action caused the screen refresh, and then refresh backward, and then refresh.

My intuition told me that must be nouveau, the driver which never acts normally on my 3060Ti. I followed some steps of the site: https://nudesystems.com/how-to-install-nvidia-drivers-in-fedora-silverblue/

After these steps, I found out there's one mysterious unknown display showed my whole login interface into nowhere. Then I found this site: https://gitlab.gnome.org/GNOME/mutter/-/issues/2266 and modify a little to fit Silverblue: