Skip to main content


Showing posts from July, 2018

netctl wifi-menu

#! /bin/bash . /usr/lib/netctl/globals . "$SUBR_DIR/interface" . "$SUBR_DIR/rfkill" . "$SUBR_DIR/wpa" usage() {     cat << END Usage: wifi-menu [-h | --help] [-o | --obscure] [INTERFACE] Interactively connect to a wireless network on INTERFACE using netctl. If only one wireless interface is available, INTERFACE can be omitted. Arguments:   -h, --help     Show this help   -o, --obscure  Show asterisks for the characters of the password                  and store the password as a hexadecimal string END } # Undo printf escaping in $1 printf_decode() {     printf -- "${1//%/%%}" } # Prepare $1 for use in a special quoting context quote_safe() {     if [[ "$1" = \"* ]]; then         printf '""%s"' "$1"     else         printf "%s" "$1"     fi } # Fill PROFILES and ESSIDS with the profile names and essids and fill GENERATED # with the names of automatically generated profiles f

linux-lts kernel config gentoo make localmodconfig   for newer than 4.14.16-1 make olddefconfig   make menuconfig #verify settings make && make modules_install make install  

np script

क ख ग घ ङ च छ ज झ ञ ट ठ ड ढ ण त थ द ध न प फ ब भ म य र ल ळ व ह श ष स ऱ  अ आ इ ई उ ऊ  ऋ ॠ ऌ ॡ ए ऐ ओ औ ऍ ऑ ऎ ऒ ० १ २ ३ ४ ५ ६ ७ ८ ९

xterm config xresources

! XTERM ----------------------------------------------------------------------- XTerm*locale: true XTerm*termName:        xterm-256color XTerm*internalBorder:        0 XTerm*loginShell:         true XTerm*scrollBar:         false !XTerm*rightScrollBar: true XTerm*scrollKey: true XTerm*scrollTtyOutput: false XTerm*cursorBlink:       true !XTerm*geometry:         80x26 XTerm*saveLines:         65535 XTerm*dynamicColors:        on XTerm*highlightSelection: true ! Appearance XTerm*utf8:            2 XTerm*eightBitInput:   true XTerm*metaSendsEscape: true XTerm*font:        -xos4-terminus-medium-r-*-*-18-*-*-*-*-*-iso10646-* XTerm*boldFont:    -xos4-terminus-bold-r-*-*-18-*-*-*-*-*-iso10646-* XTerm*cursorColor: #DCDCCC ! Zenburn XTerm*background:  #3f3f3f XTerm*foreground:  #dcdccc XTerm*color0:      #1E2320 XTerm*color1:      #705050 XTerm*color2:      #60b48a XTerm*color3:      #dfaf8f XTerm*color4:      #506070 XTerm*color5:      #dc8cc3 XTerm*color6:     

pcmanfm not authorized

    /etc/polkit-1/rules.d/00-mount-internal.rules   ------------------------------------------------------------------------------- polkit.addRule(function(action, subject) { if (( == "org.freedesktop.udisks2.filesystem-mount-system" && subject.local && && subject.isInGroup("storage"))) { return polkit.Result.YES; } });    -------------------------------------------------------------------------------  usermod -aG storage username

acpid brightness handler

sudo pacman -S acpid sudo systemctl enable acpid check ls /sys/class/backlight/ to confirm  bl_dev=/sys/class/backlight/intel_backlight/ sudo leafpad  /etc/acpi/handlers/bl ------------------------------------------------------------------------------------------------------------- #!/bin/sh bl_dev=/sys/class/backlight/intel_backlight/ step=1 case $1 in   -) echo $(($(< $bl_dev/brightness) - $step)) >$bl_dev/brightness;;   +) echo $(($(< $bl_dev/brightness) + $step)) >$bl_dev/brightness;; esac chmod +x /etc/acpi/handlers/bl  -------------------------------------------------------------------------------------------------------------   sudo leafpad  /etc/acpi/events/bl_d event=video/brightnessdown action=/etc/acpi/handlers/bl -  -------------------------------------------------------------------------------------------------------------   sudo leafpad  /etc/acpi/events/bl_u event=video/brightnessup action=/etc/acpi/handlers/bl +  ---------------------------


file filename.out name.bin file command gives info about file readelf it gives structure of elf file example readelf  -a file.bin

dot -o //graphviz

digraph G {         rankdir=LR     splines=line                 node [fixedsize=true, label=""];         subgraph cluster_0 {         color=white;         node [style=solid,color=blue4, shape=circle];         x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15;         label = "layer 1 (Input layer)";     }     subgraph cluster_1 {         color=white;         node [style=solid,color=red2, shape=circle];         a12 a22 a32 a42 a52 a62 a72 a82 ;         label = "layer 2 (hidden layer)";     }         subgraph cluster_2 {         color=white;         node [style=solid,color=red2, shape=circle];         b13 b23 b33 b43 b53 b63 b73 b83 ;         label = "layer 3 (hidden layer)";     }     subgraph cluster_3 {         color=white;         node [style=solid,color=red2, shape=circle];         c14 c24 c34 c44 c54 c64 c74 c84 ;         label = "layer 4 (hidden layer)";     }     subgraph cluster_4 {         color=white;         node [style=soli