Skip to content

Instantly share code, notes, and snippets.

View ajayyy's full-sized avatar

Ajay Ramachandran ajayyy

View GitHub Profile
MRuy /
Created May 14, 2021 14:14
SB visual overlay
bmcbm /
Last active September 29, 2023 03:51
NVIDIA Suspend fix
# Use systemd for managing NVIDIA driver suspend in drivers ====>>> PRIOR to version 470 <<<=====
# Please note: In Fedora Linux you may need to just install the xorg-x11-drv-nvidia-power pakage
# as sugested by @goombah88 in the comments below.
echo "options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=${TMP_PATH}" | sudo tee /etc/modprobe.d/nvidia-power-management.conf
View Dell G3 15 3590 Ubuntu 20.04 Fingerprint

Execute these lines:

sudo sh -c 'cat > /etc/apt/sources.list.d/focal-dell.list << EOF
deb focal-dell public
deb focal-oem public
deb focal-somerville public
deb focal-somerville-melisa public
sudo apt-key adv --keyserver --recv-keys F9FDA6BED73CDC22
ashwinvis /
Last active July 7, 2020 05:22
GitHub Retro
mouse-reeve /
Last active April 22, 2022 06:33
Fizzbuzz via
''' we're solving fizzbuzz with a little help from the web '''
from html.parser import HTMLParser
from urllib.request import Request, urlopen
import re
import time
base_url = ''
tag_name = 'div'
class_name = 'answer-body'
delimiter = '_'
nathanborror / instructions.txt
Last active May 17, 2023 00:55
Example Kubernetes setup with Postgres and two Services for serving an API and a static site using Ingress. Also have a CronJob example for kicks.
View instructions.txt
*** Cluster Setup for Google Container Engine ***
0/ Install and configure local gcloud and kubectl:
> gcloud components install kubectl
1/ Configure Google Cloud account:
> gcloud config set account YOUR_EMAIL_ADDRESS
> gcloud config set project YOUR_PROJECT_ID
> gcloud config set compute/zone us-west1-a
> gcloud config set container/cluster example
View CubeMesh.cs
using UnityEngine;
using System.Collections.Generic;
[RequireComponent(typeof (MeshFilter))]
[RequireComponent(typeof (MeshRenderer))]
public class MeshGenerator : MonoBehaviour {
void Start () {
CreateCube ();
ainsofs / gist:2b80771a5582b7528d9e
Created April 16, 2015 01:50
Clear .gitignore cache
View gist:2b80771a5582b7528d9e
# remove specific file from git cache
git rm --cached filename
# remove all files from git cache
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
mobilemind /
Last active July 15, 2023 05:43
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName