Skip to content

Instantly share code, notes, and snippets.

View Awan's full-sized avatar
🇵🇰

Muhammad Abdullah Khabir Awan

🇵🇰
View GitHub Profile
@Awan
Awan / google-dns.md
Created February 21, 2024 02:41
Windows DNS probe failed solution

windows DNS probe failed

So if you're having Windows DNS probe failed issue, you can use this gist to set google DNS.

Open powershell as system administrator:

and run these commands:

@Awan
Awan / k8s
Last active July 7, 2023 01:45
kubernetes basic commands
## List environments
kubectl exec $pod -- env
## Run bash interactive shell inside some pod
kubectl exec -ti $pod -- bash
## Services
@Awan
Awan / configuration.nix
Created July 18, 2022 15:02
Configuration file for my NixOS
# My configuration file for NixOS
{ config, pkgs, ... }:
{
imports =
[ # Include hardware results
./hardware-configuration.nix
];
@Awan
Awan / privileges_escalations.sh
Last active January 16, 2021 20:04
A gist explaining linux capability privileges escalations
#!/bin/sh
# shellcheck disable=2034
coded_by='
In the name of Allah, the most Gracious, the most Merciful.
▓▓▓▓▓▓▓▓▓▓
░▓ Author ▓ Abdullah <https://abdullah.today>
░▓▓▓▓▓▓▓▓▓▓ YouTube <https://YouTube.com/AbdullahToday>
@Awan
Awan / deploy.sh
Created April 1, 2020 17:40
A deploy script to push your changes to github.
#!/bin/sh
coded_by='
In the name of Allah, the most Gracious, the most Merciful.
▓▓▓▓▓▓▓▓▓▓
░▓ Author ▓ Abdullah <https://abdullah.today>
░▓▓▓▓▓▓▓▓▓▓
░░░░░░░░░░
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 5.1.8 Kernel Configuration
#
#
# Compiler: gcc (Debian 8.3.0-6) 8.3.0
#
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=80300
@Awan
Awan / termite-on-debian
Created May 14, 2019 00:09
Install termite on debian
sudo apt-get install -y \
git \
g++ \
libgtk-3-dev \
gtk-doc-tools \
gnutls-bin \
valac \
intltool \
libpcre2-dev \
libglib3.0-cil-dev \
#!/usr/bin/env python3
import subprocess
import os
import argparse
prs = argparse.ArgumentParser()
prs.add_argument('-i', '--install', action='store_true')
prs.add_argument('-r', '--remove', action='store_true')
prs.add_argument('-u', '--update', action='store_true')