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 / disable-bixby.md
Last active June 15, 2025 05:20
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

Freezing and uninstalling non-removable Android apps in Developer mode

  1. Download and install Android SDK Platform-Tools on your computer. Of the tools inside, you’ll only need the Android Debug Bridge USB driver and the ADB command line.
  2. Enable Developer mode on your phone. The details vary slightly from vendor to vendor, but the general recipe is roughly the same: repeatedly tap the Build Number option in the About Phone.
  3. Enable USB Debugging under Developer Settings on your smartphone. There are multiple options there — but don’t touch any apart from these two!
  4. Connect your smartphone to your computer through USB.
  5. Allow Debug mode on your phone screen.
  6. Test Debug mode by getting a list of all packages (what developers call apps) installed on your phone. To do so, type the following in the ADB command line
adb shell pm list packages 
@teocci
teocci / AwesomeCourses.md
Last active May 20, 2025 00:05
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 / activateoffice2019.md
Created May 1, 2020 13:19 — forked from CHEF-KOCH/activateoffice2019.md
How to activate Office 2019
  • Download the Retail Office 2019 images (or standalone) (MS currently does not provide VL images for Windows [only MAcOS])
  • Go to https://github.com/abbodi1406/BatUtil/tree/master/OfficeC2R-R2V and download it
  • Install Office 2019 (Retail)
  • Use C2R-R2V (start the batch with admin rights)
  • Wait until all is finished
  • Activate Office with KMSAuto.Net, MSToolkit, batch scripts or manually like you would do with a normal KMS version
// ==UserScript==
// @name W2MUnlocker
// @namespace http://tampermonkey.net/
// @version 2025-03-04
// @description Prevents execution of the _0x39426c function on watch2movies.net
// @author Teocci
// @match *://*.watch2movies.net/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=watch2movies.net
// @grant none
// @run-at document-start

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

  1. Research
  • ChatGPT
  • Claude
  • DeepSeek R1
  • Gemini
  • Abacus
  • Perplexity
@teocci
teocci / install-nodejs-centos-7.md
Last active February 13, 2025 13:16
Installing Node.js in CentOS 7

Install NodeJS 16.17

sudo yum install -y gcc-c++ make curl
curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash -

sudo yum list available nodejs
sudo yum install -y nodejs
node -v
npm -v
@teocci
teocci / abstact.md
Last active January 10, 2025 20:00
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,

@teocci
teocci / go-exec-pid-sample.go
Created November 22, 2021 10:46
golang exec run get pid
package main
import (
"bytes"
"context"
"fmt"
"log"
"os"
"os/exec"
"sync"