Skip to content

Instantly share code, notes, and snippets.

View dtsdwarak's full-sized avatar

Dwaraka Nath dtsdwarak

View GitHub Profile
@dtsdwarak
dtsdwarak / .wslconfig
Created February 16, 2024 15:56
Windows 10 subsystem for linux configuration
# Reference
# https://learn.microsoft.com/en-us/windows/wsl/wsl-config#experimental-settings
# Path - C:\Users\<UserName>\.wslconfig
# Settings apply across all Linux distros running on WSL 2
[wsl2]
# Limits VM memory to use no more than 4 GB, this can be set as whole numbers using GB or MB
memory=4GB
@dtsdwarak
dtsdwarak / vagrant-vmware-tech-preview-apple-m1-pro.md
Created December 4, 2022 19:14 — forked from sbailliez/vagrant-vmware-tech-preview-apple-m1-pro.md
Vagrant and VMWare Tech Preview 21H1 on Apple M1 Pro

Vagrant and VMWare Tech Preview 21H1 on Apple M1 Pro

UPDATE November 20, 2022: VMWare Fusion 13

VMWare Fusion 13 is now released. Read Vagrant and VMWare Fusion 13 Player on Apple M1 Pro for the latest.

Summary

This document summarizes notes taken while to make the VMWare Tech preview work on Apple M1 Pro, it originated

@dtsdwarak
dtsdwarak / update-library.sh
Created January 19, 2021 13:53
cmus library update
#!/bin/bash
cmus-remote -C clear
cmus-remote -C "add ~/Music"
cmus-remote -C "update-cache -f"
# Reference URL
# https://medium.com/@johnnymatthews/how-to-update-your-cmus-library-73b1282f7d51
@dtsdwarak
dtsdwarak / regolith-st-font-change.sh
Last active July 26, 2020 08:36
regolith-font change
#! /bin/bash
### Issue - https://github.com/regolith-linux/regolith-st/issues/7
$ sudo apt install regolith-st
$ echo "St.font: Inconsolata:pixelsize=16:antialias=true:autohint=true" >> ~/.config/regolith/Xresources
$ regolith-look refresh
@dtsdwarak
dtsdwarak / regolith-uninstall.sh
Last active July 26, 2020 08:12
regolith-uninstall.sh
sudo apt purge regolith-*
sudo apt autoremove
rm -rf ~/.regolith-gnome-backup
rm -rf ~/.config/regolith
rm -rf ~/.config/i3
sudo rm -rf /etc/regolith/
sudo apt remove i3*
sudo apt purge i3*
sudo apt-get purge i3-wm
sudo apt-get purge --auto-remove i3-wm
@dtsdwarak
dtsdwarak / night-light.sh
Created April 1, 2020 18:40
Set Night light temperature in regolith
# https://askubuntu.com/a/914601
gsettings set org.gnome.settings-daemon.plugins.color night-light-temperature 5000
@dtsdwarak
dtsdwarak / youtube-dl.sh
Last active August 28, 2022 19:59
youtube-dl shortcuts
#! /bin/bash
# Download an entire channel
# https://askubuntu.com/a/856913
youtube-dl \
-f best \
-ciw \
--playlist-reverse \
-o "%(playlist_index)s - %(title)s.%(ext)s - %(channel)s" \
-v <youtube-channel-url>

Keybase proof

I hereby claim:

  • I am dtsdwarak on github.
  • I am dtsdwarak (https://keybase.io/dtsdwarak) on keybase.
  • I have a public key whose fingerprint is B018 7A1C 9805 0854 E07B F23B E42F 7A75 016B 5F68

To claim this, I am signing this object:

@dtsdwarak
dtsdwarak / cloudflare_dns_update.sh
Last active October 5, 2022 03:11
CLOUDFLARE DNS UPDATE SCRIPT
######################################################################################
# CLOUDFLARE DNS UPDATE SCRIPT
# Documentation : https://api.cloudflare.com/#dns-records-for-a-zone-update-dns-record
# Author: @dtsdwarak
######################################################################################
#! /bin/bash
zone_identifier=kqgsnbdYFSxFEqpzl7vV
dns_record_identifier=yMlGtxPWAsVIRv2kKbRe
@dtsdwarak
dtsdwarak / WebCasts.md
Last active June 20, 2016 03:12
Developer screencasts