Debian

BEAUTY AND PLAY

  • HOME
  • GITHUB
  • SOURCES
  • LEGAL
  • A bash builtin command named “enable” to enable or disable a bash builtin command

    [bash light=”true”] $command $echo $? 0 $enable -n command $command bash: command: command not found $echo $? 127 $enable command $command $enable -n enable $enable bash: enable: command not found $ [/bash] RELATED SOURCE CODE EXPOSURE [c light=”true”] /* Enable/disable shell commands present in LIST. If list is not specified, then print out a list […]

    Jeffrin Jose T

    22 Nov 2018
    Bash, Bash, Bash Builtin, Programming Languages
    bash, Bash Builtin, builtin, enable
  • Get the hang of dbus-monitor command from dbus debian package

    [bash light=”true”] $dbus-monitor –session –profile | tee dbus-monitor-profile.txt #type timestamp serial sender destination path interface member # in_reply_to sig 1542567372.723960 2 org.freedesktop.DBus :1.3693 /org/freedesktop/DBus org.freedesktop.DBus NameAcquired sig 1542567372.723980 4 org.freedesktop.DBus :1.3693 /org/freedesktop/DBus org.freedesktop.DBus NameLost sig 1542567373.088315 5 org.freedesktop.DBus :1.3692 /org/freedesktop/DBus org.freedesktop.DBus NameLost sig 1542567373.088350 3737 org.freedesktop.DBus <none> /org/freedesktop/DBus org.freedesktop.DBus NameOwnerChanged sig 1542567373.088364 6 org.freedesktop.DBus :1.3692 […]

    Jeffrin Jose T

    18 Nov 2018
    IPC
    dbus, dbus-monitor
  • Learning D-Bus

    https://www.freedesktop.org/wiki/Software/dbus/ https://www.freedesktop.org/wiki/IntroductionToDBus/ https://www.packtpub.com/mapt/book/application_development/9781849519427/10/ch10lvl1sec126/time-for-action–listening-to-d-bus https://dbus.freedesktop.org/doc/dbus-specification.html https://stackoverflow.com/questions/2830858/controlling-gnome-volume-using-dbus https://dbus.freedesktop.org/doc/dbus-tutorial.html#concepts https://dbus.freedesktop.org/doc/diagram.svg https://developer.gnome.org/NetworkManager/stable/spec.html https://developer.gnome.org/NetworkManager/stable/gdbus-org.freedesktop.NetworkManager.html http://www.beautifulwork.org/wp-content/uploads/2018/11/dbus.pdf http://www.beautifulwork.org/wp-content/uploads/2018/11/dbus.docx

    Jeffrin Jose T

    8 Nov 2018
    Learning
    d-bus
  • Meaning of a function wrapper in python exposure

    http://wiki.c2.com/?FunctionWrapper https://wiki.python.org/moin/FunctionWrappers

    Jeffrin Jose T

    6 Nov 2018
    Function
    function, wrapper
  • a look into the bash builtin command named “disown”

    [bash light=”true”] $jobs -l $ping gnu.org PING gnu.org (208.118.235.148) 56(84) bytes of data. 64 bytes from wildebeest.gnu.org (208.118.235.148): icmp_seq=1 ttl=53 time=267 ms 64 bytes from wildebeest.gnu.org (208.118.235.148): icmp_seq=2 ttl=53 time=266 ms 64 bytes from wildebeest.gnu.org (208.118.235.148): icmp_seq=3 ttl=53 time=267 ms 64 bytes from wildebeest.gnu.org (208.118.235.148): icmp_seq=4 ttl=53 time=321 ms 64 bytes from wildebeest.gnu.org (208.118.235.148): icmp_seq=5 […]

    Jeffrin Jose T

    4 Nov 2018
    command, operating system
    disown, job
  • Hacking with Makefile for machine architecture detection

    # SPDX-License-Identifier: GPL-2.0 INCLUDEDIR := -I. CFLAGS := $(CFLAGS) $(INCLUDEDIR) -Wall -O2 -g TEST_GEN_FILES := adi-test UNAME := $(shell uname -m) all: $(TEST_GEN_FILES) $(TEST_GEN_FILES): adi-test.c ifeq ($(UNAME), sparc64) $(info Machine architecture does match) else $(info exit) $(error Machine architecture does not match) endif TEST_PROGS := drivers_test.sh include ../../lib.mk $(OUTPUT)/adi-test: adi-test.c

    Jeffrin Jose T

    1 Nov 2018
    Build, operating system
    architecture detection, Makefile, uname -m
  • Command for PHP information and configuration

    [php] $php –info phpinfo() PHP Version => 7.3.0RC3 System => Linux debian 4.17.0-3-amd64 #1 SMP Debian 4.17.17-1 (2018-08-18) x86_64 Build Date => Oct 15 2018 09:53:04 Server API => Command Line Interface Virtual Directory Support => disabled Configuration File (php.ini) Path => /etc/php/7.3/cli Loaded Configuration File => /etc/php/7.3/cli/php.ini Scan this dir for additional .ini files […]

    Jeffrin Jose T

    16 Oct 2018
    command, PHP, Programming Languages
    info, PHP
  • Look into bash builtin command named typeset

    $typeset -n gree=55 bash: typeset: 55′: invalid variable name for name reference $typeset -n 55=gree bash: typeset:55=gree’: not a valid identifier$typeset -n gree=pwd$echo $gree $echo $pwd $typeset -n vary=$?bash: typeset: `0′: invalid variable name for name reference$typeset vary=$?$echo $vary1$echo $vary1$echo $?0$echo $vary1$echo varyvary$echo $vary1$echo $vary1$echo $?0$typeset vary=$?$echo $vary0$ $typeset hello $echo $hello $echo $? 0 […]

    Jeffrin Jose T

    7 Oct 2018
    Bash, Bash Builtin
    typing, variable
  • How to use dirs, pushd and popd commands ?

    $pushd upstream-kernel/ ~/upstream-kernel ~ $pwd /home/jeffrin/upstream-kernel $cd .. $pushd temp/ ~/temp ~ ~ $dirs ~/temp ~ ~ $dirs -l /home/jeffrin/temp /home/jeffrin /home/jeffrin $pwd /home/jeffrin/temp $pushd ../upstream-kernel/ ~/upstream-kernel ~/temp ~ ~ $dirs -l /home/jeffrin/upstream-kernel /home/jeffrin/temp /home/jeffrin /home/jeffrin $pushd ../testing/ ~/testing ~/upstream-kernel ~/temp ~ ~ $dirs -l /home/jeffrin/testing /home/jeffrin/upstream-kernel /home/jeffrin/temp /home/jeffrin /home/jeffrin $popd ~/upstream-kernel ~/temp ~ ~ […]

    Jeffrin Jose T

    1 Oct 2018
    Bash, Bash Builtin
    dirs, popd, pushd
  • finding source code or source file of a typical bash function

    $type -a signals bash: type: signals: not found $type -a _signals _signals is a function _signals () { local -a sigs=($( compgen -P “$1” -A signal “SIG${cur#$1}” )); COMPREPLY+=(“${sigs[@]/#${1}SIG/${1}}”) } $declare -F _signals _signals $shopt -s extdebug $declare -F _signals _signals 862 /usr/share/bash-completion/bash_completion $declare -F _command _command 1732 /usr/share/bash-completion/bash_completion $declare -F compgen $declare -F _grub_dirs […]

    Jeffrin Jose T

    26 Sep 2018
    Bash, Bash
    function, shell
Previous Page
1 2 3 4 5 … 118
Next Page

Website Powered by WordPress.com.

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Follow Following
    • Debian
    • Already have a WordPress.com account? Log in now.
    • Debian
    • Edit Site
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar