├── btsync
├── SyncIgnore
└── btsync-synology-nas-command.txt
├── nmtui
└── nmtui.txt
├── php
├── phpinfo.php
├── auto_copyrightyear.php
├── bash.php
├── php_run_bash.php
├── redirect_url.php
├── escape_xml_tags.php
├── file.php
├── get_users_ip.php
└── set_contentype_for_xml.php
├── html
├── mailto.html
├── unordered_list.html
├── image_link.html
├── link_with_title.html
├── skype_link.html
├── iphone_dial.html
├── apple_touch_icon.html
├── favicon.html
├── rss_feed_include.html
├── utf-8 encoding meta tag.html
├── html_4.01_strict.html
├── ie_conditional_comments.html
├── xhtml_1.1_doctype.xhtml
├── html_4.01_frameset.html
├── html_4.01_transitional.html
├── xhtml_1_strict.xhtml
├── xhtml_1_frameset.xhtml
├── xhtml_1_transitional.xhtml
├── webp-fallback.html
├── safari 5 user agent string.html
├── meta_description.html
├── ul_filled_with_links.html
├── absolute_center_image.html
├── html5_figure_block.html
├── sticky_footer.html
├── html5_aside.html
├── html5_article.html
├── html5 video media queries.html
└── xhtml_page.xhtml
├── macosx
├── ruby
│ ├── ruby shabang.rb
│ └── ruby_upgrade.txt
├── sips
│ ├── sips_jpg.sh
│ ├── sips_pad_to_height.sh
│ ├── sips_crop.sh
│ └── sips_resample.sh
├── textutil
│ └── text_to_speech.sh
├── disable_quartine.txt
├── show_ipv6_address.sh
├── bless_hard_drive.txt
├── macbackup.sh
├── empty_the_trash.sh
├── get_mac_address.sh
├── osascript_bash_template.sh
├── redirect_create_new_file.sh
├── bash_check_ostype.sh
├── show_wifi_network.sh
├── touch_file_shortcut.sh
├── listallhardwareports.sh
├── apple_remote_events_sleep.txt
├── ds_store
│ ├── delete_ds_store.sh
│ └── dot_clean.sh
├── mac-install-from-anywhere.md
├── comm_compare_two_directories.sh
├── mac_ maintenance _script.sh
├── leopard_show_users_and_groups.txt
├── mac-ssh
│ └── config
├── reveal_open_firmwarepassword.py
├── kill_by_process.sh
├── set mtu size.txt
├── growl
│ └── growlnotify.sh
├── list_preferred_wireless_networks.sh
├── mac-nfs.md
├── quick_look.sh
├── box.net_webdav_settings.txt
├── google chrome security.txt
├── find_mac_osx_version_on_command_line.txt
├── unistall_xcode.sh
├── adblock_google_preview.txt
├── hosts
│ └── reload_hosts.sh
├── mail copy urls.txt
├── restart_a_filevault_encrypted_system.sh
├── list_most_used_terminal_commands.sh
├── directory
│ ├── directory.sh
│ └── directory_check.sh
├── apache
│ ├── apache_restart_mac_osx.sh
│ └── apachectl_commands.sh
├── Mac_osx_tcpdump.txt
├── textmate
│ ├── textmate_export_theme_as_css.txt
│ └── zen coding tab key.txt
├── lion
│ └── Lion wif file transfer fix.txt
├── show_os_version_from_command_line_(mac).sh
├── ngrep_install_macosx.sh
├── check_if_mac_is_64_bit.sh
├── mac_osx_open_command.sh
├── mail_from_the_command_line_mac_osx.sh
├── flush_dns.sh
├── mac set dns servers for a service.sh
├── open_firmware_override.txt
├── remove_dots.sh
├── vnc
│ └── lion_vnc_ssh_tunnel.sh
├── hide_username_in_login_window.txt
├── automator_from_the_command_line.sh
├── evernote
│ └── evernote_to_rtfd.sh
└── hacking
│ └── mac_osx_10.4_password_reset.sh
├── sox
├── sox-effects
│ ├── 2gain.txt
│ ├── 4cmp.txt
│ ├── 1ns.txt
│ └── 3eq.txt
├── sox-fifo-wav.sh
└── sox.sh
├── squid
├── video-ads.acl
├── squid-block-ip-address.sh
├── ERR_BLOCKED
└── squid-youtube.sh
├── bash
├── braces.sh
├── user-id.sh
├── 00_listargs.sh
├── core-audio.sh
├── printf_new_line.sh
├── while_read.sh
├── arguments.sh
├── file_exists.sh
├── loop.sh
├── rename_prefix.sh
├── backup.sh
├── unset-function.sh
├── file_exists2.sh
├── printf.sh
├── subroutine.sh
├── bash-url-decode.sh
├── echo_supress_new_line.sh
├── hello_world.sh
├── arguments-in-scripts.sh
├── file.sh
├── subroutine2.sh
├── bash_alias.sh
├── space_delimiter_with_cut_command.sh
├── symbolic_link.sh
├── count_loop.sh
├── speedtest.sh
├── colour_in_the_terminal.sh
├── fmt_paragrapghs.sh
├── read.sh
├── yanking-text.sh
├── rename_jpegs.sh
├── bashrc_default.sh
├── if.sh
├── uppercase-lowercase-in-terminal.sh
├── file-extension
├── getting_timestamp_into_bash_script.sh
├── pngcrush_for_compressing_images.sh
├── bash_script_template.sh
├── check-if-script-was-run-as-root.sh
├── Show_only_hidden_files.sh
├── remove_dots.sh
├── notify.sh
├── select.sh
├── printf_columns.sh
├── bash_arrays.sh
├── brackets.sh
├── check_exit_status_of_a_command.sh
├── arg.sh
├── unix_remove_non-empty_directory.sh
└── mount_webdav.sh
├── docker
├── apache
│ ├── apache-docker
│ │ └── Dockerfile
│ └── apache-docker.sh
├── docker-bash.sh
└── docker-registry
│ └── docker-registry-storage
│ └── Dockerfile
├── html5-video
└── html
│ ├── landscape.css
│ └── portrait.css
├── python
├── python-shebang.py
├── requests.md
├── python-markdown-install.sh
├── pip-uninstall-install.org
├── lxml-cssselect-install.md
└── python-decode-url.org
├── perl
├── hello-world.pl
├── perl-command-line.pl
└── strip_http_headers.pl
├── gollum-wiki
└── server
│ ├── cron.sh
│ ├── wiki-sync.sh
│ ├── users.yml
│ └── gollum-hook.txt
├── mpd
├── playlists
│ └── LBC973.m3u
└── mpd-smb-share.org
├── javascript
├── cookie-catcher
│ ├── js.js
│ └── inject-cookie.js
├── ipad iphone prevent default scroll.js
├── ipad prevent default scroll.js
└── fadein.js
├── pandoc
├── metadata.yaml
├── pandoc-webclipper
│ ├── mimeinfo.cache
│ ├── pandoc-protocol.desktop
│ └── pandoc-bookmarklet.js
├── html5-base64.org
├── templates-setup.org
├── markdown-raw-html.org
├── metadata-yaml.org
├── parse-raw-html.org
└── epub-fonts-css-metadata.org
├── virtualbox
└── virtualbox.conf
├── cat
├── cat.sh
└── cat-redirection.org
├── css
├── css_hidding.css
├── clearing_div.css
├── ipad disable copy and paste.css
├── border_radious.css
├── css_transform_scale.css
├── form_placeholder.css
├── iphone dont resize text.css
├── absolute_center_image_2.css
├── centre_div_negative_margins.css
├── css_box_shadow.css
├── ipad disable callout sheet to save images.css
├── css_centering.css
├── webkit-font-smoothing.css
├── css_reflection.css
├── test_selection_colour.css
├── html5_display_block.css
├── absolute_center_image.css
├── absolute_center_image_3.css
├── Custom.css
├── clearfix_all_browsers.css
├── rounded_borders.css
└── progress bar.css
├── tig
└── tig.sh
├── emacs
├── emacs-capture-protocol
│ ├── readability.txt
│ ├── emacs-capture
│ ├── emacs-capture.desktop
│ └── org-protocol.desktop
├── dired-toggle-details.org
├── org-mode-copy-url.org
├── display-line-numbers.org
├── eval-region.org
├── magit-view-file-at-commit.org
├── ido-mode.org
├── narrowing-widening-org-mode.org
└── tramp-sudo.org
├── freebsd
├── bash-dotfiles
│ └── .bash_profile
├── dbus.org
├── partition.org
├── bluetooth-stop.org
├── list-disks.org
├── pf-reload.org
├── emacs-freebsd.org
├── pkg-autoremove.org
├── sxiv.org
├── vlc3.org
├── fix-mbr.org
├── pkg-info-list.org
├── emacs-devel.org
├── pinentry-curses.org
├── pkg-info-show-message.org
├── sysrc.org
├── w3m-img.org
├── xsel-install.org
├── chrome-disable-gpu.org
├── wpa_supplicant.org
├── python3.org
├── mpd.org
└── pkg-list-installed-packages.org
├── m3u8
├── image.m3u8
└── start-stop.m3u8
├── tee
└── tee.sh
├── git
├── gitk.org
├── log.org
├── remove-all.org
├── diff.org
├── colour.org
├── log-graphs.org
├── add-brackets.org
├── discard-changes.org
├── remove-file-from-being-tracked.org
├── exclude
└── git-show.org
├── unbound
└── debian-unbound
│ └── etc
│ └── resolv.conf
├── mplayer
├── mplayer-usb-audio.sh
├── mplayer-headphones.sh
├── mplayer-play-raw-pcm.sh
├── mplayer-internal-speakers-usb-audio.sh
├── mplayer_full screen_on_second_display.sh
├── mp4box_commands.sh
└── mplayer_config.txt
├── vim
├── nerdtree-tip.txt
├── vim-use-system-clipboard.txt
├── vim-cd.sh
└── vim-aspell.sh
├── xcode
├── xcode tips.txt
├── applicationShouldTerminateAfterLastWindowClosed.txt
└── super_init.m
├── applescript
├── mute_volume.scpt
├── wake on lan.scpt
├── import_into_evernote.scpt
├── Mac Scripting Overview.scpt
├── vlc mediastreamsegmenter.scpt
├── lion_fullscreen_screensharing.scpt
└── Save A List of URLs From Your Evernote Items As A File.scpt
├── kodi
├── xbmc turn off embeded subs in mkv.txt
├── advancedsettings.xml
├── xbmc_install.sh
├── xsessions
│ └── kodi.desktop
├── audio_delay_for_xbmc_airplay.sh
├── p2p-streams-acestream-fix.txt
└── xbmc-linux-install.sh
├── openbsd
├── set-hostname.sh
├── openbsd-suspend.sh
├── pf-firewall-allow-ssh.sh
├── pf.conf
├── python-pip-openbsd-install.sh
└── pandoc-openbsd.sh
├── ip
├── ip-show-ip-address.org
└── list-network-devices.org
├── ngrep
├── ngrep_install.sh
├── ngrep_block_site.sh
└── ngrep_kill_tcp_connection.sh
├── nmcli
└── nmcli.sh
├── tesseract
└── tesseract-ocr.sh
├── ubuntu
├── old-root-scripts
│ ├── backlight-off
│ └── backlight-on
├── ubuntu-nixpkgs-wsl
│ └── .config
│ │ └── yt-dlp
│ │ └── config
├── ubuntu-upgrade.org
├── nognome_notifications_setup
│ ├── nognome_notifications
│ └── nognome_notifications.desktop
├── disable-ubuntu-apt-news.org
├── xsessions.org
├── gnome-window-always-on-top.org
├── xdg-desktop-portal-gnome.org
├── set-default-terminal.org
└── gnome-login-keyring.org
├── assembly
└── JustExit.s
├── fc-cache
└── fc-cache.org
├── google
├── google-server-directories.md
└── google_webcache.txt
├── mtr
└── mtr.sh
├── netstat
├── netstat-tupac.org
└── netstat-network-data-transfer-rates.org
├── openvpn
├── doas-namespace
│ └── namespace
└── sudo-namespace
│ └── namespace
├── tar
├── untar-files.org
└── tar-files.org
├── tcpflow
└── tcpflow.sh
├── type
└── type.org
├── vlc
├── vlc-duplicate-stream.txt
├── vlc.m3u8
├── vlc-cache-gen.md
├── vlc-alsa-spdif-fix.txt
├── vlc-lua.org
└── vlc-fix.org
├── df
└── show-hard-drive-size.org
├── du
└── show-file-size.org
├── inkscape
└── inkscape-pdf.md
├── ping
├── ping_on_a_network_interface.sh
└── ping-with-date.sh
├── pulseaudio
└── pulseaudio-restart.sh
├── andriod
├── adb kill-server.sh
├── asound.conf
├── android usb tethering mac.txt
└── android backup.sh
├── cd
├── cd_to_previous_directory.org
└── cd-last-history-command.org
├── nfs
├── nfts-server.org
└── nfs-common.org
├── nodejs
├── nodejs.sh
└── nodejs-install.sh
├── w3m
├── cgi-bin
│ └── run_command.cgi
├── root-cgi-bin
│ └── run_command.cgi
├── w3m-variables.org
└── w3m-dump.org
├── wireshark
├── wireshark-get-filter.sh
├── wireshark-filters.txt
├── openbsd-wireshark-non-root.sh
└── wireshark-rtmp.sh
├── apt
└── apt-mark.org
├── bash-completion
└── reload_bash_completion_file.sh
├── history
├── run-last-command.org
├── clear-terminal-history.org
└── history-save-as-script.org
├── mpv
├── mpv-install.org
├── mpv.conf
├── mpv-stereo.org
├── mpv-ytdl.org
├── mpv-video-filters.org
└── mpv-miliseconds.org
├── namebench
└── namebench.sh
├── obs-studio
└── obs-wayland.org
├── subversion
├── websvn.conf
├── svn_reverting.sh
├── subversionProject.sh
└── subversion_repo_on_an_external_hard_drive.txt
├── tty
└── clear-login-tty.org
├── uniq
└── uniq-show-duplicates.org
├── cp
└── cp-braces.org
├── curl
├── curl-external-ip.org
├── curl-determine-webserver.org
├── curl-download-with-pause.org
├── curl-download-a-series-of-urls.org
├── curl-time-to-first-byte.org
├── id-a-web-server.org
└── curl-download-iso.org
├── dns
└── get-dns-server.org
├── i3-wm
└── i3-wm.org
├── imagemagick
├── convert-pdf-to-png.md
└── convert.org
├── kindle
└── kindle-hack.txt
├── sudo
├── su-preserve-user-environment.org
├── sudo-preserve-enviornment.org
└── run-last-command-in-history-with-sudo.org
├── top
└── top-redirect-to-file-with-tee.sh
├── arch-linux
├── yaourt-update-packages.org
├── dnsutils-arch.org
├── pacman-upgrade-packages.org
├── pacman-gpg-keys.org
├── arch-set-time.org
├── alsa-audio-archlinux.org
├── yaourt-remove-package-and-dependencies.org
├── android-fastboot-adb-install.org
├── gpg-pacman-fix.org
├── gparted-arch.org
├── pacman-backup-packages.org
├── services
│ ├── home
│ │ └── username
│ │ │ └── .config
│ │ │ └── systemd
│ │ │ └── user
│ │ │ └── mpd.service
│ └── etc
│ │ └── systemd
│ │ └── system
│ │ └── btsync.service
├── gvfs-mtp-mount-android.org
└── wireshark-arch.org
├── geektool
└── scripts
│ ├── show_disk_usage.sh
│ └── get_dns_server_geektool.sh
├── oathtool
├── oathtool.org
└── oathtool-install.org
├── tr
├── tr-convert-case.org
├── tr-replace-characters.org
└── tr-convert-dos-to-unix.org
├── wget
├── check-for-404s.org
├── mirror-website.org
├── download-html-page.org
├── wget-urls-from-file.org
├── wget-site.org
└── directory-prefix.org
├── base64
├── base64.org
└── base64-decode-text-file.org
├── chmod
├── make-bash-file-executable.org
├── chmod-remove-permissions.org
└── chmod-match-file-permissions.org
├── find
├── find-large-files.org
├── find-and-zip-file.org
├── find-remove-dot-slash.org
├── find-xargs.org
├── find-change-file-extension.org
├── find-symlinks.org
├── find-files-mkdir-mv-files.org
├── find-file-and-cat.org
├── find-convert-uppercase-filenames-to-lowercase.org
├── find-and-basename.org
└── remove-executable-bit-recursively-from-files-not-directories.org
├── firejail
├── firejail-firefox.org
└── firejail.org
├── grep
├── find-grep.org
├── grep-http-links.org
├── grep-clipboard-for-http-links.org
├── grep-files-for-links-to-jpgs.org
├── grep-files-for-links.org
└── remove-comments.org
├── sed
├── remove-first-2-characters.org
├── prepend-text-to-file.org
├── remove-comments-and-whitespace.org
├── find-http-links.org
├── strip-html-tags.org
├── find-image-urls-in-html.org
├── prepend-domain.org
├── remove-md-extension.org
├── wrap-string-in-quotes.org
├── sed-tips.org
├── remove-characters-from-start.org
├── markdown-remove-domain.org
├── find-local-links-add-html-extension.org
└── find-local-links.org
├── synology
├── synology htaccess.txt
├── synology restart ssh.sh
└── find-and-remove-eadir-directories.sh
├── html-xml-utils
└── html-xml-utils.org
├── jpegtran
└── jpegtran.sh
├── rsync
├── rsync-home-backup.sh
├── rsync-system-backup.sh
├── rsync-backup-script.sh
└── rsync-system-backup-to-usb.sh
├── sabnzbd
└── sabnzbd.sh
├── ssh
├── tar-over-ssh.org
├── show-host-key-fingerprint-as-image.org
├── ssh-socks5.org
├── regenerate-a-public-ssh-key-using-a-private-key.org
└── socks5-self-closing-tunnel.org
├── date
└── date.org
├── dnssec-trigger
└── dnssec-trigger.org
├── egrep
└── egrep-links.org
├── ls
├── ls-wc.org
└── ls-arguments.org
├── raspberry-pi
├── synergy install raspberry pi.sh
├── kill_pulseaudio.sh
├── Raspberry Pi find serial number for license key.txt
└── raspbmc
│ ├── boot
│ └── config.txt
│ └── advancedsettings.xml
├── st
├── st-increase-font-size.org
└── st.desktop
├── urxvt
└── urxvt-ncurses.org
├── arp
└── arp.org
├── stat
└── stat-octal-file-permissions.org
├── strings
└── strings.sh
├── uberwriter
└── uberwriter-install.sh
├── awk
├── awk-csv-to-plain-text.org
├── awk-grab-second-field.org
├── get-last-line-of-file.org
├── awk-extract-text-between-brackets.org
├── print-first-and-second-line.org
├── awk.org
└── awk_sed_remove_double_quotes.org
├── cut
└── cut.org
├── debian
├── debian-add-repo.org
└── backport.org
├── diff
└── diff-tips.org
├── dnscrypt-proxy
└── dnscrypt-conf
│ ├── dnscrypt-proxy-service-override.conf
│ └── dnscrypt-proxy-socket-override.conf
├── dnsmasq
└── swiss-privacy-foundation-dns.sh
├── gparted
└── hfs-support-gparted.org
├── gvfs-mount
└── gvfs-mount.org
├── iptables
└── iptables-persistent.org
├── newsboat
└── youtube-newsboat
│ └── youtube-rss
├── tmux
└── tmux-rename-window.org
├── tv-maxe
└── tv-maxe-install.sh
├── unset
└── unset-function.org
├── weather
└── wttr-weather.org
├── chkrootkit
└── chkrootkit_install.sh
├── ranger
└── ranger.sh
├── sha1sum
└── sha1sum-for-password.org
├── tshark
├── tshark-search-for-hosts.sh
└── tshark-command.sh
├── watch
└── watch-ps-ffmpeg.org
├── flatpak
└── yaru-blue-dark-theme.org
├── read
└── read.sh
├── squeezelite
└── squeezelite-dac.sh
├── tor
└── tor-dont-start-automatically.sh
├── xmonad
└── xmonad.desktop
├── youtube-dl
├── youtube-dl-download-channel.org
├── youtube-dl-best.org
├── youtube-dl-aria2.org
└── youtube-dl-download-subtitles.org
├── beautiful-soup
└── beautiful-soup-install.sh
├── csvkit
└── csvjoin-join-2-csv-files.org
├── lsblk
└── lsblk.org
├── psad
├── psad_noemail.sh
└── psad_install.sh
├── ssl
└── https-check-if-site-supports-ssl.org
├── v4l-utils
└── v4l-utils.org
├── ffmpeg
├── extract-video.org
├── extarct-audio.org
├── change-framerate.org
├── scale-pad.org
├── colour-to-grayscale.org
├── ffmpeg-copy.org
├── ffmpeg_thumbsmov.sh
├── crop-pad.org
├── dump-audio-from-video.org
├── ffmpeg-scale.org
├── ffmpeg_thumbsmp4.sh
├── extract-audio.org
├── raw-audio.org
├── dump-audio-stream-from-video.org
├── dump-audio-with-map.org
├── video-from-audio-and-image.org
├── create-thumbnails.org
├── batch-process.org
├── rtp-multicast-streaming.org
├── copy-video-convert-audio-pcm.org
├── convert-wav-to-aac.org
├── cat-files.org
├── convert-wav-to-mp3.org
├── overlay-filter.org
├── hls-video-recording.org
├── play-file-puseaudio-output.org
├── yuv4mpegpipe.org
└── convert-flac-to-aac.org
├── ffprobe
└── ffprobe-show-streams.org
├── ifconfig
└── ifconfig-wlan.org
├── ncftp
└── ncftpget.org
├── netcat
├── netcat-google.org
├── banner-grabbing.org
└── udp-server.org
├── nmap
└── nmap-router-scanning.sh
├── zsh
├── zsh-completions-location.org
└── zsh-setup.org
├── cups
├── cups-pdf.sh
└── cups.sh
├── firefox
├── firefox-75-config.tx
├── picture-in-picture-keyboard.org
├── firefox-audio.txt
├── firefox-config.txt
└── picture-in-picture-shortcut.org
├── mysql
└── mysql-login-bypass.sh
├── ogr2ogr
└── geojson-to-kml.org
├── proxychains
├── proxychains-setup.sh
└── proxychains-arch.sh
├── xrandr
├── xprofile
└── xrandr-toggle-hdmi.sh
├── kali-linux
├── mdk.sh
└── cookie.txt
├── rename
└── rename-to-lowercase.sh
├── tcpdump
├── tcpdump-capture-traffic-from-host.org
└── tcpdump-get-request.org
├── irc
└── weechat.sh
├── libreoffice
├── libreoffice-debian.md
└── libreoffice.sh
├── lsof
└── lsof.sh
├── lynx
├── lynx-mplayer.org
├── lynx-dump-links.org
└── lynx-dump-links-pipe-into-grep.org
├── sort
└── sort-remove-duplicates.org
├── blender
└── blender-cuda-nvidia.org
├── fzf
└── fzf-list.org
├── libvirt
├── setfacl-libvirt.org
├── libvirt.org
└── libvirt-start-default-network.org
├── chromium-browser
├── chrome-force-ssl-for-domain.txt
├── chromium-flash-player-install.sh
└── scriptsafe-evernote.txt
├── dig
└── dig.org
├── nixpkgs
└── mac-nixpkgs.org
├── openssl
└── openssl-htpasswd.org
├── stdin
├── stdin-echo-argument-from-cat.sh
└── stdin-redirect-input.org
├── surfraw
└── surfraw.org
├── sxhkd
└── reload-sxhkd.org
├── tail
└── tail_show_lines.sh
├── tree
└── tree.sh
├── at
├── at.org
└── input
├── dos2unix
└── dos2unix-convert-lin-ending-to-unix.org
├── get-iplayer
└── get-iplayer-record-live-tv.sh
├── homebrew
└── homebrew-appdir.org
├── xargs
└── xargs-create-directorys.org
├── markdown
└── retext-markdown-editor-install.sh
├── mosh
└── mosh autocomplete ssh hosh names.sh
├── shnsplit
└── shnsplit.org
├── gpsbabel
├── gpx-track-speed.org
└── convert-gpx-to-srt.org
├── arpspoof
└── arp_spoof_mitm.sh
├── meld
└── meld-over-ssh.org
├── openntpd
└── openntpd.org
├── handbrake
└── hardbrake-install.org
├── barrier
└── barrier-iptables.org
├── exiftool
└── exiftool-equirectangular.org
├── xmodmap
└── Xmodmap
├── zfs
├── zfs-mount-snapshot.org
├── zfs-list-snapshot-by-date.org
├── zdb-get-zpool-name-from-device.org
└── zfs-get-mountpoint.org
├── xkill
└── xkill-application-windows.org
├── chown
└── chown-set-drive-permission-on-drive.org
├── thunderbird
└── thunderbird.sh
├── pstree
└── pstree.sh
├── bourne-shell
└── read-file
├── dict
└── dict.org
├── wine
└── wine-linux-install.sh
├── apache
└── no-www.org
├── latex
└── latex-movie15.sh
├── ruby
└── ruby-rvm-install.sh
├── wkhtmltopdf
└── wkhtmltopdf-install.sh
├── tvheadend
└── tvheadend-linux
│ └── scripts
│ └── cron.sh
├── privoxy
└── privoxy-iptables.sh
├── zbar-tools
└── zbar-tools.org
├── apg
└── apg-password-generator.org
├── ublock-origin
└── ublock-twitter.txt
├── ffplay
└── ffplay-fullscreen.org
├── echo
└── echo-nc.org
├── head
└── head-show-lines.org
├── bc
└── bash-calculator.sh
└── dpkg
└── dpkg-reconfigure.org
/btsync/SyncIgnore:
--------------------------------------------------------------------------------
1 | @eaDir
2 |
--------------------------------------------------------------------------------
/nmtui/nmtui.txt:
--------------------------------------------------------------------------------
1 | nmtui
2 |
--------------------------------------------------------------------------------
/php/phpinfo.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/html/mailto.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/html/unordered_list.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/macosx/ruby/ruby shabang.rb:
--------------------------------------------------------------------------------
1 | #!/usr/bin/ruby
--------------------------------------------------------------------------------
/sox/sox-effects/2gain.txt:
--------------------------------------------------------------------------------
1 | gain -b -n -3
2 |
--------------------------------------------------------------------------------
/squid/video-ads.acl:
--------------------------------------------------------------------------------
1 | mp.adverts.itv.com
2 |
--------------------------------------------------------------------------------
/bash/braces.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ls *.{jpg,gif}
--------------------------------------------------------------------------------
/html/image_link.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/html/link_with_title.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/docker/apache/apache-docker/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM httpd:2.4
2 |
--------------------------------------------------------------------------------
/html5-video/html/landscape.css:
--------------------------------------------------------------------------------
1 | li {display: inline;}
2 |
--------------------------------------------------------------------------------
/html5-video/html/portrait.css:
--------------------------------------------------------------------------------
1 | li {display: block;}
2 |
--------------------------------------------------------------------------------
/php/auto_copyrightyear.php:
--------------------------------------------------------------------------------
1 | ©
--------------------------------------------------------------------------------
/bash/user-id.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # show user id
4 | id
5 |
--------------------------------------------------------------------------------
/html/skype_link.html:
--------------------------------------------------------------------------------
1 | Call Me
--------------------------------------------------------------------------------
/python/python-shebang.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 |
3 |
4 |
--------------------------------------------------------------------------------
/html/iphone_dial.html:
--------------------------------------------------------------------------------
1 | Number here
--------------------------------------------------------------------------------
/perl/hello-world.pl:
--------------------------------------------------------------------------------
1 | #!/usr/bin/perl
2 | print "Hello, world!\n";
3 |
--------------------------------------------------------------------------------
/gollum-wiki/server/cron.sh:
--------------------------------------------------------------------------------
1 | */5 * * * * /home/wiki-sync.sh &> /dev/null
--------------------------------------------------------------------------------
/mpd/playlists/LBC973.m3u:
--------------------------------------------------------------------------------
1 | http://ice-the.musicradio.com:80/LBC973
2 |
--------------------------------------------------------------------------------
/php/bash.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/php/php_run_bash.php:
--------------------------------------------------------------------------------
1 | bash
4 |
--------------------------------------------------------------------------------
/html/apple_touch_icon.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/html/favicon.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/macosx/sips/sips_jpg.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sips --setProperty format jpeg *.NEF --out .
--------------------------------------------------------------------------------
/macosx/textutil/text_to_speech.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | say -f infile.txt -o outfile.aiff
--------------------------------------------------------------------------------
/tig/tig.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # tig ncurses git viewer
4 |
5 | sudo pacman -S tig
6 |
--------------------------------------------------------------------------------
/bash/core-audio.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | afconvert -f caff -d LEI16@44100 -c 1 in.wav out.caf
--------------------------------------------------------------------------------
/css/clearing_div.css:
--------------------------------------------------------------------------------
1 | .clearing {clear:both; height:0; overflow:hidden; margin:-1px 0 0 0;}
--------------------------------------------------------------------------------
/emacs/emacs-capture-protocol/readability.txt:
--------------------------------------------------------------------------------
1 | pip install --user readability-lxml
2 |
3 |
--------------------------------------------------------------------------------
/macosx/disable_quartine.txt:
--------------------------------------------------------------------------------
1 | Snow Leopard
2 |
3 | xattr -d -r com.apple.quarantine filepath
--------------------------------------------------------------------------------
/macosx/show_ipv6_address.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # show ipv6 address
4 |
5 | dns-sd -F
6 |
--------------------------------------------------------------------------------
/bash/printf_new_line.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # printf new line \n
4 |
5 | printf "%s\n" something
--------------------------------------------------------------------------------
/bash/while_read.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ls | while read file; do echo "file found: $file"; done
--------------------------------------------------------------------------------
/freebsd/bash-dotfiles/.bash_profile:
--------------------------------------------------------------------------------
1 | # load ~/.bashrc
2 | [[ -f ~/.bashrc ]] && . ~/.bashrc
3 |
--------------------------------------------------------------------------------
/m3u8/image.m3u8:
--------------------------------------------------------------------------------
1 | #EXTM3U
2 |
3 | #EXTINF:0, 01-image
4 | #EXTVLCOPT:image-duration=5
5 | output.png
--------------------------------------------------------------------------------
/macosx/bless_hard_drive.txt:
--------------------------------------------------------------------------------
1 | sudo bless -folder /Volumes/Igor\ 1/System/Library/CoreServices
2 |
--------------------------------------------------------------------------------
/macosx/macbackup.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo asr -source / -target /Volumes/Air\ 1 -erase
4 |
--------------------------------------------------------------------------------
/sox/sox-effects/4cmp.txt:
--------------------------------------------------------------------------------
1 | compand .5,1 6:-70,-36,-32,-28,-18,-24,-18,-18,-18,-12,-12 -5 -90 0.2
2 |
--------------------------------------------------------------------------------
/tee/tee.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # tee command
4 | echo "this is some text" | tee output.txt
5 |
--------------------------------------------------------------------------------
/bash/arguments.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | FIRST_ARGUMENT="$1"
4 | echo "Hello, world $FIRST_ARGUMENT!"
--------------------------------------------------------------------------------
/bash/file_exists.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | if ls mysillyfilename ; then
4 | echo "File exists."
5 | fi
--------------------------------------------------------------------------------
/bash/loop.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # bash for loop
4 | for f in $( ls /var/ ); do
5 | echo $f
6 | done
--------------------------------------------------------------------------------
/git/gitk.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * basic git gui
3 |
4 | #+begin_src sh
5 | gitk
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/html/rss_feed_include.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/html/utf-8 encoding meta tag.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/macosx/empty_the_trash.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # empty the trash
4 | cd ~/.Trash
5 | chflags -R nouchg *
--------------------------------------------------------------------------------
/unbound/debian-unbound/etc/resolv.conf:
--------------------------------------------------------------------------------
1 | # Generated by dnssec-trigger 0.13
2 | nameserver 127.0.0.1
3 |
--------------------------------------------------------------------------------
/bash/rename_prefix.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | for filename in *.mp4; do mv "$filename" "prefix_$filename"; done;
--------------------------------------------------------------------------------
/macosx/get_mac_address.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # get mac address
4 |
5 | networksetup -getmacaddress Wi-Fi
--------------------------------------------------------------------------------
/macosx/osascript_bash_template.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | osascript< foo.txt
--------------------------------------------------------------------------------
/mplayer/mplayer-usb-audio.sh:
--------------------------------------------------------------------------------
1 | # mplayer config use usb audio device for audio
2 | ao=alsa:device=plughw=1
3 |
--------------------------------------------------------------------------------
/php/redirect_url.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/sox/sox-effects/1ns.txt:
--------------------------------------------------------------------------------
1 | compand .5,1 -inf,-40.1,-inf,-40,-40 0 -90 .1
2 | highpass 200
3 | lowpass 3000
4 |
--------------------------------------------------------------------------------
/vim/nerdtree-tip.txt:
--------------------------------------------------------------------------------
1 | toggle nerdtree sidebar
2 | ,,
3 |
4 | switch between windows
5 | ctrl w w
6 |
7 |
--------------------------------------------------------------------------------
/xcode/xcode tips.txt:
--------------------------------------------------------------------------------
1 | xcode
2 |
3 | autosave
4 |
5 |
6 | + (BOOL)autosavesInPlace {
7 | return YES;
8 | }
--------------------------------------------------------------------------------
/applescript/mute_volume.scpt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/canyon289/cerberus/master/applescript/mute_volume.scpt
--------------------------------------------------------------------------------
/applescript/wake on lan.scpt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/canyon289/cerberus/master/applescript/wake on lan.scpt
--------------------------------------------------------------------------------
/css/ipad disable copy and paste.css:
--------------------------------------------------------------------------------
1 | /* Disable copy and paste */
2 |
3 | article {-webkit-user-select: none;}
--------------------------------------------------------------------------------
/kodi/xbmc turn off embeded subs in mkv.txt:
--------------------------------------------------------------------------------
1 | xbmc turn off embeded subs in mkv
2 |
3 | stop the video and press t
--------------------------------------------------------------------------------
/macosx/bash_check_ostype.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | if [[ "$OSTYPE" =~ ^darwin ]]; then
4 | echo "im a mac"
5 | fi
--------------------------------------------------------------------------------
/macosx/show_wifi_network.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # show wifi network
4 |
5 | networksetup -getairportnetwork en0
--------------------------------------------------------------------------------
/macosx/touch_file_shortcut.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # touch file shortcut
4 |
5 | # touch file.txt
6 | > file.txt
--------------------------------------------------------------------------------
/openbsd/set-hostname.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # strip domain name from hostname
4 | sudo hostname -s hal9000
5 |
--------------------------------------------------------------------------------
/bash/backup.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | OF=myhome_directory_$(date +%Y%m%d).tar.gz
3 | tar -czf $OF /Users/djwilcox/Desktop/bak
--------------------------------------------------------------------------------
/bash/unset-function.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # unset function
4 | #===============
5 |
6 | unset -f functio-name
7 |
--------------------------------------------------------------------------------
/css/border_radious.css:
--------------------------------------------------------------------------------
1 | { -moz-border-radius: 4px;-webkit-border-radius: 4px;border:1px solid #fff;background:#fff;}
--------------------------------------------------------------------------------
/css/css_transform_scale.css:
--------------------------------------------------------------------------------
1 | .scale {
2 | -webkit-transform: scale(2.0);
3 | -moz-transform: scale(2.0);
4 | }
--------------------------------------------------------------------------------
/html/html_4.01_strict.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ip/ip-show-ip-address.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * show ip address
3 |
4 | #+begin_src sh
5 | ip a
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/macosx/listallhardwareports.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # listallhardwareports
4 |
5 | networksetup -listallhardwareports
--------------------------------------------------------------------------------
/ngrep/ngrep_install.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # ngrep install to kill tcp connections
4 | sudo apt-get install ngrep
5 |
--------------------------------------------------------------------------------
/nmcli/nmcli.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # network manager cli
4 | #====================
5 |
6 | nmcli dev show ens9
7 |
--------------------------------------------------------------------------------
/python/requests.md:
--------------------------------------------------------------------------------
1 | # python 3 requests
2 |
3 | * Freebsd
4 |
5 | ```
6 | sudo pkg install py36-requests
7 | ```
8 |
--------------------------------------------------------------------------------
/tesseract/tesseract-ocr.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # tesseract ocr
4 | sudo pacman -S tesseract tesseract-data-eng
5 |
--------------------------------------------------------------------------------
/ubuntu/old-root-scripts/backlight-off:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | echo 0 > /sys/class/leds/smc::kbd_backlight/brightness
4 |
--------------------------------------------------------------------------------
/ubuntu/old-root-scripts/backlight-on:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | echo 255 > /sys/class/leds/smc::kbd_backlight/brightness
4 |
--------------------------------------------------------------------------------
/vim/vim-use-system-clipboard.txt:
--------------------------------------------------------------------------------
1 | # use system clipboard add to your ~/.vimrc file
2 | set clipboard=unnamedplus
3 |
--------------------------------------------------------------------------------
/assembly/JustExit.s:
--------------------------------------------------------------------------------
1 | .text
2 |
3 | .globl _start
4 |
5 | _start:
6 | movl $1, %eax
7 | movl $0, %ebx
8 | int $0x80
9 |
--------------------------------------------------------------------------------
/bash/file_exists2.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ls mysillyfilename
4 | if [ $? = 0 ] ; then
5 | echo "File exists."
6 | fi
--------------------------------------------------------------------------------
/bash/printf.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | printf "What is your name? -> "
3 | read NAME
4 | echo "Hello, $NAME. Nice to meet you."
--------------------------------------------------------------------------------
/bash/subroutine.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | mysub()
4 | {
5 | echo "Arg 1: $1"
6 | }
7 |
8 | mysub "This is an arg"
--------------------------------------------------------------------------------
/fc-cache/fc-cache.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * fc-cache
3 |
4 | #+begin_src sh
5 | sudo fc-cache -f -v
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/git/log.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * git log
3 |
4 | #+begin_src sh
5 | git log --pretty="%h, %cn, %cr"
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/google/google-server-directories.md:
--------------------------------------------------------------------------------
1 | # google query for directory listsings
2 |
3 | intitle:index.of "Parent Directory"
4 |
--------------------------------------------------------------------------------
/html/ie_conditional_comments.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/macosx/apple_remote_events_sleep.txt:
--------------------------------------------------------------------------------
1 | tell application "Finder" of machine "eppc://192.168.1.9"
2 | sleep
3 | end tell
--------------------------------------------------------------------------------
/macosx/ds_store/delete_ds_store.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # delete ds store
4 |
5 | find . -name '*.DS_Store' -type f -delete
--------------------------------------------------------------------------------
/macosx/mac-install-from-anywhere.md:
--------------------------------------------------------------------------------
1 | # mac install from anywhere
2 |
3 | ```
4 | sudo spctl --mater-disable
5 | ```
6 |
--------------------------------------------------------------------------------
/macosx/sips/sips_pad_to_height.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # pad images to height
4 |
5 | sips --padToHeightWidth 77 32 *.png
--------------------------------------------------------------------------------
/mtr/mtr.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # mrt - traceroute and ping
4 | #==========================
5 |
6 | mtr google.com
7 |
--------------------------------------------------------------------------------
/netstat/netstat-tupac.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * netstat
3 |
4 | #+begin_src sh
5 | netstat -tupac
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/ngrep/ngrep_block_site.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo ngrep -q 'facebook.com'
4 |
5 | ngrep -q -W byline 'facebook.com'
6 |
--------------------------------------------------------------------------------
/openvpn/doas-namespace/namespace:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # open in namespace
4 | ip netns exec vpn doas -u djwilcox -- "$@"
5 |
--------------------------------------------------------------------------------
/python/python-markdown-install.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # python-markdown package install
4 | sudo pip install markdown
5 |
--------------------------------------------------------------------------------
/tar/untar-files.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * untar file
3 |
4 | #+begin_src sh
5 | tar -zxvf file.tgz
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/tcpflow/tcpflow.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # tcpflow install
4 | #================
5 |
6 | sudo apt-get install tcpflow
7 |
--------------------------------------------------------------------------------
/type/type.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * display command location
3 |
4 | #+begin_src sh
5 | type -p vim
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/vlc/vlc-duplicate-stream.txt:
--------------------------------------------------------------------------------
1 | # vlc duplicate stream
2 |
3 | #duplicate{dst="http{mux=ts,dst=:6881/tv.asf}",dst=display}
--------------------------------------------------------------------------------
/css/form_placeholder.css:
--------------------------------------------------------------------------------
1 | input::-webkit-input-placeholder,
2 | input:-moz-placeholder {
3 | color: rgba(170,170,170,1);
4 | }
--------------------------------------------------------------------------------
/df/show-hard-drive-size.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * show hard drive size
3 |
4 | #+begin_src sh
5 | df -h
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/du/show-file-size.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * show file size
3 |
4 | #+begin_src sh
5 | du -sh somedirectory
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/git/remove-all.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * git remove all
3 |
4 | #+begin_src sh
5 | git rm -r --cached *.*
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/html/xhtml_1.1_doctype.xhtml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/inkscape/inkscape-pdf.md:
--------------------------------------------------------------------------------
1 | # inkscape convert svg to pdf
2 |
3 | ```
4 | inkscape graph.svg --export-pdf=graph.pdf
5 | ```
6 |
--------------------------------------------------------------------------------
/macosx/comm_compare_two_directories.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # compare 2 directories
4 | comm -3 <(ls -1 folder1) <(ls -1 folder2)
--------------------------------------------------------------------------------
/macosx/mac_ maintenance _script.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # run maintenance scripts
4 |
5 | sudo periodic daily weekly monthly
--------------------------------------------------------------------------------
/openvpn/sudo-namespace/namespace:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # open in namespace
4 | sudo ip netns exec vpn sudo -u $(whoami) -- "$@"
5 |
--------------------------------------------------------------------------------
/ping/ping_on_a_network_interface.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # ping on a network interface
4 |
5 |
6 | ping -I wlan0 google.com
--------------------------------------------------------------------------------
/pulseaudio/pulseaudio-restart.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # restart pulseaudio
4 | #===================
5 |
6 | pulseaudio -k
7 |
--------------------------------------------------------------------------------
/andriod/adb kill-server.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # stop adb server
4 | adb kill-server
5 |
6 | # start adb server
7 | adb start-server
--------------------------------------------------------------------------------
/applescript/import_into_evernote.scpt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/canyon289/cerberus/master/applescript/import_into_evernote.scpt
--------------------------------------------------------------------------------
/bash/bash-url-decode.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | echo "url-goes-here" \
4 | | sed -e's/%\([0-9A-F][0-9A-F]\)/\\\\\x\1/g' | xargs echo -e
--------------------------------------------------------------------------------
/cd/cd_to_previous_directory.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * cd to previous directory
3 |
4 | #+begin_src sh
5 | cd -
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/css/iphone dont resize text.css:
--------------------------------------------------------------------------------
1 | @media only screen and (max-device-width: 480px) {
2 | html {-webkit-text-size-adjust: none;}
3 | }
--------------------------------------------------------------------------------
/git/diff.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * git diff meld
3 |
4 | #+begin_src sh
5 | meld "$2" "$5" > /dev/null 2>&1
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/html/html_4.01_frameset.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/macosx/leopard_show_users_and_groups.txt:
--------------------------------------------------------------------------------
1 | leopard show users and groups
2 |
3 |
4 | dscacheutil -q group
5 |
6 | dscacheutil -q user
--------------------------------------------------------------------------------
/macosx/mac-ssh/config:
--------------------------------------------------------------------------------
1 | # ssh aliases
2 |
3 | Host *
4 | UseKeychain yes
5 | AddKeysToAgent yes
6 | IdentityFile ~/.ssh/id_rsa
--------------------------------------------------------------------------------
/nfs/nfts-server.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: content
2 | * nfs client
3 |
4 | #+begin_src sh
5 | sudo apt-get install nfs-common
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/nodejs/nodejs.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # nodejs arch linux install
4 | #==========================
5 |
6 | sudo pacman -S nodejs
7 |
--------------------------------------------------------------------------------
/w3m/cgi-bin/run_command.cgi:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # run w3m command from clipboard
4 | printf "%s\r\n" "W3m-control: $(xsel -opsb)";
5 |
--------------------------------------------------------------------------------
/wireshark/wireshark-get-filter.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # wireshark filter for get requests
4 | http.request.uri contains "GET"
5 |
--------------------------------------------------------------------------------
/applescript/Mac Scripting Overview.scpt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/canyon289/cerberus/master/applescript/Mac Scripting Overview.scpt
--------------------------------------------------------------------------------
/applescript/vlc mediastreamsegmenter.scpt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/canyon289/cerberus/master/applescript/vlc mediastreamsegmenter.scpt
--------------------------------------------------------------------------------
/apt/apt-mark.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * show user installed packages
3 |
4 | #+begin_src sh
5 | apt-mark showmanual
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/bash-completion/reload_bash_completion_file.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # reload bash completion file
4 | . /etc/bash_completion.d/filename
--------------------------------------------------------------------------------
/bash/echo_supress_new_line.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # echo_supress_new_line.
4 |
5 | # -n
6 | # echo -n prompt
7 |
8 | echo -n prompt
--------------------------------------------------------------------------------
/bash/hello_world.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # declare STRING variable
3 | STRING="Hello World"
4 | #print variable on a screen
5 | echo $STRING
--------------------------------------------------------------------------------
/emacs/dired-toggle-details.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * dired toggle details
3 |
4 | toggle dired details view by pressing shift + 9
5 |
--------------------------------------------------------------------------------
/git/colour.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * enable git color
3 |
4 | #+begin_src sh
5 | git config --global color.ui true
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/history/run-last-command.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * run last command in bash history
3 |
4 | #+begin_src sh
5 | !!
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/html/html_4.01_transitional.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/html/xhtml_1_strict.xhtml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/mpv/mpv-install.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * mpv video player install
3 |
4 | #+begin_src sh
5 | sudo apt install mpv
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/namebench/namebench.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # namebench test dns
4 | #===================
5 |
6 | sudo apt-get install namebench
7 |
--------------------------------------------------------------------------------
/obs-studio/obs-wayland.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: content
2 | * obs wayland
3 |
4 | #+begin_src sh
5 | doas apt install qtwayland5
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/subversion/websvn.conf:
--------------------------------------------------------------------------------
1 |
2 | Order allow,deny
3 | Allow from all
4 |
--------------------------------------------------------------------------------
/tty/clear-login-tty.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * clear login tty
3 |
4 | #+begin_src sh
5 | sudo clear >> /etc/issue
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/uniq/uniq-show-duplicates.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * show duplicates with uniq -d
3 |
4 | #+begin_src sh
5 | uniq -d
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/andriod/asound.conf:
--------------------------------------------------------------------------------
1 | pcm.usbdac {
2 | type hw;
3 | card Audio;
4 | }
5 | ctl.usbdac {
6 | type hw;
7 | card Audio;
8 | }
9 | pcm.!default usbdac
--------------------------------------------------------------------------------
/bash/arguments-in-scripts.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # the $1 variable is the first argument you pass to the script
4 | ARG=$1
5 | ls $ARG
6 |
--------------------------------------------------------------------------------
/bash/file.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | file="./file"
3 | if [ -e $file ]; then
4 | echo "File exists"
5 | else
6 | echo "File does not exists"
7 | fi
--------------------------------------------------------------------------------
/cp/cp-braces.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * back up files with braces
3 |
4 | #+begin_src sh
5 | sudo cp /etc/fstab{,.backup}
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/css/absolute_center_image_2.css:
--------------------------------------------------------------------------------
1 | html {
2 | width:100%;
3 | height:100%;
4 | background:url(logo.png) center center no-repeat;
5 | }
--------------------------------------------------------------------------------
/curl/curl-external-ip.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * find external ip address
3 |
4 | #+begin_src sh
5 | curl ip.appspot.com
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/dns/get-dns-server.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * get dns server
3 |
4 | #+begin_src sh
5 | networksetup -getdnsservers Wi-Fi
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/emacs/emacs-capture-protocol/emacs-capture:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | emacsclient -c -F "((name . \"emacs-capture\") (height . 10) (width . 80))" "$@"
3 |
--------------------------------------------------------------------------------
/history/clear-terminal-history.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * clear terminal history
3 |
4 | #+begin_src sh
5 | history -c
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/html/xhtml_1_frameset.xhtml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/i3-wm/i3-wm.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * i3 window manager
3 |
4 | #+begin_src sh
5 | sudo apt install i3-wm i3status i3lock
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/imagemagick/convert-pdf-to-png.md:
--------------------------------------------------------------------------------
1 | # convert pdf to png
2 |
3 | ```
4 | convert -density 300 -trim cover.pdf -quality 100 cover.png
5 | ```
6 |
--------------------------------------------------------------------------------
/kindle/kindle-hack.txt:
--------------------------------------------------------------------------------
1 | Set kindle to download non drm books
2 |
3 | sudo chmod -x /Applications/Kindle.app/Contents/MacOS/renderer-test
4 |
--------------------------------------------------------------------------------
/kodi/advancedsettings.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
--------------------------------------------------------------------------------
/macosx/reveal_open_firmwarepassword.py:
--------------------------------------------------------------------------------
1 | python -c "print ''.join(chr(int(c, 16) ^ 170) for c in '`sudo nvram security-password`'.split('%')[1:])"
--------------------------------------------------------------------------------
/php/escape_xml_tags.php:
--------------------------------------------------------------------------------
1 | ';
4 | ?>
--------------------------------------------------------------------------------
/sudo/su-preserve-user-environment.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * preserve user environment
3 |
4 | #+begin_src sh
5 | su -lm
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/top/top-redirect-to-file-with-tee.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # redirect top with tee
4 | #======================
5 |
6 | top -b | tee top.txt
7 |
--------------------------------------------------------------------------------
/vlc/vlc.m3u8:
--------------------------------------------------------------------------------
1 | #EXTM3U
2 | #EXTINF:0,ccloud
3 | #EXTVLCOPT:http-referer=
4 | #EXTVLCOPT:http-user-agent=
5 | https://example.com/video.m3u8
6 |
--------------------------------------------------------------------------------
/wireshark/wireshark-filters.txt:
--------------------------------------------------------------------------------
1 | # get filter
2 | http.request.method == "GET"
3 |
4 | # http response 200
5 | http.response.code == 200
6 |
--------------------------------------------------------------------------------
/applescript/lion_fullscreen_screensharing.scpt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/canyon289/cerberus/master/applescript/lion_fullscreen_screensharing.scpt
--------------------------------------------------------------------------------
/arch-linux/yaourt-update-packages.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * yaourt update packages
3 |
4 | #+begin_src sh
5 | yaourt -Syua
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/bash/subroutine2.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | mysub()
4 | {
5 | return 3
6 | }
7 |
8 | mysub "This is an arg"
9 | echo "Subroutine returned $?"
--------------------------------------------------------------------------------
/css/centre_div_negative_margins.css:
--------------------------------------------------------------------------------
1 | div { position: absolute; left: 50%; width: 500px; margin-left: -250px; /*half the width of the div*/}
--------------------------------------------------------------------------------
/geektool/scripts/show_disk_usage.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # show disk usage
4 |
5 | df -hl | grep 'disk1' | awk '{print $4"/"$2" free ("$5" used)"}'
--------------------------------------------------------------------------------
/git/log-graphs.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * git log graph
3 |
4 | #+begin_src sh
5 | git log --oneline --all --graph --decorate
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/macosx/kill_by_process.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # get the process id
4 | ps -cvx | grep "someapp"
5 |
6 | # kill by process
7 | kill -s KILL 35178
--------------------------------------------------------------------------------
/macosx/set mtu size.txt:
--------------------------------------------------------------------------------
1 | # set mtu size
2 |
3 | # find mtu size
4 | networksetup -getMTU
5 |
6 | # set mtu size
7 | networksetup -setMTU en0 1453
--------------------------------------------------------------------------------
/oathtool/oathtool.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * oath-toolkit oathtool install
3 |
4 | #+begin_src sh
5 | sudo apt install oathtool
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/tr/tr-convert-case.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * tr convert case
3 |
4 | #+begin_src sh
5 | tr 'A-Z' 'a-z' after.txt
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/vim/vim-cd.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | " automatically change current directory to that of the file in the buffer
4 | autocmd BufEnter * cd %:p:h
5 |
--------------------------------------------------------------------------------
/wget/check-for-404s.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * wget check for 404s
3 |
4 | #+begin_src sh
5 | wget get --spider -nd -r
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/arch-linux/dnsutils-arch.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * install nslookup host dig
3 |
4 | #+begin_src sh
5 | sudo pacman -S dnsutils
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/arch-linux/pacman-upgrade-packages.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * pacman update packages
3 |
4 | #+begin_src sh
5 | sudo pacman -Syu
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/base64/base64.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * base64 encode inmage
3 |
4 | #+begin_src sh
5 | base64 image-in.jpg > image-out.b64
6 | #+end_src
7 |
8 |
--------------------------------------------------------------------------------
/bash/bash_alias.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # ==============
4 | # = Bash Alias =
5 | # ==============
6 |
7 |
8 |
9 | ln -s path/to/source path/to/alias
--------------------------------------------------------------------------------
/btsync/btsync-synology-nas-command.txt:
--------------------------------------------------------------------------------
1 | # start btsync on synology nas and specify config file
2 | ./btsync --config ~/.btsync/btsync.conf
3 |
4 |
5 |
--------------------------------------------------------------------------------
/chmod/make-bash-file-executable.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * make bash file executable
3 |
4 | #+begin_src sh
5 | chmod +x file.sh
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/find/find-large-files.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * find files larger than 100mb
3 |
4 | #+begin_src sh
5 | find . -type f -size +100M
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/firejail/firejail-firefox.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * firejail
3 |
4 | #+begin_src sh
5 | firejail --caps.drop=all --seccomp firefox
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/geektool/scripts/get_dns_server_geektool.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # get dns server
4 |
5 | printf "DNS: "; networksetup -getdnsservers Wi-Fi | tr '\n' ' '
--------------------------------------------------------------------------------
/grep/find-grep.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * find and grep
3 |
4 | #+begin_src sh
5 | find . -name "*.txt" -exec grep -il "lorem" {} \;
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/html/xhtml_1_transitional.xhtml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/nfs/nfs-common.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * nfs client and server install
3 |
4 | #+begin_src sh
5 | sudo apt-get install nfs-common
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/ngrep/ngrep_kill_tcp_connection.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # kill tcp connection matching regular expression
4 | ngrep -q -d any 'facebook.com' -K 10
5 |
--------------------------------------------------------------------------------
/sed/remove-first-2-characters.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * sed remove first 2 characters
3 |
4 | #+begin_src sh
5 | sed 's/^..//g'
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/synology/synology htaccess.txt:
--------------------------------------------------------------------------------
1 | AuthType Basic
2 | AuthName "Restricted resources"
3 | AuthUserFile /usr/syno/apache/.htpasswd
4 | Require valid-user
5 |
--------------------------------------------------------------------------------
/w3m/root-cgi-bin/run_command.cgi:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # run w3m command from clipboard
4 | printf "%s\r\n" "W3m-control: COMMAND $(xsel -opsb)";
5 |
6 |
--------------------------------------------------------------------------------
/bash/space_delimiter_with_cut_command.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # space as a delimiter with the cut command
4 |
5 | grep "stuff" text.txt | cut -d ' ' -f1
6 |
--------------------------------------------------------------------------------
/bash/symbolic_link.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # =================
4 | # = symbolic link =
5 | # =================
6 |
7 | ln -s /path/to/source /path/to/alias
--------------------------------------------------------------------------------
/css/css_box_shadow.css:
--------------------------------------------------------------------------------
1 | .shadow {
2 | box-shadow: 5px 5px 5px #ccc;
3 | -moz-box-shadow: 5px 5px 5px #ccc;
4 | -webkit-box-shadow: 5px 5px 5px #ccc;
5 | }
--------------------------------------------------------------------------------
/css/ipad disable callout sheet to save images.css:
--------------------------------------------------------------------------------
1 |
2 | /* Disable callout sheet to save images */
3 |
4 | img {-webkit-touch-callout: none;}
5 |
6 |
7 |
--------------------------------------------------------------------------------
/git/add-brackets.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * git add multiple files by bracketing
3 |
4 | #+begin_src sh
5 | git add image[123456].jpg
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/grep/grep-http-links.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * grep http links
3 |
4 | #+begin_src sh
5 | grep -oP '(?<=href=")[^"]*(?=")' file.html
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/html-xml-utils/html-xml-utils.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * html xml utils
3 |
4 | #+begin_src sh
5 | sudo apt-get install html-xml-utils
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/html/webp-fallback.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/jpegtran/jpegtran.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # jpegtran
4 | #=========
5 |
6 | # rotate image 90 degrees
7 | jpegtran -rot 90 -trim infile.JPG > outfile.jpg
8 |
--------------------------------------------------------------------------------
/macosx/growl/growlnotify.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # growlnotify
4 |
5 | # -t = title
6 | # -m = message
7 |
8 | /usr/local/bin/growlnotify -t "foo" -m "bar"
--------------------------------------------------------------------------------
/macosx/list_preferred_wireless_networks.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # list preferred wireless networks
4 |
5 | networksetup -listpreferredwirelessnetworks en0
--------------------------------------------------------------------------------
/rsync/rsync-home-backup.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # rsync home backup
4 | #==================
5 |
6 | rsync --delete -azvv /home/djwilcox /media/djwilcox/usb
7 |
--------------------------------------------------------------------------------
/sabnzbd/sabnzbd.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # sabnzbd usenet client install
4 | #==============================
5 |
6 | sudo apt-get install sabnzbdplus par2
7 |
--------------------------------------------------------------------------------
/ssh/tar-over-ssh.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * tar over ssh
3 |
4 | #+begin_src sh
5 | tar cvpzf -/ | ssh user@host ""cat > /backup.tar.gz""
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/sudo/sudo-preserve-enviornment.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * switch to sudo and preserve user enviornment
3 |
4 | #+begin_src sh
5 | su -
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/ubuntu/ubuntu-nixpkgs-wsl/.config/yt-dlp/config:
--------------------------------------------------------------------------------
1 | # external downloader aria2
2 | --downloader aria2c --downloader-args aria2c:'-c -j 3 -x 3 -s 3 -k 1M'
3 |
--------------------------------------------------------------------------------
/ubuntu/ubuntu-upgrade.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * ubuntu upgrade
3 |
4 | #+begin_src sh
5 | sudo do-release-upgrade -d --allow-third-party
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/vlc/vlc-cache-gen.md:
--------------------------------------------------------------------------------
1 | # vlc cache gen
2 |
3 | clear vlc plugin cache
4 |
5 | ```
6 | sudo /usr/local/lib/vlc/vlc-cache-gen /usr/local/lib/vlc/plugins/
7 | ```
--------------------------------------------------------------------------------
/arch-linux/pacman-gpg-keys.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * refresh pgp keys for packages
3 |
4 | #+begin_src sh
5 | sudo pacman-key --refresh-keys
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/bash/count_loop.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | COUNT=0
4 | while [ $COUNT -lt '4' ] ; do
5 | echo "COUNT IS $COUNT"
6 | COUNT="$(expr "$COUNT" '+' '1')"
7 | done
--------------------------------------------------------------------------------
/bash/speedtest.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # speedtest
4 | #==========
5 |
6 | wget -O /dev/null http://speedtest.wdc01.softlayer.com/downloads/test10.zip
7 |
8 |
--------------------------------------------------------------------------------
/css/css_centering.css:
--------------------------------------------------------------------------------
1 | **SelectionInsertionPlaceholder** {position: absolute;width: 100px;height: 100px;top: 50%;left: 50%;margin-top: -50px;margin-left: -50px;}
--------------------------------------------------------------------------------
/date/date.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * date - year month day
3 |
4 | date with year month day
5 |
6 | #+begin_src sh
7 | $(date +"%Y-%m-%d")
8 | #+end_src
9 |
--------------------------------------------------------------------------------
/dnssec-trigger/dnssec-trigger.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * dnssec-trigger
3 |
4 | #+begin_src sh
5 | sudo apt install unbound dnssec-trigger
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/egrep/egrep-links.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * egrep links
3 |
4 | #+begin_src sh
5 | egrep -o "(mailto|ftp|http(s)?://){1}[^'\"]+" file.html
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/html/safari 5 user agent string.html:
--------------------------------------------------------------------------------
1 | Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; zh-cn) AppleWebKit/533.18.1 (KHTML, like Gecko) Version/5.0.2 Safari/533.18.5
--------------------------------------------------------------------------------
/ls/ls-wc.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * use ls and wc to count files in a directory
3 |
4 | #+begin_src sh
5 | ls /usr/bin/ | sort | uniq | wc -l
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/netstat/netstat-network-data-transfer-rates.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * network data transfer rates
3 |
4 | #+begin_src sh
5 | netstat -w 1
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/raspberry-pi/synergy install raspberry pi.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # synergy install on Raspberry Pi
4 |
5 | sudo apt-get update
6 | sudo apt-get install synergy
--------------------------------------------------------------------------------
/st/st-increase-font-size.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: content
2 | * st terminal increase font size
3 |
4 | the default keybinding to increase font size is Ctrl+Shift+PageUp
5 |
--------------------------------------------------------------------------------
/ubuntu/nognome_notifications_setup/nognome_notifications:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # kill gnome notifications
4 |
5 | pkill -f 'org.gnome.Shell.Notifications'
6 |
7 |
--------------------------------------------------------------------------------
/urxvt/urxvt-ncurses.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * rxvt ncurces
3 |
4 | #+begin_src sh
5 | sudo apt install rxvt-unicode-256color ncurses-term
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/wget/mirror-website.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * wget mirror website
3 |
4 | #+begin_src sh
5 | wget -m http://textfiles.com/hacking/INTERNET/
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/arch-linux/arch-set-time.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * arch set time
3 |
4 | #+begin_src sh
5 | sudo su
6 | timedatectl set-time "2014-09-26 15:06:00"
7 | #+end_src
8 |
--------------------------------------------------------------------------------
/arp/arp.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | #+OPTIONS: num:nil
3 | #+OPTIONS: author:nil
4 |
5 | * show arp table
6 |
7 | #+BEGIN_SRC sh
8 | arp -a
9 | #+END_SRC
10 |
--------------------------------------------------------------------------------
/bash/colour_in_the_terminal.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # ==========================
4 | # = Colour in the terminal =
5 | # ==========================
6 |
7 | ls -G
8 |
--------------------------------------------------------------------------------
/curl/curl-determine-webserver.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * get to know what web server a site used
3 |
4 | #+begin_src sh
5 | curl -I www.google.com
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/history/history-save-as-script.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * history save last command as a script
3 |
4 | #+begin_src sh
5 | echo !! > script.sh
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/macosx/mac-nfs.md:
--------------------------------------------------------------------------------
1 | # mac mount nfs shares
2 |
3 | mac mount nfs share
4 |
5 | ```
6 | sudo mount -o rw -t nfs 192.168.1.25:/music /Users/username/Music/mpd
7 | ```
8 |
--------------------------------------------------------------------------------
/sed/prepend-text-to-file.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * sed prepend 127.0.0.1 to file
3 |
4 | #+begin_src sh
5 | sed -i.bak 's/^/127.0.0.1 /' file.txt
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/sox/sox-effects/3eq.txt:
--------------------------------------------------------------------------------
1 | equalizer 189 0.7q -6.0
2 | equalizer 261 0.7q -5.0
3 | equalizer 829 0.7q -4.0
4 | equalizer 3089 0.7q -2.0
5 | equalizer 5000 0.7q -2.0
6 |
--------------------------------------------------------------------------------
/stat/stat-octal-file-permissions.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * show octal version of file permission
3 |
4 | #+begin_src sh
5 | stat -f "%p" filename
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/strings/strings.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # strings
4 | #========
5 |
6 | # search for the string my_string in a spreadsheet
7 | strings book1.xls | grep my_string
8 |
--------------------------------------------------------------------------------
/sudo/run-last-command-in-history-with-sudo.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * run last command in history with sudo
3 |
4 | #+begin_src sh
5 | sudo !!
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/uberwriter/uberwriter-install.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo add-apt-repository ppa:w-vollprecht/ppa
4 | sudo apt-get update
5 | sudo apt-get install uberwriter
6 |
7 |
--------------------------------------------------------------------------------
/ubuntu/disable-ubuntu-apt-news.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * disable ubuntu apt news
3 |
4 | #+begin_src sh
5 | sudo pro config set apt_news=false
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/awk/awk-csv-to-plain-text.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: content
2 | * awk convert csv to plain text
3 |
4 | #+begin_src sh
5 | awk -v RS=, '$1' input.csv > output.txt
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/awk/awk-grab-second-field.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * awk grab second field
3 |
4 | #+begin_src sh
5 | awk '{print $2}' file.txt | sort | uniq > uniq.txt
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/awk/get-last-line-of-file.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * awk get the last line of a line
3 |
4 | #+begin_src sh
5 | awk 'END { printf("%f\n", $NF) }' input
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/bash/fmt_paragrapghs.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # fmt command to wrap paragrapghs to line length
4 |
5 | # goal and maximum line length
6 |
7 | fmt 20 25 < in.txt > out.txt
--------------------------------------------------------------------------------
/bash/read.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | printf "Type three numbers separated by 'q'. -> "
3 | IFS="q"
4 | read NUMBER1 NUMBER2 NUMBER3
5 | echo "You said: $NUMBER1, $NUMBER2, $NUMBER3"
--------------------------------------------------------------------------------
/cat/cat-redirection.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * cat redirection
3 |
4 | #+begin_src sh
5 | cat << EOF > file
6 | line one
7 | line two
8 | EOF
9 | #+end_src
10 |
--------------------------------------------------------------------------------
/css/webkit-font-smoothing.css:
--------------------------------------------------------------------------------
1 | -webkit-font-smoothing: none;
2 |
3 | -webkit-font-smoothing: subpixel-antialiased;
4 |
5 | -webkit-font-smoothing: antialiased;
6 |
7 |
--------------------------------------------------------------------------------
/curl/curl-download-with-pause.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * curl download with pause
3 |
4 | #+begin_src sh
5 | curl -C - -O http://somedomain.com/file.pdf
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/cut/cut.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * cut
3 |
4 | display the third column delimited by a blank space
5 |
6 | #+begin_src sh
7 | ls -l | cut -d" " -f3
8 | #+end_src
9 |
--------------------------------------------------------------------------------
/debian/debian-add-repo.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * add-apt-repository set up
3 |
4 | #+begin_src sh
5 | sudo apt install software-properties-common
6 | #+end_src
7 |
8 |
--------------------------------------------------------------------------------
/diff/diff-tips.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * diff tips
3 |
4 | #+begin_src sh
5 | diff -qr directory1 directory2 | grep -v -e 'DS_Store' | sort > diff.txt
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/dnscrypt-proxy/dnscrypt-conf/dnscrypt-proxy-service-override.conf:
--------------------------------------------------------------------------------
1 | [Service]
2 |
3 | ExecStart=
4 | ExecStart=/usr/bin/dnscrypt-proxy -R dnscrypt.eu-nl --user=dnscrypt
5 |
--------------------------------------------------------------------------------
/dnsmasq/swiss-privacy-foundation-dns.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # swiss privacy foundation dns
4 | #=============================
5 |
6 | 77.109.138.45
7 | 77.109.139.29
8 |
--------------------------------------------------------------------------------
/find/find-and-zip-file.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * find and zip file
3 |
4 | #+begin_src sh
5 | find directory -name 'index.html' | zip -@ index.html.zip
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/gparted/hfs-support-gparted.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * hfs support for gparted
3 |
4 | #+begin_src sh
5 | sudo apt-get install hfsplus hfsutils hfsprogs
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/gvfs-mount/gvfs-mount.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * mount smb share (password saved in gnome keyring)
3 |
4 | #+begin_src sh
5 | gvfs-mount smb://nas/music
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/iptables/iptables-persistent.org:
--------------------------------------------------------------------------------
1 | * iptables-persistent
2 |
3 | iptables-persistent
4 |
5 | #+begin_src sh
6 | sudo apt-get install iptables-persistent
7 | #+end_src
8 |
--------------------------------------------------------------------------------
/kodi/xbmc_install.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # xbmc install
4 | sudo add-apt-repository ppa:team-xbmc/ppa
5 | sudo apt-get update
6 | sudo apt-get install xbmc
7 |
8 |
9 |
--------------------------------------------------------------------------------
/macosx/quick_look.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # ===========================
4 | # = quick look command line =
5 | # ===========================
6 |
7 |
8 | qlmanage -p filename
--------------------------------------------------------------------------------
/macosx/sips/sips_crop.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # crop images with sips
4 |
5 | # sips --cropToHeightWidth height width *.png
6 |
7 | sips --cropToHeightWidth 93 223 *.png
--------------------------------------------------------------------------------
/mpv/mpv.conf:
--------------------------------------------------------------------------------
1 | # ao=alsa:device=[plughw:1] # internal speakers
2 | ao=alsa:device=[plughw:1] # usb dac
3 | softvol=no
4 |
5 | deinterlace=yes # deinterlace video for football
--------------------------------------------------------------------------------
/newsboat/youtube-newsboat/youtube-rss:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | xsltproc "${HOME}/.config/newsboat/stylesheets/youtube-rss.xsl" "$1" - | sed 's/\
*/
/g; s/^$/
/g'
4 |
--------------------------------------------------------------------------------
/oathtool/oathtool-install.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * oathtool install for google 2 factor codes
3 |
4 | #+begin_src sh
5 | sudo apt-get install oathtool
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/openbsd/openbsd-suspend.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 |
4 | # openbsd suspend
5 | #================
6 |
7 | sudo vim /etc/sysctl.conf
8 |
9 | machdep.lidsuspend=1
10 |
--------------------------------------------------------------------------------
/tmux/tmux-rename-window.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * tmux rename window
3 |
4 | #+begin_example
5 | tmux rename-window (prefix + ,)
6 | cmd a ,
7 | #+end_example
8 |
9 |
--------------------------------------------------------------------------------
/tv-maxe/tv-maxe-install.sh :
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # tv-maxe install
4 | sudo add-apt-repository ppa:venerix/pkg
5 | sudo apt-get update; sudo apt-get install tv-maxe
6 |
--------------------------------------------------------------------------------
/unset/unset-function.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * unset a function, like unaliasing an alias
3 |
4 | #+begin_src sh
5 | unset -f my_function
6 | #+end_src
7 |
8 |
9 |
--------------------------------------------------------------------------------
/weather/wttr-weather.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * wttr weather
3 |
4 | show the weather in the terminal
5 |
6 | #+begin_src sh
7 | curl wttr.in/london
8 | #+end_src
9 |
--------------------------------------------------------------------------------
/wget/download-html-page.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * wget download single page
3 |
4 | #+begin_src sh
5 | wget -p -k http://example.com/index.html
6 | #+end_src
7 |
8 |
--------------------------------------------------------------------------------
/xcode/applicationShouldTerminateAfterLastWindowClosed.txt:
--------------------------------------------------------------------------------
1 | - (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)theApplication
2 | {
3 | return YES;
4 | }
--------------------------------------------------------------------------------
/arch-linux/alsa-audio-archlinux.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * alsa audio arch linux
3 |
4 | #+begin_src sh
5 | sudo pacman -S alsa-lib alsa-utils alsa-plugins
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/base64/base64-decode-text-file.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * decode base64 encoded text file
3 |
4 | #+begin_src sh
5 | base64 -di textfile.txt > decoded.txt
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/chkrootkit/chkrootkit_install.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # check for rootkits with chkrootkit
4 | sudo apt-get install chkrootkit
5 |
6 | # run chkrootkit
7 | sudo chkrootkit
8 |
--------------------------------------------------------------------------------
/emacs/org-mode-copy-url.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * org mode copy url
3 |
4 | copy a url from an org link
5 |
6 | #+begin_example
7 | C-c C-l C-a C-k C-g
8 | #+end_example
9 |
--------------------------------------------------------------------------------
/google/google_webcache.txt:
--------------------------------------------------------------------------------
1 | google webcache to search anonymously
2 |
3 | http://webcache.googleusercontent.com/search?q=cache:http://okhelloyou.co.uk&hl=en&prmd=imvns&strip=1
--------------------------------------------------------------------------------
/macosx/box.net_webdav_settings.txt:
--------------------------------------------------------------------------------
1 |
2 | box.net webdav settings
3 |
4 |
5 | url
6 |
7 | http://box.net/dav//
8 |
9 |
10 | username:
11 |
12 | password:
13 |
14 |
--------------------------------------------------------------------------------
/macosx/google chrome security.txt:
--------------------------------------------------------------------------------
1 | google chrome security
2 |
3 | # shortcut to administer https
4 | chrome://net-internals/
5 |
6 | # shortcut to plugins page
7 | about:plugins
--------------------------------------------------------------------------------
/mpv/mpv-stereo.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * mpv downmix to stereo
3 |
4 | mpv downmix audio
5 |
6 | #+begin_src sh
7 | mpv --audio-channels=stereo file.mkv
8 | #+end_src
9 |
--------------------------------------------------------------------------------
/pandoc/pandoc-webclipper/mimeinfo.cache:
--------------------------------------------------------------------------------
1 | [MIME Cache]
2 | x-scheme-handler/org-protocol=org-protocol.desktop;
3 | x-scheme-handler/pandoc-protocol=pandoc-protocol.desktop;
4 |
--------------------------------------------------------------------------------
/ranger/ranger.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # ranger file manager
4 | sudo pacman -S ranger atool highlight w3m
5 |
6 | # copy ranger config to home
7 | ranger --copy-config=all
8 |
--------------------------------------------------------------------------------
/sha1sum/sha1sum-for-password.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * create sha1sum for password
3 |
4 | #+begin_src sh
5 | echo -n password | sha1sum | awk '{print $1}'
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/tar/tar-files.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * compress a folder with tar to create a .tar.gz archive
3 |
4 | #+begin_src sh
5 | tar zcvf filename.tar.gz filename
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/tshark/tshark-search-for-hosts.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # tshark search for hosts
4 | #========================
5 |
6 | tshark -r file.pcap -q -z hosts,ipv4 > tshark-hosts.txt
--------------------------------------------------------------------------------
/ubuntu/xsessions.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * xsessions directory
3 |
4 | xession directory for session files
5 |
6 | #+begin_src sh
7 | /usr/share/xsessions
8 | #+end_src
9 |
--------------------------------------------------------------------------------
/vlc/vlc-alsa-spdif-fix.txt:
--------------------------------------------------------------------------------
1 | # fix for distorted audio with aac audio and alsa
2 |
3 | open vlc preferences, and then select audio
4 |
5 | uncheck: Use S/PDIF when available
6 |
--------------------------------------------------------------------------------
/watch/watch-ps-ffmpeg.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * watch ffmpeg processes
3 |
4 | #+begin_src sh
5 | watch -n 1 "ps -C ffmpeg -o pid,comm,cmd,start,etime"
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/wget/wget-urls-from-file.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * download a list of urls from a text file with wget
3 |
4 | #+begin_src sh
5 | wget -i ~/Desktop/urls.txt
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/chmod/chmod-remove-permissions.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * remove write permission for group and other recurcivly
3 |
4 | #+begin_src sh
5 | chmod -R go-w filename
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/dnscrypt-proxy/dnscrypt-conf/dnscrypt-proxy-socket-override.conf:
--------------------------------------------------------------------------------
1 | [Socket]
2 | ListenStream=
3 | ListenDatagram=
4 | ListenStream=127.0.0.1:2053
5 | ListenDatagram=127.0.0.1:2053
6 |
--------------------------------------------------------------------------------
/flatpak/yaru-blue-dark-theme.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * yaru blue dark theme
3 |
4 | #+begin_src sh
5 | flatpak install --user org.gtk.Gtk3theme.Yaru-Blue-dark
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/git/discard-changes.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * git discard changes
3 |
4 | discard changes in working directory
5 |
6 | #+begin_src sh
7 | git checkout -- .
8 | #+end_src
9 |
--------------------------------------------------------------------------------
/macosx/find_mac_osx_version_on_command_line.txt:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # ========================
4 | # = find mac osx version =
5 | # ========================
6 |
7 |
8 | sw_vers
--------------------------------------------------------------------------------
/macosx/unistall_xcode.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # ===================
4 | # = uninstall xcode =
5 | # ===================
6 |
7 | sudo /Developer/Library/uninstall-devtools --mode=all
--------------------------------------------------------------------------------
/read/read.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # read readline
4 |
5 | read -erp "enter a directory path: " DIR
6 |
7 | # -e readline
8 | # -r var
9 | # -p prompt
10 |
11 | echo $DIR
--------------------------------------------------------------------------------
/sed/remove-comments-and-whitespace.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * sed remove comments and whitespace
3 |
4 | #+begin_src sh
5 | sed '/ *#/d; /^ *$/d' -i squid.conf
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/squeezelite/squeezelite-dac.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # squeezelite install
4 | yaourt -S squeezelite-git
5 |
6 | # squeezelite dac
7 | squeezelite -o iec958:CARD=M192kHz,DEV=0
8 |
--------------------------------------------------------------------------------
/ssh/show-host-key-fingerprint-as-image.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * show Host key fingerprint as image
3 |
4 | #+begin_src sh
5 | ssh -o VisualHostKey=yes user@host
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/st/st.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Type=Application
3 | Name=st
4 | Comment=simple-terminal emulator for X
5 | Icon=utilities-terminal
6 | Exec=st
7 | Categories=System;TerminalEmulator
--------------------------------------------------------------------------------
/tor/tor-dont-start-automatically.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # tor dont start automatically at boot
4 | #=====================================
5 |
6 | sudo update-rc.d tor disable
7 |
--------------------------------------------------------------------------------
/xmonad/xmonad.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Name=XMonad
3 | Comment=Lightweight tiling window manager
4 | Exec=/home/username/.cache/xmonad/xmonad-x86_64-linux
5 | Type=XSession
6 |
--------------------------------------------------------------------------------
/youtube-dl/youtube-dl-download-channel.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * youtube-dl download channel
3 |
4 | #+begin_src sh
5 | youtube-dl -citw ytuser:socialreporter
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/arch-linux/yaourt-remove-package-and-dependencies.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * yaourt remove package and dependencies
3 |
4 | #+begin_src sh
5 | yaourt -Rsn package-name
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/awk/awk-extract-text-between-brackets.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * awk extract text inside brackets
3 |
4 | #+begin_src sh
5 | awk -F'[][]' -v RS=" " '/http/ {print $2}'
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/beautiful-soup/beautiful-soup-install.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # beautiful soup python html parser
4 | #==================================
5 |
6 | sudo apt-get install python-bs4
7 |
8 |
--------------------------------------------------------------------------------
/css/css_reflection.css:
--------------------------------------------------------------------------------
1 | .reflect{
2 | -webkit-box-reflect:below 5px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(0.5, transparent), to(white));
3 | }
--------------------------------------------------------------------------------
/csvkit/csvjoin-join-2-csv-files.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * csvjoin
3 |
4 | join 2 csv files
5 |
6 | #+begin_src sh
7 | csvjoin input-1.csv input-2.csv > output.csv
8 | #+end_src
9 |
--------------------------------------------------------------------------------
/find/find-remove-dot-slash.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * find remove from ./ from file names
3 |
4 | #+begin_src sh
5 | find . -type f -regex ".*\.md$" -printf '%P\n'
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/find/find-xargs.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * find separates lines with ASCII null characters
3 |
4 | #+begin_src sh
5 | find . -print0 | xargs -0 grep -l myxomatosis
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/grep/grep-clipboard-for-http-links.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * pipe in clipboard and grep for http links
3 |
4 | #+begin_src sh
5 | pbpaste | grep -o 'http://[^"]*'
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/html/meta_description.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/javascript/ipad iphone prevent default scroll.js:
--------------------------------------------------------------------------------
1 | document.addEventListener('DOMContentLoaded', function() {
2 | document.ontouchmove = function(e){ e.preventDefault(); };
3 | }, false);
--------------------------------------------------------------------------------
/lsblk/lsblk.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * lsblk - list block devices
3 |
4 | print block devices by their assigned name in a tree format
5 |
6 | #+begin_src sh
7 | lsblk
8 | #+end_src
9 |
--------------------------------------------------------------------------------
/macosx/adblock_google_preview.txt:
--------------------------------------------------------------------------------
1 | www.google.co.uk##BUTTON[class="vspib"]
2 | www.google.co.uk##DIV[id="vspb"]
3 | www.google.com##BUTTON[class="vspib"]
4 | www.google.com##DIV[id="vspb"]
--------------------------------------------------------------------------------
/macosx/hosts/reload_hosts.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # ============================
4 | # = reload macosx /etc/hosts =
5 | # ============================
6 |
7 |
8 | dscacheutil -flushcache
--------------------------------------------------------------------------------
/macosx/mail copy urls.txt:
--------------------------------------------------------------------------------
1 | Stop Pasting Full Names When Copying an Email Address in Mac OS X Mail
2 |
3 |
4 | defaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool false
--------------------------------------------------------------------------------
/macosx/restart_a_filevault_encrypted_system.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # restart a FileVault-encrypted system
4 | # and have it boot back to a working state
5 |
6 | sudo fdesetup authrestart
--------------------------------------------------------------------------------
/mplayer/mplayer-headphones.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # mplayer headphones internal speakers
4 | #=====================================
5 |
6 | mplayer -ao alsa:device=plughw=0 video.mp4
7 |
--------------------------------------------------------------------------------
/pandoc/html5-base64.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * html5 base64
3 |
4 | #+begin_src sh
5 | pandoc -t html5 --self-contained -s -S --normalize -o outfile.html infile.md
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/pandoc/templates-setup.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * copy pandoc templates to home directory
3 |
4 | #+begin_src sh
5 | cp -R /usr/share/pandoc-1.10.1/data ~/.pandoc
6 | #+end_src
7 |
8 |
--------------------------------------------------------------------------------
/psad/psad_noemail.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # edit psad.conf and change the ALERTING_METHODS to noemail
4 | sudo vim /etc/psad/psad.conf
5 |
6 | ALERTING_METHODS noemail;
7 |
--------------------------------------------------------------------------------
/sed/find-http-links.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * sed find all http links
3 |
4 | #+begin_src sh
5 | sed -n "/href/ s/.*href=['\"]\([^'\"]*\)['\"].*/\1/gp" file.html
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/sed/strip-html-tags.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * sed strip html tags - edit original and make backup
3 |
4 | #+begin_src sh
5 | sed -i.bak 's/<[a-zA-Z\/][^>]*>//g'
6 | #+end_src
7 |
8 |
--------------------------------------------------------------------------------
/ssl/https-check-if-site-supports-ssl.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * https check if site supports ssl
3 |
4 | #+begin_src sh
5 | openssl s_client -connect www.somesite:443
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/v4l-utils/v4l-utils.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: content
2 | * v4l-utils
3 |
4 | install v4l-utils to get your webcam working
5 |
6 | #+begin_src sh
7 | sudo apt install v4l-utils
8 | #+end_src
9 |
--------------------------------------------------------------------------------
/w3m/w3m-variables.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: content
2 | * w3m show variables
3 |
4 | run the following command inside w3m to show variables
5 |
6 | #+begin_src sh
7 | !env | sort
8 | #+end_src
9 |
--------------------------------------------------------------------------------
/bash/yanking-text.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # cut text from the cursor to the begining of the line
4 | # ctrl k
5 |
6 |
7 | # cut text from the cursor to the end of the line
8 | # ctrl u
9 |
--------------------------------------------------------------------------------
/ffmpeg/extract-video.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: content
2 | #+OPTIONS: num:nil author:nil
3 | * extract video
4 |
5 | #+BEGIN_SRC sh
6 | ffmpeg -i infile.mp4 -an -c:v copy outfile.mp4
7 | #+END_SRC
8 |
--------------------------------------------------------------------------------
/ffprobe/ffprobe-show-streams.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * ffmpeg show streams, show video info icluding bitrate
3 |
4 | #+begin_src sh
5 | ffprobe -show_streams -i video.mp4
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/find/find-change-file-extension.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * change flv file extension to mp4
3 |
4 | #+begin_src sh
5 | find . -name "*.flv" -exec rename s/.flv/.mp4/ {} \;
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/git/remove-file-from-being-tracked.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * remove file from being tracked by git , but dont delete it
3 |
4 | #+begin_src sh
5 | git rm --cached filename
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/gollum-wiki/server/wiki-sync.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | WIKI_PATH=/var/wiki
4 | GIT=/usr/bin/git
5 |
6 | cd "${WIKI_PATH}"
7 | ${GIT} push
8 | sleep 1
9 | ${GIT} pull
10 |
11 | exit 0
--------------------------------------------------------------------------------
/html/ul_filled_with_links.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ifconfig/ifconfig-wlan.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * ifconfig wlan
3 |
4 | #+begin_src sh
5 | sudo ifconfig wlan0 10.0.0.69 netmask 255.255.255.0 route add default gw 10.0.0.1
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/kodi/xsessions/kodi.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Name=Kodi
3 | Comment=This session will start Kodi media center
4 | Exec=kodi-standalone
5 | TryExec=kodi-standalone
6 | Type=Application
7 |
--------------------------------------------------------------------------------
/macosx/list_most_used_terminal_commands.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # List Your 15 Most Used Terminal Commands
4 | history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head -15
--------------------------------------------------------------------------------
/mpd/mpd-smb-share.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * nas symlink for mpd
3 |
4 | #+begin_src sh
5 | ln -s /run/user/djwilcox/gvfs/smb-share:server=nas,share=music/flac/ ~/Music/nas
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/mplayer/mplayer-play-raw-pcm.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # play raw audio with mplayer
4 | mplayer -demuxer rawaudio -rawaudio format=0x20776172 /tmp/mpdfifo -ao pcm -vo null:file=test.wav
5 |
6 |
--------------------------------------------------------------------------------
/ncftp/ncftpget.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * ncftp
3 |
4 | #+begin_src sh
5 | ncftpget -R -T -v -u username -p password example.com /home/djwilcox/Desktop/site/ /public_html
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/netcat/netcat-google.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * netcat google
3 |
4 | #+begin_src sh
5 | (echo "GET / HTTP/1.0";echo "Host: www.google.com"; echo) | nc www.google.com 80
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/sox/sox-fifo-wav.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 |
4 | # save fifo pipe with sox
5 | sox -t raw -e signed-integer -b 16 -c 2 -r 44100 /tmp/mpdfifo out.wav
6 |
7 | # play
8 | sox -d -p /tmp/mpdfifo
9 |
--------------------------------------------------------------------------------
/tr/tr-replace-characters.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * Use the tr command to translate one character to another.
3 |
4 | #+begin_src sh
5 | tr ';' ',' after.txt
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/applescript/Save A List of URLs From Your Evernote Items As A File.scpt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/canyon289/cerberus/master/applescript/Save A List of URLs From Your Evernote Items As A File.scpt
--------------------------------------------------------------------------------
/arch-linux/android-fastboot-adb-install.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * android fastboot and adb install
3 |
4 | #+begin_src sh
5 | yaourt -S android-sdk-platform-tools android-udev
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/awk/print-first-and-second-line.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * awk print first and second lines
3 |
4 | #+begin_src sh
5 | awk 'NR > 1 {print prev, "-", $0}; {prev = $0}' < input
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/bash/rename_jpegs.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | for i in *.JPG ; do
3 | mv "$i" "$(echo $i | sed 's/\.JPG$/.x/')"
4 | mv "$(echo $i | sed 's/\.JPG$/.x/')" "$(echo $i | sed 's/\.JPG$/.jpg/')"
5 | done
--------------------------------------------------------------------------------
/ffmpeg/extarct-audio.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: content
2 | #+OPTIONS: num:nil author:nil
3 |
4 | * extract audio
5 |
6 | #+BEGIN_SRC sh
7 | ffmpeg -i infile.mp4 -vn -c:a copy outfile.m4a
8 | #+END_SRC
9 |
--------------------------------------------------------------------------------
/macosx/directory/directory.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # check if directory exists
4 |
5 | if [ -d "/System/Library/Frameworks" ] ; then
6 | echo "/System/Library/Frameworks is a directory."
7 | fi
--------------------------------------------------------------------------------
/mpv/mpv-ytdl.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * mpv ytdl
3 |
4 | play a youtube video using its id by prefix the link with ytdl://
5 |
6 | #+begin_src sh
7 | mpv ytdl://qYhNJ3itqWw
8 | #+end_src
9 |
--------------------------------------------------------------------------------
/nmap/nmap-router-scanning.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # nmap router scanning
4 |
5 | # syn scan
6 | sudo nmap -sS 192.168.1.1
7 |
8 | # os fingerprint scan
9 | sudo nmap -A 192.168.1.1
10 |
--------------------------------------------------------------------------------
/psad/psad_install.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # psad install to work with fwsnort and iptables
4 | sudo apt-get install psad
5 |
6 | # press enter during the install to accept the default options
7 |
--------------------------------------------------------------------------------
/sed/find-image-urls-in-html.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * sed get image urls from html file
3 |
4 | #+begin_src sh
5 | sed -n 's/.*
>2)) != 0)' -R 'http.request.method == "GET" || http.request.method == "HEAD"'
--------------------------------------------------------------------------------
/zsh/zsh-completions-location.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * zsh completions location
3 |
4 | zsh completions location
5 |
6 | #+begin_src sh
7 | /usr/share/zsh/vendor-completions
8 | #+end_src
9 |
--------------------------------------------------------------------------------
/andriod/android usb tethering mac.txt:
--------------------------------------------------------------------------------
1 | Android usb tethering mac
2 |
3 | Install HoRNDIS
4 |
5 | http://joshuawise.com/horndis
6 |
7 |
8 | That should create a new network in system preferences network
--------------------------------------------------------------------------------
/arch-linux/gpg-pacman-fix.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * pacman gpg fix
3 |
4 | uncomment ~/.gnupg-personal/gpg.conf
5 |
6 | #+begin_src conf
7 | #keyserver-options auto-key-retrieve
8 | #+end_src
9 |
--------------------------------------------------------------------------------
/bash/bashrc_default.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # default .bashrc location on linux
4 |
5 | /etc/skel/.bashrc
6 |
7 | # copy default bashrc to home dir
8 | cp /etc/skel/.bashrc ~/.bashrc
9 |
10 |
--------------------------------------------------------------------------------
/cups/cups-pdf.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # cups-pdf printer
4 | #=================
5 |
6 | # install cups-pdf
7 | sudo apt-get install cups-pdf
8 |
9 | # print a file
10 | lpr -P PDF file
11 |
--------------------------------------------------------------------------------
/firefox/firefox-75-config.tx:
--------------------------------------------------------------------------------
1 | browser.urlbar.openViewOnFocus = false
2 | browser.urlbar.update1 = false
3 | browser.urlbar.update1.interventions = false
4 | browser.urlbar.update1. searchTips = false
5 |
--------------------------------------------------------------------------------
/freebsd/dbus.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | #+OPTIONS: num:nil
3 | #+OPTIONS: author:nil
4 |
5 | * freebsd dbus
6 |
7 | #+BEGIN_SRC sh
8 | sudo dbus-uuidgen > /etc/machine-id
9 | #+END_SRC
10 |
--------------------------------------------------------------------------------
/html/absolute_center_image.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |  |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/macosx/apache/apache_restart_mac_osx.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # ==========================
4 | # = Apache restart mac osx =
5 | # ==========================
6 |
7 | sudo /usr/sbin/apachectl restart
--------------------------------------------------------------------------------
/mysql/mysql-login-bypass.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # mysql injection
4 | SELECT * FROM SOMETABLE WHERE UID = ' ' AND PWD = ' '
5 |
6 | SELECT * FROM SOMETABLE WHERE UID = ' ' OR 1=1--' AND PWD = ' '
7 |
--------------------------------------------------------------------------------
/ogr2ogr/geojson-to-kml.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * convert geojson to kml
3 |
4 | ogr2ogr convert geojson to kml
5 |
6 | #+begin_src sh
7 | ogr2ogr -f KML output.kml input.geojson
8 | #+end_src
9 |
--------------------------------------------------------------------------------
/proxychains/proxychains-setup.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # proxychains set up
4 | sudo apt-get install proxychains
5 |
6 | # resolve dns with proxyresolv
7 | /usr/lib/proxychains3/proxyresolv example.com
8 |
--------------------------------------------------------------------------------
/tr/tr-convert-dos-to-unix.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * tr convert dos to unix
3 |
4 | Convert dos line endings to unix
5 |
6 | #+begin_src sh
7 | tr -d '\r' < input.file > output.file
8 | #+end_src
9 |
--------------------------------------------------------------------------------
/ubuntu/gnome-window-always-on-top.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * gnome window always on top
3 |
4 | press alt tab and select always on top,
5 | this will set the window to float above other windows
6 |
--------------------------------------------------------------------------------
/xrandr/xprofile:
--------------------------------------------------------------------------------
1 | xrandr --newmode "1368x768_60.00" 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync
2 | xrandr --addmode Virtual-0 1368x768_60.00
3 | xrandr --output Virtual-0 --mode 1368x768_60.00
--------------------------------------------------------------------------------
/zsh/zsh-setup.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: content
2 | * zsh setup
3 |
4 | install zsh and zsh-syntaxt-highlighting
5 |
6 | #+begin_src sh
7 | sudo apt install install zsh zsh-syntax-highlighting
8 | #+end_src
9 |
--------------------------------------------------------------------------------
/chmod/chmod-match-file-permissions.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * chmod - change file permissions of a file to be similar of another
3 |
4 | #+begin_src sh
5 | chmod --reference=file1 file2
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/css/test_selection_colour.css:
--------------------------------------------------------------------------------
1 | /* Mozilla based browsers */::-moz-selection { background-color: #FFA; color: #000;}/* Works in Safari */::selection { background-color: #FFA; color: #000;}
--------------------------------------------------------------------------------
/firefox/picture-in-picture-keyboard.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * firefox picture in picture keyboard shortcut
3 |
4 | toggle picture in picture
5 |
6 | #+begin_example
7 | Ctrl+Shift+]
8 | #+end_example
9 |
--------------------------------------------------------------------------------
/kali-linux/mdk.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # mdk
4 |
5 | mdk mon0 b -n pwned
6 |
7 | # mon0 = wlan0 in monitor mode
8 | # b = beacon frames
9 | # -n pwned = network bssid to create
10 |
11 |
12 |
--------------------------------------------------------------------------------
/rename/rename-to-lowercase.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Convert all files in the current directory to lower case
4 | #=========================================================
5 |
6 | rename 'y/A-Z/a-z/' *
7 |
--------------------------------------------------------------------------------
/sed/prepend-domain.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * sed prepend domain to file
3 |
4 | sed prepend domain to text file
5 |
6 | #+begin_src sh
7 | sed -i.bak 's#^#http://example.com#' file.txt
8 | #+end_src
9 |
--------------------------------------------------------------------------------
/ssh/ssh-socks5.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * ssh socks5 proxy
3 |
4 | #+begin_src sh
5 | ssh -D 8080 user@server.com
6 | #+end_src
7 |
8 | set proxy switcher in chhrome to 127.0.0.1 port 8080, socks5
9 |
--------------------------------------------------------------------------------
/tcpdump/tcpdump-capture-traffic-from-host.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * tcpdump capture traffic from host
3 |
4 | #+begin_src sh
5 | doas tcpdump -s 0 host 192.168.1.4 -i wlan0 -w wlan0.pcap
6 | #+end_src
7 |
--------------------------------------------------------------------------------
/bash/if.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | FIRST_ARGUMENT="$1"
4 | if [ "$FIRST_ARGUMENT" = "Silly" ] ; then
5 | echo "Silly human, scripts are for kiddies."
6 | else
7 | echo "Hello, world $FIRST_ARGUMENT!"
8 | fi
--------------------------------------------------------------------------------
/bash/uppercase-lowercase-in-terminal.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # change text to upper or lowercase in the terminal
4 |
5 | # make text lowercase
6 | # alt l
7 |
8 | # make text uppercase
9 | # alt u
10 |
--------------------------------------------------------------------------------
/cd/cd-last-history-command.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: showall
2 | * cd into last directory created in history
3 |
4 | #+begin_src sh
5 | mkdir foo
6 | #+end_src
7 |
8 | #+begin_src sh
9 | cd !$
10 | #+end_src
11 |
--------------------------------------------------------------------------------
/docker/docker-registry/docker-registry-storage/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM ubuntu:14.04
2 | MAINTAINER napoleonwilson
3 |
4 | RUN mkdir -p /home/docker
5 |
6 | VOLUME /home/docker
7 | CMD ["true"]
--------------------------------------------------------------------------------
/ffmpeg/change-framerate.org:
--------------------------------------------------------------------------------
1 | #+STARTUP: content
2 | #+OPTIONS: num:nil author:nil
3 | * ffmpeg change framerate
4 |
5 | #+BEGIN_SRC sh
6 | ffmpeg -i -filter:v fps=fps=30