Skip to content

Instantly share code, notes, and snippets.

View infinite4evr's full-sized avatar
😇
Focusing

Sudhanshu Kumar infinite4evr

😇
Focusing
View GitHub Profile
[root@localhost infinite4evr]# /usr/bin/vmplayer %u
Stopping vmware (via systemctl): [ OK ]
make: Entering directory '/tmp/modconfig-1fJKHM/vmmon-only'
Using kernel build system.
/usr/bin/make -C /lib/modules/4.17.14-202.fc28.x86_64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/src/kernels/4.17.14-202.fc28.x86_64'
Makefile:974: *** "Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel". Stop.
make[1]: Leaving directory '/usr/src/kernels/4.17.14-202.fc28.x86_64'
make: *** [Makefile:110: vmmon.ko] Error 2
@infinite4evr
infinite4evr / Add two arrays assembly language code .asm
Last active June 18, 2023 17:06
assembly language programs 8086/80386
.MODEL TINY ; ADD TWO ARRAYS
.CODE
.386
.STARTUP
.DATA
ARRAY1 DB 30H,31H,32H,33H,34H,35H,36H,37H,39H,40H,41H
ARRAY2 DB 15H,14H,13H,12H,11H,10H,9H,8H,7H,6H,5H,4H
.CODE
MOV SI, OFFSET ARRAY1
MOV DI, OFFSET ARRAY2
@infinite4evr
infinite4evr / Javascript.html
Last active September 12, 2018 19:29
Javascript Assingment
Q14:
<html>
<head>
<title>sort</title>
</head>
<body>
<form id="sort_form">
@infinite4evr
infinite4evr / Jdbc.java
Last active September 25, 2018 07:48
Jdbc College
/*
No license used, You can copy this beautiful code for free
*/
package it_practicals;
import java.sql.*;
public class it_practicals {
static ResultSet r;
@infinite4evr
infinite4evr / it_practical.java
Last active September 27, 2018 14:18
It_practicals.java
//stack
package it_practicals;
import java.util.*;
abstract class stack {
abstract int push(int element);
@infinite4evr
infinite4evr / it.jsp
Created October 9, 2018 07:14
Java Jsp
//
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
@infinite4evr
infinite4evr / hamming_code.cpp
Created January 7, 2019 03:39
Hamming Code Implementation in C+
//Post at : https://medium.com/code01/hamming-code-implementation-in-c-c16f3d038ba1
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
using namespace std;
int
main ()
{
@infinite4evr
infinite4evr / sh
Created August 21, 2019 03:47
mysql_password_reset
1
Below is the process to reset the root user password, when we forgot the root user password or missed to recollect the password provided during installation.
OS - Ubuntu 16.04
MySQL - 5.7
Stop Mysql Server sudo /etc/init.d/mysql stop
To avoid the error, mysqld_safe Directory '/var/run/mysqld' for UNIX socket file don't exists , run below commands: sudo mkdir -p /var/run/mysqld
@infinite4evr
infinite4evr / my_bot.php
Last active September 15, 2019 08:59
bot_tutorial
<?php
$bot_token = "980569822:AAGmatHbU5tMQoAN9hNNP5P3SGOqibfatVI"; // token by botfather
$bot_api_url = "https://api.telegram.org"; //api url to request
$request_updates_url = $bot_api_url."/bot".$bot_token."/getUpdates"; // final request url ( see telegram api documentation )
$send_message_url = $bot_api_url."/bot".$bot_token."/sendMessage"; // method for sending message is sendMessage
/*
$request url now is : "https://api.telegram.org/bot980569822:AAGmatHbU5tMQoAN9hNNP5P3SGOqibfatVI/getUpdates"
@infinite4evr
infinite4evr / scanrss_14.html
Created March 4, 2020 06:21
RSS _14 Continuous scan Issue
<html>
<body>
<button>Start Scan</button>
<video id="video" width="100%" height="100%" style="border: 1px solid gray"></video>
</body>
</html>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script type="text/javascript" src="https://unpkg.com/@zxing/library@latest"></script>
<script>
let selectedDeviceId;