User Tools

Site Tools


start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
start [2021/02/24 14:53]
admin [* Disk Management]
start [2024/01/06 20:29] (current)
admin [* Android]
Line 18: Line 18:
   * [[docu:csheet:sysadm:db:my:57_date_problem|How to fix 5.7 datetime field problems on dump/restore]]   * [[docu:csheet:sysadm:db:my:57_date_problem|How to fix 5.7 datetime field problems on dump/restore]]
   * [[docu:csheet:sysadm:db:my:restore_1table|Restore 1 table from a Database dump]]   * [[docu:csheet:sysadm:db:my:restore_1table|Restore 1 table from a Database dump]]
 +  * [[docu:csheet:sysadm:db:my:docker_run_easy|Automatically run a mysql interactive shell to the configured db on docker]]
 +  * [[docu:csheet:sysadm:db:my:database_migration_help|Helping commands when migrating MySQL databases to different servers]]
  
 ==== + :::: Postgres SQL ==== ==== + :::: Postgres SQL ====
Line 35: Line 37:
   * [[docu:csheet:sysadm:venv:qemu:proxmox_add_uso|Add an ISO to your proxmox installation on the server via SSH]]   * [[docu:csheet:sysadm:venv:qemu:proxmox_add_uso|Add an ISO to your proxmox installation on the server via SSH]]
   * [[docu:csheet:sysadm:venv:qemu:proxmox_local_pool|Crear a local directory storage pool on Proxmox (ex: sshfs or other)]]   * [[docu:csheet:sysadm:venv:qemu:proxmox_local_pool|Crear a local directory storage pool on Proxmox (ex: sshfs or other)]]
 +  * [[docu:csheet:sysadm:venv:qemu:proxmox_nested_vm|Nest virtual machines on Proxmox]] 
  
 ==== + :::: Docker ==== ==== + :::: Docker ====
Line 49: Line 52:
  
 ==== + :::: Applications ==== ==== + :::: Applications ====
 +  * Nextcloud
 +    * [[docu:csheet:sysadm:web:apps:nextcloud:export_import_config|Export and import Nextcloud App configuration]]
   * WordPress   * WordPress
     * [[docu:csheet:sysadm:web:apps:wordpress:ssl_termination|How to configure WordPress behind SSL Reverse Proxy]]     * [[docu:csheet:sysadm:web:apps:wordpress:ssl_termination|How to configure WordPress behind SSL Reverse Proxy]]
Line 77: Line 82:
   * [[docu:csheet:sysadm:script:bash:hex_convertions|Convertions and replacements on Linux command line using hex]]   * [[docu:csheet:sysadm:script:bash:hex_convertions|Convertions and replacements on Linux command line using hex]]
   * [[docu:csheet:sysadm:script:bash:wget_all_website|Download/Get/Scrap/Crawl all static files from website using Wget]]   * [[docu:csheet:sysadm:script:bash:wget_all_website|Download/Get/Scrap/Crawl all static files from website using Wget]]
 +
 +==== + :::: Git ====
 +
 +  * [[docu:csheet:sysadm:script:git:merge_upstream|Merge the upstream of your fork automatically]]
 +  * [[docu:csheet:sysadm:script:git:copy_branch|Copy branch from a remote to another remote]]
 +  * [[docu:csheet:sysadm:script:git:delete_branch|Delete branch from both local and remote]]
 +  * [[docu:csheet:sysadm:script:git:changes_directory|Show files changed history and commits in an specific directory]]
  
 ==== + :::: Python ==== ==== + :::: Python ====
  
 +  * [[docu:csheet:sysadm:script:python:html_scraping|Simple guide for HTML Web Scraping]]
   * [[docu:csheet:sysadm:script:python:argparse|How to use argparse on python3]]   * [[docu:csheet:sysadm:script:python:argparse|How to use argparse on python3]]
   * [[docu:csheet:sysadm:script:python:read_csv|Read a CSV file to JSON, using the first rows as field names definition]]   * [[docu:csheet:sysadm:script:python:read_csv|Read a CSV file to JSON, using the first rows as field names definition]]
 +  * [[docu:csheet:sysadm:script:python:sort_by_key|Sort an Array by a key value]]
 ==== + :::: CURL ==== ==== + :::: CURL ====
  
   * [[docu:chseet:sysadm:script:curl:http_auth|curl a site with http basic auth]]   * [[docu:chseet:sysadm:script:curl:http_auth|curl a site with http basic auth]]
 +
 +==== + :::: HTML/CSS ====
 +
 +  * [[docu:csheet:sysadm:htmlcss:fix_background|Fix Mobile parallax effect when setting a background image to the full document]]
  
 ==== + :::: Javascript ==== ==== + :::: Javascript ====
  
   * [[docu:csheet:code:js:element_by_xpath|Get an element on the HTML document by XPath]]   * [[docu:csheet:code:js:element_by_xpath|Get an element on the HTML document by XPath]]
 +  * [[docu:csheet:code:js:freeze_site_for_editing|Freeze the state of a website to be able to edit popups]]
  
 \\ \\
