Skip to content

Instantly share code, notes, and snippets.

View laxman954's full-sized avatar

L∈κshmαηα ρεγυmαl M laxman954

View GitHub Profile
@laxman954
laxman954 / delete_git_submodule.md
Created August 3, 2021 13:04 — forked from myusuf3/delete_git_submodule.md
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
</head>
<body>
<h3>Find House Number </h3>
<quote>
A certain street has houses in a row, numbered 1, 2, 3, 4, … consecutively. There is a certain house on the street such that the sum of all the house numbers to the left side of it is equal to the sum of all the house numbers to its right. Find the number of this house.?,
</quote>
<br />
@laxman954
laxman954 / jenkins-api.md
Last active March 14, 2019 11:50 — forked from justlaputa/jenkins-api.md
Jenkins Json API

jobs

jenkins_url + /api/json?tree=jobs[name,color]

builds

jenkins_url + /job/${job_name}/api/json?tree=builds[number,status,timestamp,id,result]

last build

@laxman954
laxman954 / HOWTO.md
Created February 27, 2018 13:19 — forked from cvan/HOWTO.md
How to serve a custom HTTPS domain on GitHub Pages with CloudFlare: *FREE*, secure and performant by default

Instructions

CloudFlare is an awesome reverse cache proxy and CDN that provides DNS, free HTTPS (TLS) support, best-in-class performance settings (gzip, SDCH, HTTP/2, sane Cache-Control and E-Tag headers, etc.), minification, etc.

  1. Make sure you have registered a domain name.
  2. Sign up for CloudFlare and create an account for your domain.
  3. In your domain registrar's admin panel, point the nameservers to CloudFlare's (refer to this awesome list of links for instructions for various registrars).
  4. From the CloudFlare settings for that domain, enable HTTPS/SSL and set up a Page Rule to force HTTPS redirects. (If you want to get fancy, you can also enable automatic minification for text-based assets [HTML/CSS/JS/SVG/etc.], which is a pretty cool feature if you don't want already have a build step for minification.)
  5. If you
@laxman954
laxman954 / jdk_download.sh
Created September 22, 2017 10:17 — forked from P7h/jdk_download.sh
Script to download JDK / JRE / Java binaries from Oracle website from terminal / shell / command line / command prompt
##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### #####
### Shell script to download Oracle JDK / JRE / Java binaries from Oracle website using terminal / command / shell prompt using wget.
### You can download all the binaries one-shot by just giving the BASE_URL.
### Script might be useful if you need Oracle JDK on Amazon EC2 env.
### Script is updated for every JDK release.
### Features:-
# 1. Resumes a broken / interrupted [previous] download, if any.
# 2. Renames the file to a proper name with including platform info.
@laxman954
laxman954 / java9feature.md
Created April 10, 2017 13:03
Java 9 Features
@laxman954
laxman954 / http-status-codes.json
Created March 21, 2017 11:47
Contains HTTP Status Code, Description, Reference Url, Type Of Response (Ref:https://developer.mozilla.org/en-US/docs/Web/HTTP/Status) (https://tools.ietf.org/html/rfc7231)
{
"http_codes":[
{
"code":100,
"status":"Continue",
"type":"Information responses",
"link":"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/100",
"description":"This interim response indicates that everything so far is OK and that the client should continue with the request or ignore it if it is already finished."
},
{
<!DOCTYPE html>
<html>
<head>
<title>Sample Map</title>
<style>
#mapdiv {
margin: 0;
padding: 0;
width: 500px;
height: 500px;

Keybase proof

I hereby claim:

To claim this, I am signing this object:

<html>
<head>
<script type="text/javascript" src="http://www.sirpigal.org/js/jquery.core.js"></script>
<script>
$(document).ready(function(){
$('#myform').submit(function() {
// console.log($('#result').text(JSON.stringify($('form').serializeObject())));
console.log(JSON.stringify($(this).serializeArray()));
return false;
});