Skip to content

Instantly share code, notes, and snippets.

View lnrsoft's full-sized avatar
🎯
Focusing

lnrsoft lnrsoft

🎯
Focusing
View GitHub Profile
@lnrsoft
lnrsoft / Install openssl-1.1.1c on Debian or Ubuntu
Created June 15, 2019 23:11
Install openssl-1.1.1c on Debian or Ubuntu
#Ubuntu:
sudo -s
#Debian:
su -
apt install make gcc -y
cd /usr/local/src
@lnrsoft
lnrsoft / Decimal to Binary Conversion Algorithm.cpp
Last active January 4, 2024 21:42
Decimal to Binary Conversion Algorithm.cpp
#include <iostream>
using namespace std;
int main() {
int a[10], n, i;
cout << "Enter the number to convert: ";
cin >> n;
for (i = 0; n > 0; i++) {
a[i] = n % 2;
@lnrsoft
lnrsoft / Binary Numbers.cpp
Last active January 4, 2024 21:40
Binary Numbers.cpp
#include<bits/stdc++.h>
using namespace std;
int main() {
int n;
int reminder = 0;
int count = 0;
int max = 0;
cin >> n;
@lnrsoft
lnrsoft / README.md
Created April 28, 2023 12:21 — forked from marcpinet/README.md
Activate Sublime Text 4 Build 4143 and below for ever (also maybe above, but not yet tried)

Activate Sublime Text (for ever)

  1. Go to https://hexed.it/
  2. Click Open File in the top left corner and select sublime_text.exe
  3. Press CTRL + F or on the Search for bar in the left panel and look for: 80 78 05 00 0f 94 C1
  4. Now in the editor, click on the first byte (80) and start replacing each byte by: C6 40 05 01 48 85 C9
  5. Finally, in the top left corner again, click on Save as and replace the old executable file with the newly created one.

Enjoy an Unlimited User License!

@lnrsoft
lnrsoft / microsoft Visual studio 2019
Created February 19, 2023 17:13 — forked from kakubagerald/microsoft Visual studio 2019
softwares keys and activation licenses
Visual Studio 2019 Enterprise
BF8Y8-GN2QH-T84XB-QVY3B-RC4DF
Visual Studio 2019 Professional
NYWVH-HT4XC-R2WYW-9Y3CM-X4V3Y
orininall shared at https://gist.github.com/d-komarov/a8029ad14b3cf16488d96471e658c205
@lnrsoft
lnrsoft / Visual Studio 2019 License Key
Created February 19, 2023 14:22 — forked from NarenderSingh/Visual Studio 2019 License Key
Visual Studio 2019 License Key
Visual Studio 2019 Enterprise
BF8Y8-GN2QH-T84XB-QVY3B-RC4DF
Visual Studio 2019 Professional
NYWVH-HT4XC-R2WYW-9Y3CM-X4V3Y
@lnrsoft
lnrsoft / gcpp_uncrustify.cfg
Last active June 20, 2022 13:06
Google C++ Style Uncrustify configuration
indent_align_string=true
indent_braces=false
indent_braces_no_func=false
indent_brace_parent=false
indent_namespace=false
indent_extern=false
indent_class=true
indent_class_colon=true
indent_else_if=false
indent_func_call_param=false
@lnrsoft
lnrsoft / cpp_bit_array.cpp
Last active March 7, 2022 14:30
[C++] An Interesting BitArray Example
#include <algorithm>
#include <iostream>
constexpr unsigned exponent = 31;
constexpr unsigned two_to_exponent = 1u << exponent;
unsigned solve_p_even(unsigned n, unsigned s, unsigned p, unsigned q)
{
if(p == 0) {
if(s == q) {
@lnrsoft
lnrsoft / GNU_GCC_7.3.0_EVN_OSX
Last active May 29, 2021 22:59
How to build GCC 7.3.1 Compiler on OSX
# Building Prerequisites
# This basic list includes those packages that are required before we build our GNU GCC compiler from its source code.
# 1. GMP is a free library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating-point numbers. There is no practical limit to the precision except the ones implied by the available memory in the machine GMP runs on.
# 2. MPICH is a high performance and widely portable implementation of the Message Passing Interface (MPI) standard.
# 3. MPFR is a portable library written in C for arbitrary precision arithmetic on floating-point numbers. It is based on the GNU MP library. It aims to provide a class of floating-point numbers with precise semantics.
# 4. MPC is a C library for the arithmetic of complex numbers with arbitrarily high precision and correct rounding of the result.
# I use many more libraries during my work, POCO, Boost, OPenCV etc.
# I only added 3 other tool isl, doxygen and GDB to this list, they are not must but
@lnrsoft
lnrsoft / install_opencv-4.0.0_on_ubuntu.sh
Created December 8, 2018 14:32
Install OpenCV 4.0.0 on Ubuntu 18.04, 18.10
######################################
# INSTALL OPENCV ON UBUNTU OR DEBIAN #
######################################
# | THIS SCRIPT IS TESTED CORRECTLY ON |
# |----------------------------------------------------|
# | OS | OpenCV | Test | Last test |
# |----------------|--------------|------|-------------|
# | Ubuntu 18.10 | OpenCV 4.0.0 | OK | 18 Nov 2018 |
# | Ubuntu 18.04 | OpenCV 4.0.0 | OK | 18 Nov 2018 |