Skip to content

Instantly share code, notes, and snippets.

View abhijeet2096's full-sized avatar
🏠
Working from home

Abhijeet Sharma abhijeet2096

🏠
Working from home
View GitHub Profile
@abhijeet2096
abhijeet2096 / rules.v4
Created March 11, 2018 14:01
This file is sample iptables rules used for IIT Mandi System Practicum Assignment 1
# Generated by iptables-save v1.6.0 on Tue Mar 6 04:10:26 2018
*mangle
:PREROUTING ACCEPT [354382:26406678]
:INPUT ACCEPT [326650:16548377]
:FORWARD ACCEPT [27636:9850472]
:OUTPUT ACCEPT [6055:441892]
:POSTROUTING ACCEPT [32989:10272123]
-A POSTROUTING -o virbr0 -p udp -m udp --dport 68 -j CHECKSUM --checksum-fill
-A POSTROUTING -o virbr0 -p udp -m udp --dport 68 -j CHECKSUM --checksum-fill
-A POSTROUTING -o virbr0 -p udp -m udp --dport 68 -j CHECKSUM --checksum-fill
@abhijeet2096
abhijeet2096 / bst.pl
Created April 1, 2018 05:41
Binary Search Tree Implementation in Prolog
%% Topic : Binary Search Tree Implementation in Prolog
%% Author : Abhijeet Sharma | Akhil Singhal
%% Date : 26/03/2018
%% Course : Paradigms of Programming
%% Sample Inputs
%% Input inl([3,6,1,2,4,7,9],nil,X).
%% X = t(3, t(1, nil, t(2, nil, nil)), t(6, t(4, nil, nil), t(7, nil, t(9, nil, nil))))
@abhijeet2096
abhijeet2096 / heap.pl
Created April 2, 2018 03:51
Prolog code for minimum heap via priority queue
/* Part of SWI-Prolog
Author: Lars Buitinck
E-mail: [email protected]
WWW: http://www.swi-prolog.org
Copyright (c) 2006-2015, Lars Buitinck
-- The C compiler identification is GNU 7.3.1
-- The CXX compiler identification is GNU 7.3.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
add_subdirectory(tests)
include_directories(${FWUPD_INCLUDE_DIRS})
set(fwupd-backend_SRCS
FwupdResource.cpp
FwupdBackend.cpp
FwupdReviewsBackend.cpp
FwupdTransaction.cpp
FwupdSourcesBackend.cpp
*********************in header file********************
static const char * PROJECT_NAME;
static const char *PROJECT_VERSION;
*******************************************************
*****************In cpp file***************************
const char *FwupdBackend::PROJECT_NAME = "foo"; //currenty hardcoded
const char *FwupdBackend::PROJECT_VERSION = "1.2.3"; // currently hardcoded
## Remove Lock File Ubuntu
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
@abhijeet2096
abhijeet2096 / response
Created December 26, 2018 06:16
I need to capture id variable in this response, How can I do that in artillery
[
{
"id": "123",
"name": "abc",
"description": "",
"visibility": "Private",
"ownerId": "1234",
"ownerUsername": "qwe",
"collaboratorIds": [],
"collaborators": [],
### Keybase proof
I hereby claim:
* I am abhijeet2096 on github.
* I am abhijeet2096 (https://keybase.io/abhijeet2096) on keybase.
* I have a public key ASC1kcacWSx82TVs8CJJLwl5JyWylaQ31oNARMmYrIRS0Ao
To claim this, I am signing this object: