Skip to content

Instantly share code, notes, and snippets.

View pnsinha's full-sized avatar

P. Sinha pnsinha

View GitHub Profile
@LM1LC3N7
LM1LC3N7 / Readme.md
Last active February 3, 2025 16:56
Automating application install on a fresh Windows 10/11 using Microsoft Store and winget

FASIC

Fast and Automatic Software Install and Configuration (on Windows)

Need

Install my common apps on Windows as fast as possible and mostly automatically, after a reimaging or reset of my OS. Also change some settings on Windows, like disabling the bing search in the start menu.

How it works?

This PowerShell script uses Microsoft Store and winget to download and install a list of application, configured at the top of the file.

@nilact
nilact / windows-11-install.ps1
Created May 28, 2022 12:09
For Installing software on Windows 11
# Based on the scripts of
# @jessfraz https://gist.github.com/jessfraz/7c319b046daa101a4aaef937a20ff41f
# @NickCraver https://gist.github.com/NickCraver/7ebf9efbfd0c3eab72e9
$ErrorActionPreference = "Stop"
Set-ExecutionPolicy Bypass -Scope Process -Force;
#Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
# Set-TaskbarOptions -Size Small -Dock Bottom -Combine Full -Lock
@CharlesGodwin
CharlesGodwin / cloudflare.md
Last active March 2, 2025 16:44
I Don't Need Port Forwarding and Don't Care About CGNAT

I Don't Need Port Forwarding and Don't Care About CGNAT

This was rewritten 2022-11-30

This article is for users that want all these features:

  • To connect to home network from anywhere
  • Can connect without any port forwarding; either by choice or internet provider can't or won't provide access
  • No setup or configuration or installation on client machine
  • No enrolment / registration required
@mattirish
mattirish / conda_symlink.md
Last active February 8, 2025 06:43
Easily move a conda environment to a different drive on Windows without touching with conda

WSL 2 Cisco AnyConnect Networking Workaround

Overview

WSL 2 uses a Hyper-V Virtual Network adapter. Network connectivity works without any issue when a VPN is not in use. However when a Cisco AnyConnect VPN session is established Firewall Rules and Routes are added which breaks connectivity within the WSL 2 VM. This issue is tracked WSL/issues/4277

Below outline steps to automatically configure the Interface metric on VPN connect and update DNS settings (/etc/resolv.conf) on connect/disconnect.

Manual Configuration

Set Interface Metrics

@wolfv
wolfv / github_actions.yaml
Last active December 20, 2024 02:31
micromamba usage
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
@bikcrum
bikcrum / Connect Google Colab+Drive with SSH.ipynb
Last active October 16, 2024 03:23
This is the way how can you connect google colab as well as google drive (mounted) using SSH. This is useful when you want to download data directly to your google drive specially for machine learning purpose. It can be easy to mount google drive and use files into for your code.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@naveenarun
naveenarun / slack.sh
Last active March 7, 2023 08:27
Bash function for sending a verbose slack message (containing path, command, error code, and custom message) after a process or series of processes exit
# Place this in your .bashrc
# Covers several corner cases such as nested apostrophes, history extraction in screens/subshells, Slack being down, etc.
# Strings to replace with your own credentials:
## {your email address} (1 instance)
## {slack webhook url} (1 instance) (see guide below)
## {your computer name} (2 instances)
# How to set up a Slack webhook (as of Jul 2019):
## Go here: https://api.slack.com/apps?new_app=1.
## Click “incoming webhooks” and turn the slider on
@yougg
yougg / proxy.md
Last active March 4, 2025 15:42
complete ways to set http/socks/ssh proxy environment variables

set http or socks proxy environment variables

# set http proxy
export http_proxy=http://PROXYHOST:PROXYPORT

# set http proxy with user and password
export http_proxy=http://USERNAME:PASSWORD@PROXYHOST:PROXYPORT

# set http proxy with user and password (with special characters)
@matthewjberger
matthewjberger / instructions.md
Last active March 12, 2025 12:17
Install a nerd font on ubuntu

1.) Download a Nerd Font

2.) Unzip and copy to ~/.fonts

3.) Run the command fc-cache -fv to manually rebuild the font cache