Skip to content

Instantly share code, notes, and snippets.

View varunsridharan's full-sized avatar
😀

Varun Sridharan varunsridharan

😀
View GitHub Profile
@varunsridharan
varunsridharan / Dockerfile
Last active August 26, 2024 03:58
USB Mount
# Use an official lightweight Linux distribution as a base image
FROM ubuntu:latest
# Update package lists and install necessary packages
RUN apt-get update && apt-get install -y \
sudo \
util-linux \
curl \
mount \
&& rm -rf /var/lib/apt/lists/*
Mar 12 10:09:45 vault1 1 2023-03-12T10:09:45.621829+05:30 vault1.nas avahi-daemon 1495 - - Found user 'avahi' (UID 200) and group 'avahi' (GID 200).

Mar 12 10:09:45 vault1 1 2023-03-12T10:09:45.621975+05:30 vault1.nas avahi-daemon 1495 - - Successfully dropped root privileges.

Mar 12 10:09:45 vault1 1 2023-03-12T10:09:45.621994+05:30 vault1.nas avahi-daemon 1495 - - avahi-daemon 0.8 starting up.

Mar 12 10:09:45 vault1 1 2023-03-12T10:09:45.622097+05:30 vault1.nas avahi-daemon 1495 - - Loading service file /usr/local/etc/avahi/services/DEV\_INFO.service.

Mar 12 10:09:45 vault1 1 2023-03-12T10:09:45.622150+05:30 vault1.nas avahi-daemon 1495 - - Loading service file /usr/local/etc/avahi/services/HTTP.service.
@varunsridharan
varunsridharan / script.sh
Created May 17, 2022 10:28
Ubuntu Personal Setup
#!/bin/sh
## Set Timezone
sudo timedatectl set-timezone Asia/Kolkata
@varunsridharan
varunsridharan / vhost-creator.sh
Last active March 17, 2021 06:55
Apache Webserver Helpers
#!/bin/bash
BASE_DOC_ROOT="/var/www"
echo "Enter New Site Domain :"
read
DOMAIN_NAME=$REPLY
# Create Required Folders & Update Permissions
mkdir -p "${BASE_DOC_ROOT}/${DOMAIN_NAME}/public"
#!/bin/bash
TIMEZONE="Asia/Kolkata"
apk add tzdata
ls /usr/share/zoneinfo
cp "/usr/share/zoneinfo/$TIMEZONE" /etc/localtime
echo "$TIMEZONE" > /etc/timezone
date
apk del tzdata
🇮🇳India 7 minutes ago
🤒Active: 709,668
😌Recovered: 28,836,529
💀Deaths: 388,164
💉Tests: 391,019,083
@varunsridharan
varunsridharan / copyAttr.js
Last active October 8, 2020 07:56
domQ Gist
/**
* Copy A Attr Value From 1 To Another
*/
domQ( "p" ).copyAttr( "data-existingName", "data-newName");

Keybase proof

I hereby claim:

  • I am varunsridharan on github.
  • I am varunsridharan (https://keybase.io/varunsridharan) on keybase.
  • I have a public key ASDlQz1qEl_aQo2B9VF-1gWCJBuYk5jibSBhpoTa2SZq7wo

To claim this, I am signing this object: