Skip to content

Instantly share code, notes, and snippets.

View lnrsoft's full-sized avatar
🎯
Focusing

lnrsoft lnrsoft

🎯
Focusing
View GitHub Profile
@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 / 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 / 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 / FuncSolution.cpp
Created October 10, 2019 11:04
Factorial digital solution [Written by Roland Ihasz , 10th October 2019]
// Title: Factorial digital solution
// 10th Oct 2019
// Written by Roland Ihasz
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
@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 / ip.php
Created May 26, 2019 17:32
Here is a quick solution written in php that you can use to determine the current IP address of a given webhost/domain.
<?php
echo GetClientIP(true);
function GetClientIP($validate = False)
{
$ipkeys = array(
'REMOTE_ADDR',
'HTTP_CLIENT_IP',
'HTTP_X_FORWARDED_FOR',
'HTTP_X_FORWARDED',
@lnrsoft
lnrsoft / roll-a-die.cpp
Created January 23, 2019 20:50
Roll a 6-sided die 5 times using c++
#include <cstdlib>
#include <iostream>
#include <ctime>
int main()
{
std::srand(std::time(nullptr));
int random_variable = std::rand();
std::cout << "Random value on [0 " << RAND_MAX << "]: "
<< random_variable << '\n';
@lnrsoft
lnrsoft / box-it.cpp
Last active January 21, 2019 10:10
Box It HRANK problem in c++
// This source code written by Roland Ihasz
#include<bits/stdc++.h>
// #include <iostream>
using namespace std;
class Box {
private:
int l, b, h;