Skip to content

Instantly share code, notes, and snippets.

View teocci's full-sized avatar
👨‍💻
Coding

Teocci teocci

👨‍💻
Coding
View GitHub Profile
@teocci
teocci / how-to-ssh-into-windows.md
Created October 13, 2022 08:07
How to SSH into Windows 10 or 11?

How to SSH into Windows 10 or 11?

The latest builds of Windows 10 and Windows 11 include a build-in SSH server and client that are based on OpenSSH. This means now you can remotely connect to Windows 10/11 or Windows Server 2019 using any SSH client, like Linux distros. Let's see how to configure OpenSSH on Windows 10 and Windows 11, and connect to it using Putty or any other SSH client.

OpenSSH is an open-source, cross-platform version of Secure Shell (SSH) that is used by Linux users for a long time. This project is currently ported to Windows and can be used as an SSH server on almost any version of Windows. In the latest versions of Windows Server 2022/2019 and Windows 11, OpenSSH is built-in to the operating system image.

@teocci
teocci / MultipleDevicesOverTCP.md
Last active April 15, 2026 07:18
How to connect multiple Android devices with ADB over TCP

#How to connect multiple Android devices with ADB over TCP

From your device, if it is rooted

According to a post on xda-developers, you can enable ADB over Wi-Fi from the device with the commands:

su
setprop service.adb.tcp.port 5555
stop adbd
start adbd
@teocci
teocci / AwesomeCourses.md
Last active April 7, 2026 04:14
List of awesome university courses for learning Computer Science!

Awesome Courses Awesome

Introduction

There is a lot of hidden treasure lying within university pages scattered across the internet. This list is an attempt to bring to light those awesome courses which make their high-quality material i.e. assignments, lectures, notes, readings & examinations available online for free.

Table of Contents

@teocci
teocci / abstact.md
Last active March 31, 2026 18:26
Signal handling example for golang

Handling Unix Signals In Golang

Unix signals are software interrupts that are sent to a program to indicate that some important event has occurred. The events can vary from user requests to illegal memory access errors. Some signals, such as the interrupt signal, indicate that a user has asked the program to do something, not in the usual control flow.

Dealing with the operating system signals is important for various use cases in applications. For example, we might want a server to gracefully shut down when it receives a SIGTERM, or a command-line tool to stop processing input if it receives a SIGINT. Here’s how to handle signals in Go with channels.

os/signal package

Golang’s os/signal the package allows you to configure the behavior of your Golang program upon receiving certain types of UNIX signals. Most Linux/Unix-based programs will gladly die upon receiving a kill signal, but in case you want your program to intercept the signal first, perform some backup, flush data to disk, etc before dying,

60+ AI tools to finish months of work in minutes.

  1. Research
  • ChatGPT
  • Claude
  • DeepSeek R1
  • Gemini
  • Abacus
  • Perplexity

Python Environment Rules

Required Python Version

  • Windows: Python 3.11.9
  • Linux: Python 3.11.9 (or python3.11 from package manager)
  • macOS: Python 3.11.9 (or python3.11 via Homebrew)

Virtual Environment Setup

@teocci
teocci / php-nginx-install.md
Last active March 9, 2026 13:00
Install PHP7.2 NGINX and PHP7.2-FPM on Ubuntu 18.04

Install NGINX

# Install software-properties-common package to give us add-apt-repository package
sudo apt-get install -y software-properties-common

# Install latest nginx version from community maintained ppa
sudo add-apt-repository ppa:nginx/stable

# Update packages after adding ppa
sudo apt-get update
@teocci
teocci / disable-bixby.md
Last active January 26, 2026 08:58
How to disable/uninstall Bixby without root access

How to disable/uninstall Bixby without root access

Ever since Samsung announced the Galaxy S8 with its onboard assistant, Bixby, people have been asking for ways to disable it and forget the button ever existed in the first place. With the Galaxy S9 and Note 9, that chorus became even louder, and with the Galaxy S10 now available, a whole new generation of customers will be looking to disable Bixby.

Why do you want to disable Bixby?

One of the biggest frustrations with the Bixby button is its placement; the button is right under the volume keys and nearly directly opposite the power buttons. On larger phones like the Galaxy S9+ and Note 8, this often leads to accidental presses and unintended Bixby launches, especially when double-pressing the power button to launch the camera.

The Bixby button is also not mappable to another action; Samsung wants you to use it for Bixby, or not at all. This isn't ideal, so many people will inevitably choose to just forget it exists and move on.

While the hardware

If the Icos are no loading, this is because your terminal is likely not using a Nerd Font. Oh My Posh requires a Nerd Font (like Cascadia Code Nerd Font or Meslo) to render the icons (e.g., \ue62a, \uf489). 2. Date Format: I have updated the JSON to use the Year. Month. Day. | 24H format you requested.

Fix the Font (Required for Icons)

Critical: Fix Icon Loading

The icons still won't display without a Nerd Font. You must:

# 1. Install a Nerd Font (example)
winget install -e --id Microsoft.CascadiaCode.NF
@teocci
teocci / adb-commands.md
Last active August 15, 2025 19:05
adb useful commands list
## Delete files
adb devices
List of devices attached
21344ca0530c7ece        device

adb -s 21344ca0530c7ece  shell 
cd /sdcard/Telegram/Telegram\ Video/
touch -mt 202209010000 end_marker