Search
You can find the results of your search below.
Matching pagenames:
Fulltext results:
- zsh
- ====== Z shell ====== ===== keys ===== * CTRL + U: this will clear the entire line ===== install ===== <code> sudo apt install -y zsh </code> <code> sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" chsh -s $(which zsh) </
- lxd
- etwork sudo lxd init </code> Because group membership is only applied at login, you then either need ... er session or use the "newgrp lxd" command in the shell you're going to interact with lxd from <code> newgrp lxd </code> <file bash lxc-prepare (chmod +x)> #!/bin/bash NAME=$1 ALIAS=$2 ALIAS=${ALIAS:=xenial} lxc image show $ALIAS >
- locale @tips:ubuntu
- ====== post install for servers ====== <code bash> apt install -y curl && \ curl -s "http://wiki.csga... buntu:locale?do=export_code&codeblock=1" | /bin/bash </code> <file bash script> apt remove -y unattended-upgrades locale-gen it_IT.UTF-8 locale-gen en_U... =2 sts=2 sw=2 expandtab set paste set mouse=r set showcmd " Show (partial) command in status line. se
- ssl
- T=sso.csgalileo.org echo quit | openssl s_client -showcerts -servername "$API_HOST" -connect "$API_HOS... -hook = systemctl reload nginx </code> ===== acme.sh integration for letsencrypt ===== On host that has apache/nginx install acme.sh <code bash> wget -O - https://get.acme.sh | sh . ~/.bashrc # now /root/.acme.sh/acme.sh.env is aval
- xenial @tips:ubuntu
- dd if=xenial-copy.iso of=/dev/sd? </code> ===== ssh ===== See https://www.gentoo.org/support/news-items/2015-08-13-openssh-weak-keys.html Re-enable ssh-dss key in /etc/ssh/sshd_config <code> PubkeyAcceptedKeyTypes=+ssh-dss </code> ~/.ssh/config <code>
- git
- tty=format:\"%h %ad | %s%d [%an]\" --graph --date=short type = cat-file -t dump = cat-file -p [push] default = simple [color] ui = auto </file> ===== New repo ===== <code bash> NAME=project.git mkdir $NAME cd $NAME git init -... -info </code> ===== change origin ===== <code bash> git remote -v </code> <code bash> git remote se
- zfs
- {{tag>[zfs libvirt]}} ====== ZFS ====== <code bash> apt install zfsutils-linux </code> <code> sudo ... reate zfs filesystem zfs create rpool/libvirt virsh pool-define-as --name zfspool --source-name rpool/libvirt --type zfs virsh pool-start zfspool virsh pool-autostart zfspool </code> create volume (not possibile in virt-manager
- zfs-on-root @tips:ubuntu
- FS ===== Livecd ===== boot live cd and <code bash> sudo su passwd ubuntu apt-add-repository universe apt update apt install openssh-server # connect from another PC via ssh </code> <code> apt install --yes debootstrap gdisk zfs-init... t1:BF01 $DISK </code> Create pool or ... <code bash> zpool create -o ashift=12 \ -O atime=off -
- adb @tips:android
- ====== Android ====== {{tag>[android]}} <code bash> apt-get install android-tools-fastboot apt-get in... ls-adb </code> ===== network mode ===== <code bash> adb -d tcpip 5555 adb connect <ip> </code> ====== Packages ====== ===== Install ===== <code bash> adb install <file.apk> </code> ===== Pull package ===== Getting list of packages <code bash> adb shell pm list packages </code> <code bash>
- otp
- 1) $ export HEX_SECRET=$(head -15 /dev/urandom | sha1sum | cut -b 1-30) 2) $ oathtool --verbose --t... ryone else - : ALL : ALL 7) editare /etc/pam.d/sshd (per la versione con publickey andare al capitol... h.so usersfile=/etc/users.oath 8) editare /etc/ssh/sshd_config e abilitare "ChallengeResponseAuthentication" ChallengeResponseAuthentication yes 9) ri
- kinectv2 @tips:sensors
- {idProduct}=="02d9", MODE="0666" </code> <code bash> sudo udevadm control --reload </code> On Ubuntu... dd usbcore.autosuspend=-1 to grub options <code bash> # check with grep . /sys/bus/usb/devices/*/power... st Controller </code> ===== OpenCL ===== <code bash> sudo apt-get install beignet beignet-dev opencl-... /kinect-v2-with-libfreenect2/|...leggi]] <code bash> git clone https://github.com/xlz/libfreenect2.gi
- telegram
- self signed <code> openssl req -newkey rsa:2048 -sha256 -nodes -keyout key.pem -x509 -days 365 -out c... /bot${TOKEN}/getUpdates (negative number) <code bash> TOKEN= curl https://api.telegram.org/bot${TOKEN}... | jq . </code> Send a message to group <code bash> TOKEN= CHATID= curl -X POST "https://api.telegra... acy" of BOT ==== curl ==== send message <code bash> #/bin/sh API="112212222:XXX..." CHATID=123456 T
- atom
- ===== /usr/local/bin/atom-update <code> #!/bin/bash wget -q https://github.com/atom/atom/releases... ps://github.com/$LATEST" -O /tmp/atom-amd64.deb --show-progress dpkg -i /tmp/atom-amd64.deb echo... l \ symbols-tree-view \ merge-conflicts \ todo-show \ auto-detect-indentation \ jumpy \ autocomplete-python \ </code> show installed packages <code> apm list --installed
- autofs
- ====== autofs ====== <code bash> sudo apt install autofs sudo mkdir /etc/auto.master.d/ </code> ====... ng ===== stop service and run foreground <code bash> systemctl stop autofs sudo automount -f -v </code> ===== sshfs ===== <code bash> sudo apt install sshfs </code> autofs use root account and ssh key has to be pr
- tmux
- : scroll mode ===== sessions ===== list <code bash> tmux ls </code> attach <code bash> tmux a [-t name] </code> kill detached <code bash> tmux kill-server </code> ===== script ===== <code bash> tmux -2 new-session -d -s wega -n 'all' 'make ru