Skip to content

Instantly share code, notes, and snippets.

View mutalisk999's full-sized avatar

Mutalisk mutalisk999

View GitHub Profile
@mutalisk999
mutalisk999 / steps
Created April 1, 2024 09:39 — forked from directorscut82/steps
[find highest cpu usage per thread] #CLI
Just to clarify all the steps required to diagnose this issue. (thanks everyone for postings) :
Following command shows the list of process with their CPU / Memory usage :
ps auxf
Following command gives the list of all threads of a process sorted with CPU usage.
top -H -p [PID]
@mutalisk999
mutalisk999 / visualstudio2019Key.txt
Created January 9, 2024 14:23 — forked from ansarizafar/visualstudio2019Key.txt
Visual Studio 2019 Product Key
Visual Studio 2019 Product Key
[Please Star this gist]
Follow My Account --> https://github.com/ch-kashif @ch-kashif
Lets do a code together
Join Cloud Disk repository --> https://github.com/ch-kashif/CloudDisk
@mutalisk999
mutalisk999 / install_openssl_aarch64.sh
Created August 23, 2023 05:45 — forked from Matheus-Garbelini/install_openssl_aarch64.sh
Compile and install OpenSSL 1.1.1 for arm64 aarch64 android
wget https://www.openssl.org/source/openssl-1.1.1.tar.gz
tar -xvzf openssl-1.1.1.tar.gz
cd openssl-1.1.1/
./Configure linux-aarch64 --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib
make -j$(($(nproc)+1))
sudo make install
sudo echo 'LD_LIBRARY_PATH=/usr/local/ssl/lib:${LD_LIBRARY_PATH}' >> /etc/environment
rm openssl-1.1.1.tar.gz
sudo rm openssl-1.1.1 -r
@mutalisk999
mutalisk999 / deadsnakes-python39-ubuntu-bionic.md
Created November 4, 2022 09:03
Deadsnakes python 3.9 on Ubuntu 18.04 LTS

Deadsnakes python 3.9 on Ubuntu 18.04 LTS

NOTE: Recently switched back to using pyenv so I can run multiple python versions without losing my mind. It only takes a few minutes to set up, but provides the flexibility I need without making things too complicated. See my gist, Manage python versions on Linux with pyenv for more.

The deadsnakes PPA make the latest stable versions of python available on Ubuntu 18.04 LTS (3.9 is already in the official apt repo for 20.04). I now find it preferable to installing from source.

The following was tested on a Ubuntu 18.04.5 LTS desktop with python 3.6.9 as the system python version ("python3").

The latest python available from deadsnakes as of July, 2021 is 3.9.6.

Prerequisites

@mutalisk999
mutalisk999 / tls_client.py
Created September 21, 2022 15:12 — forked from oborichkin/tls_client.py
Simple TLS client and server on python
import socket
import ssl
from tls_server import HOST as SERVER_HOST
from tls_server import PORT as SERVER_PORT
HOST = "127.0.0.1"
PORT = 60002
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
@mutalisk999
mutalisk999 / openssl-enc-compat.py
Created September 20, 2022 08:52 — forked from chrono-meter/openssl-enc-compat.py
OpenSSL enc compatible script by Python.
#!python3
"""OpenSSL enc compatible script by Python.
"""
import sys
import os
import io
import hashlib
import binascii
import argparse
import logging
@mutalisk999
mutalisk999 / rsa_loading.go
Created September 20, 2022 08:51 — forked from julie-is-late/rsa_loading.go
How to load rsa keys in go
package config
import (
"crypto/rand"
"crypto/rsa"
"crypto/x509"
"encoding/pem"
"io/ioutil"
"github.com/CodeCollaborate/Server/utils"
@mutalisk999
mutalisk999 / EVP_BytesToKey.md
Created September 20, 2022 08:51 — forked from tly1980/EVP_BytesToKey.md
EVP_BytesToKey implementation in other languages: Python, Node.js
@mutalisk999
mutalisk999 / async-socket.py
Created September 20, 2022 08:51 — forked from lkraider/async-socket.py
Example of using gevent for async socket server and client
import gevent
import gevent.server
import gevent.monkey
gevent.monkey.patch_all()
import socket
import string
import random
import filecmp
@mutalisk999
mutalisk999 / client.py
Created September 20, 2022 08:50 — forked from zapstar/client.py
Python Asyncio SSL client and server examples
#!/usr/bin/env python3
import asyncio
import ssl
@asyncio.coroutine
async def echo_client(data, loop):
ssl_ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
ssl_ctx.options |= ssl.OP_NO_TLSv1