Skip to content

Instantly share code, notes, and snippets.

View asifZaman0362's full-sized avatar
🏠
Working from home

Asif Zaman asifZaman0362

🏠
Working from home
  • None
  • Assam, India
View GitHub Profile
HISTFILE=~/.histfile
HISTSIZE=100
SAVEHIST=true
setopt autocd
bindkey -e
bindkey -v '^?' backward-delete-char
zstyle :compinstall filename '$HOME/.zshrc'
autoload -Uz compinit
compinit
# : << EOF
# https://github.com/gpakosz/.tmux
# (‑●‑●)> dual licensed under the WTFPL v2 license and the MIT license,
# without any warranty.
# Copyright 2012— Gregory Pakosz (@gpakosz).
# -- session creation ----------------------------------------------------------
# prompt for session name when creating a new session, possible values are:
@asifZaman0362
asifZaman0362 / sources.nix
Created February 15, 2023 19:40
Custom source for some of the packages in the main configuration
{ pkgs ? import <nixpkgs> {} }:
let
dwm = pkgs.fetchFromGitHub {
owner = "asifZaman0362";
repo = "dwm";
rev = "master";
};
in
{
@asifZaman0362
asifZaman0362 / config.nix
Created February 15, 2023 19:39
NixOS config generated by chatGPT
{ config, pkgs, ... }: {
imports = [
"${modulesPath}/installer/cd-dvd/installation-cd-minimal.nix"
];
# use the latest Linux kernel
boot.kernelPackages = pkgs.linuxPackages_latest;
# Needed for https://github.com/NixOS/nixpkgs/issues/58959
boot.supportedFilesystems = lib.mkForce [ "btrfs" "reiserfs" "vfat" "f2fs" "xfs" "ntfs" "cifs" ];
/^(?:(?:https?|ftp):\/\/)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:\/\S*)?$/;
*background: #1d2021
*foreground: #d4be98
*color0: #1d2021
*color8: #928374
*color7: #a89984
*color15: #ebdbb2
*color6: #689d6a
*color14: #8ec07c
*color5: #b16286
*color13: #d3869b
# This file contains fish universal variable definitions.
# VERSION: 3.0
SETUVAR __fish_initialized:3100
SETUVAR fish_color_autosuggestion:747369
SETUVAR fish_color_cancel:\x2dr
SETUVAR fish_color_command:99cc99
SETUVAR fish_color_comment:ffcc66
SETUVAR fish_color_cwd:green
SETUVAR fish_color_cwd_root:red
@asifZaman0362
asifZaman0362 / client.py
Created September 1, 2021 11:53 — forked from caspian311/client.py
Simple client-service dbus example in python.
#!/usr/bin/env python
import dbus
class Client():
def __init__(self):
bus = dbus.SessionBus()
service = bus.get_object('com.example.service', "/com/example/service")
self._message = service.get_dbus_method('get_message', 'com.example.service.Message')
self._quit = service.get_dbus_method('quit', 'com.example.service.Quit')
@asifZaman0362
asifZaman0362 / ssh_agent_start.fish
Created August 28, 2021 16:03 — forked from gerbsen/ssh_agent_start.fish
Auto-launching ssh-agent in fish shell
# content has to be in .config/fish/config.fish
# if it does not exist, create the file
setenv SSH_ENV $HOME/.ssh/environment
function start_agent
echo "Initializing new SSH agent ..."
ssh-agent -c | sed 's/^echo/#echo/' > $SSH_ENV
echo "succeeded"
chmod 600 $SSH_ENV
. $SSH_ENV > /dev/null
@asifZaman0362
asifZaman0362 / .vimrc
Created July 18, 2020 14:45 — forked from rocarvaj/.vimrc
Minimal .vimrc for C/C++ developers
" VIM Configuration File
" Description: Optimized for C/C++ development, but useful also for other things.
" Author: Gerhard Gappmeier
"
" set UTF-8 encoding
set enc=utf-8
set fenc=utf-8
set termencoding=utf-8
" disable vi compatibility (emulation of old bugs)