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
@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)