Skip to content

Instantly share code, notes, and snippets.

View nullifiedaccount3's full-sized avatar
πŸ‘‘
Killing it

nullifiedaccount3

πŸ‘‘
Killing it
View GitHub Profile
@nullifiedaccount3
nullifiedaccount3 / MLOps-Assignment-1.md
Created October 5, 2025 04:11
MLOps-Assignment-1.md

ML Ops

Assignment 1

Instructions for Submission and Report

  • Follow the general instructions as discussed in the class creation of conda env β†’ requirements.txt β†’ setting up github repo using command line [Using web upload will result in a penalty of 30 Marks!]
  • Submit a PDF file only [YourRollNo_A1.pdf]
  • Marks Distribution: Total 50
  • Code+Git: 10 Marks
@nullifiedaccount3
nullifiedaccount3 / GitHubErrorRemover.js
Created December 6, 2020 10:04
GitHub Error Remover
// ==UserScript==
// @name GitHub Error Remover
// @version 0.0.1
// @description Remove the first error displayed on the website.
// @author bhargav3
// @match https://*.github.com/*
// @license MIT
// ==/UserScript==
@nullifiedaccount3
nullifiedaccount3 / prepare-commit-msg.bash
Created October 20, 2020 04:22
Include JIRA Ticket ID in commit message as a prefix
#!/bin/bash
# Include any branches for which you wish to disable this script
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master release qa develop staging test)
fi
# Get the current branch name and check if it is excluded
BRANCH_NAME=$(git symbolic-ref --short HEAD)
BRANCH_EXCLUDED=$(printf "%s\n" "${BRANCHES_TO_SKIP[@]}" | grep -c "^$BRANCH_NAME$")
SELECT
SO.Name
,SS.name
,SO.type_desc
,SO.create_date
,SO.modify_date
FROM sys.objects AS SO
INNER JOIN sys.schemas AS SS
ON SS.schema_id = SO.schema_id
WHERE DATEDIFF(D,modify_date, GETDATE()) < 50
@nullifiedaccount3
nullifiedaccount3 / optimized_cost_compute.php
Created December 12, 2018 06:57
Monk visits Coderland
<?php
//https://www.hackerearth.com/practice/algorithms/greedy/basics-of-greedy-algorithms/practice-problems/algorithm/monk-visits-coderland-4/
//Read inputs
$inputs = [];
while ($f = fgets(STDIN)) {
$inputs[] = $f;
@nullifiedaccount3
nullifiedaccount3 / docker-clean.sh
Created March 1, 2017 14:45
/etc/cron.daily/docker-clean
#Docker – Clean Up After Yourself!
#http://blog.yohanliyanage.com/2015/05/docker-clean-up-after-yourself/
docker rm -v $(docker ps -a -q -f status=exited)
docker rmi $(docker images -f "dangling=true" -q)
docker run -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker:/var/lib/docker --rm martin/docker-cleanup-volumes
@nullifiedaccount3
nullifiedaccount3 / angular-custom-directive-ng-click.html
Last active November 24, 2016 18:42
angular-custom-directive-ng-click.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
</body>
<!DOCTYPE html>
@nullifiedaccount3
nullifiedaccount3 / tail-slack.sh
Created September 13, 2016 05:33 — forked from shamasis/tail-slack.sh
Tail a file and output to slack
#!/bin/bash
tail -n0 -F "$1" | while read LINE; do
(echo "$LINE" | grep -e "$3") && curl -X POST --silent --data-urlencode \
"payload={\"text\": \"$(echo $LINE | sed "s/\"/'/g")\"}" "$2";
done
<?php
if ( ! class_exists( 'WP_List_Table' ) ) {
require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' );
}
if ( ! class_exists( 'Snapshot_View_Table_Archives' ) ) {
class Snapshot_View_Table_Archives extends WP_List_Table {
var $item;
@nullifiedaccount3
nullifiedaccount3 / random8.js
Last active August 29, 2015 14:16
Generates a random number between 0 to 8
function r5(){
return parseInt(Math.floor(Math.random()*5));
}
function r8() {
var z = r5() + r5();
if (z > 8) {
r8();
} else {
return z;
}