Line 102: Line 120:
  
   * [[docu:csheet:sysadm:desktop:i3wm:keyboard_layout|Set keyboard layout on i3]]   * [[docu:csheet:sysadm:desktop:i3wm:keyboard_layout|Set keyboard layout on i3]]
 +
 +==== + :::: Printers/Printing ====
 +
 +  * [[docu:csheet:sysadm:desktop:print:setup_printing|Setup printing tools in your Debian-based Linux (if it doesn't have them)]]
 +==== + :::: PulseAudio ====
 +
 +  * [[docu:csheet:sysadm:desktop:pulseaudio:forward_pulseaudio_ssh|Forward Audio from a remote server to your host, using PulseAudio]]
  
 \\ \\
Line 107: Line 132:
  
   * [[docu:csheet:sysadm:init:common_ifnames|Set friendly network interface names]]   * [[docu:csheet:sysadm:init:common_ifnames|Set friendly network interface names]]
 +  * [[docu:csheet:sysadm:init:switch_kernel|Change the grub menu item using update-grub (Switching kernels)]]
  
 \\ \\
Line 112: Line 138:
  
   * [[docu:csheet:misc:rpi_unzip_dd|Unzip raspberry pi OS to an sdcard (or disk) using unzip and dd]]   * [[docu:csheet:misc:rpi_unzip_dd|Unzip raspberry pi OS to an sdcard (or disk) using unzip and dd]]
 +  * [[docu:csheet:sysadm:disks:mount_gz_image|Mount a .gz compressed image file using nbdkit and nbd-client (read-only)]]
   * [[docu:csheet:sysadm:disks:luks_change_key|Change passphrase on LUKS full encrypted disk/partition]]   * [[docu:csheet:sysadm:disks:luks_change_key|Change passphrase on LUKS full encrypted disk/partition]]
   * [[docu:csheet:sysadm:disks:t2fs_reserved|Remove reserved blocks from an ext4 partition]]   * [[docu:csheet:sysadm:disks:t2fs_reserved|Remove reserved blocks from an ext4 partition]]
Line 121: Line 148:
   * [[docu:csheet:sysadm:disks:clone_partition_table|Export and clone partition table from 1 disk to another]]   * [[docu:csheet:sysadm:disks:clone_partition_table|Export and clone partition table from 1 disk to another]]
   * [[docu:csheet:sysadm:disks:lvm_backup_restore|Backup and restore LVM configuration of a volume group (vg)]]   * [[docu:csheet:sysadm:disks:lvm_backup_restore|Backup and restore LVM configuration of a volume group (vg)]]
-  * [[docu:csheet:sysadm:disks:physical_disk_resize|Resize virtual disk (vdX) to match it's new size]]+  * [[docu:csheet:sysadm:disks:physical_disk_resize|Resize virtual disk (vdX) to match it's new size (growpart, resize2fs)]]
   * [[docu:csheet:sysadm:disks:uuid_set_device|Manually set UUID of Linux swap/ext partition using cli]]   * [[docu:csheet:sysadm:disks:uuid_set_device|Manually set UUID of Linux swap/ext partition using cli]]
 +  * [[docu:csheet:sysadm:disks:iscsi_update_targets|Update ISCSI target list from a certain ISCSI host]]
 +  * [[docu:csheet:sysadm:disks:img_mount_loop|Mount .img partitions to separate loops so you can mount any partition inside image]]
 +  * [[docu:csheet:sysadm:disks:get_hw_info|Show hardware information of system disks (manufacturer, etc...)]]
 +  * [[docu:csheet:sysadm:disks:shred_ssd|Securely erase an SSD with hdparm]]
 +
 +==== + :::: Privacy ====
 +
 +  * [[docu:csheet:sysadm:disks:privacy:wipe_disk|Wipe a disk entirely (for privacy) using shred]]
  
 \\ \\
Line 138: Line 173:
     * [[docu:csheet:net:firewall:syn_flooding|Protect your *nix server from SYN flooding]]     * [[docu:csheet:net:firewall:syn_flooding|Protect your *nix server from SYN flooding]]
     * [[docu:csheet:net:iptables:block_packets_by_content|Block TCP/UDP packets by string content using iptables]]     * [[docu:csheet:net:iptables:block_packets_by_content|Block TCP/UDP packets by string content using iptables]]
 +    * [[docu:csheet:net:iptables:accept_multicast_broadcast|Accept Multicast and Broadcast packets on iptables]]
  
 ==== + :::: Relays/Proxies ==== ==== + :::: Relays/Proxies ====
     * [[docu:csheet:net:relays:socat_usage|Curated practical uses for socat, a whole TCP/UDP/UNIXSOCK relay tool]]     * [[docu:csheet:net:relays:socat_usage|Curated practical uses for socat, a whole TCP/UDP/UNIXSOCK relay tool]]
 +    * [[docu:csheet:net:relays:vpn_wireguard_vps|Setup a Wireguard VPN on your VPS to your local network (even with CG NAT)]]
  
 ==== + :::: Misc ==== ==== + :::: Misc ====
 +    * [[docu:csheet:net:misc:networking_install|Install ifupdown for "networking" service instead of network-manager or any other]]
     * [[docu:csheet:net:misc:ipforwarding|Enable/disable ip forwarding]]     * [[docu:csheet:net:misc:ipforwarding|Enable/disable ip forwarding]]
     * [[docu:csheet:net:misc:switch_back2_interfaces|Disable netplan on Ubuntu to switch back to network iterfaces /etc/network/interfaces]]     * [[docu:csheet:net:misc:switch_back2_interfaces|Disable netplan on Ubuntu to switch back to network iterfaces /etc/network/interfaces]]
Line 152: Line 190:
 ==== + :::: SSL/TLS ==== ==== + :::: SSL/TLS ====
  
 +  * [[docu:csheet:dtproc:ssl:renew_verify|Renew certificates manually and verify chain elements]]
   * [[docu:csheet:dtproc:ssl:end_date|Get end-date from .pem encoded file with openssl]]   * [[docu:csheet:dtproc:ssl:end_date|Get end-date from .pem encoded file with openssl]]
   * [[docu:csheet:dtproc:ssl:ssl_chain|Obtain SSL chain certificates and information about website with openssl]]   * [[docu:csheet:dtproc:ssl:ssl_chain|Obtain SSL chain certificates and information about website with openssl]]
Line 160: Line 199:
   * [[docu:csheet:dtproc:images:jpeg_optimize|Optimize JPG/JPEG images]]   * [[docu:csheet:dtproc:images:jpeg_optimize|Optimize JPG/JPEG images]]
   * [[docu:csheet:dtproc:images:qr_code_parsing|Encode/Decode QR Code Images to the text value]]   * [[docu:csheet:dtproc:images:qr_code_parsing|Encode/Decode QR Code Images to the text value]]
 +  * [[docu:csheet:dtproc:images:convert_png_svg|Convert PNG image to SVG on Linux]]
  
 ==== + :::: Documents ==== ==== + :::: Documents ====
Line 174: Line 214:
   * [[docu:csheet:sysadm:files:targz_list|Show contents of a tar.gz file]]   * [[docu:csheet:sysadm:files:targz_list|Show contents of a tar.gz file]]
   * [[docu:csheet:sysadm:files:compress_vids|Insanely Compress videos using ffmpeg]]   * [[docu:csheet:sysadm:files:compress_vids|Insanely Compress videos using ffmpeg]]
 +  * [[docu:csheet:sysadm:files:share_ffmpeg_stream|Share an ffmpeg stream over tcp with netcat]]
   * [[docu:csheet:sysadm:files:cut_vids|Cut/split videos using ffmpeg]]   * [[docu:csheet:sysadm:files:cut_vids|Cut/split videos using ffmpeg]]
   * [[docu:csheet:sysadm:files:ffmpeg_separate_join_audio_video|Separate and join again the audio and video from a file using ffmpeg]]   * [[docu:csheet:sysadm:files:ffmpeg_separate_join_audio_video|Separate and join again the audio and video from a file using ffmpeg]]
Line 193: Line 234:
   * [[docu:csheet:ofsec:pcap|Dumpcap common snippets]]   * [[docu:csheet:ofsec:pcap|Dumpcap common snippets]]
   * [[docu:csheet:ofsec:wshark_live_cap_ssh|Capture live packets from server using Wireshark and SSH tunnel]]   * [[docu:csheet:ofsec:wshark_live_cap_ssh|Capture live packets from server using Wireshark and SSH tunnel]]
 +  * [[docu:csheet:ofsec:wshark_tls_client_hello|Filter tls client hello on Wireshark]]
 ==== + :::: Hacking & Cracking ==== ==== + :::: Hacking & Cracking ====
  
Line 211: Line 252:
     * [[docu:csheet:ofsec:priv:video_metadata|Remove all metadata from ANY video file using ffmpeg]]     * [[docu:csheet:ofsec:priv:video_metadata|Remove all metadata from ANY video file using ffmpeg]]
     * [[docu:csheet:ofsec:priv:verify_gpg|Verify files with GPG signatures (example: TorBrowser)]]     * [[docu:csheet:ofsec:priv:verify_gpg|Verify files with GPG signatures (example: TorBrowser)]]
 +
 +\\
 +\\
 +
 +====== Applications ======
 +\\
 +
 +===== * GNU Linux =====
 +
 +  * [[docu:tutos:apps:linux:ncmpcpp|How to use NCMPCPP (MPD console client)]]
 +  * [[docu:tutos:apps:linux:tmux|How to use Tmux (+some cheatsheets)]]
  
 \\ \\
Line 221: Line 273:
  
   * [[docu:tutos:android:adb_tcp_forwarding|Forwarding adb over TCP/IP]]   * [[docu:tutos:android:adb_tcp_forwarding|Forwarding adb over TCP/IP]]
 +  * [[docu:tutos:android:adb_root_reverse_shell_openssl|Spawn a usable root shell on your Android, without su, using "ADB as Root" developer option with and Termux with openssl]]
  
 \\ \\
start.1614178424.txt.gz · Last modified: 2021/02/24 14:53 by admin