idea and some snippets taken from pascalpoitras' weechat config
/mouse enable
/secure passphrase <pass>
/secure set relaypass <pass>
/secure set bitlbeepass <pass>
/secure set bncaddrport
idea and some snippets taken from pascalpoitras' weechat config
/mouse enable
/secure passphrase <pass>
/secure set relaypass <pass>
/secure set bitlbeepass <pass>
/secure set bncaddrport
| <?php | |
| function CheckIfSpambot($emailAddress, $ipAddress, $userName, $debug = false) | |
| { | |
| $spambot = false; | |
| $errorDetected = false; | |
| if ($emailAddress != "") | |
| { | |
| $xml_string = file_get_contents("http://www.stopforumspam.com/api?email=" . urlencode($emailAddress)); | |
| $xml = new SimpleXMLElement($xml_string); |
| <?php | |
| //scan_pics.php | |
| //Mass image scanner for URLs. | |
| //Valid known prefixes: DSC, DSCN, DSCF, DSC_, DSC, IMG, IMG_, Photo, PIC | |
| //Valid suffixes: .jpg, .png (etc, keep in mind on linux servers file names are case sensitive, so searching for .JPG, .PNG may be useful, but cameras usually save them as lowercase .jpg), _DSCN.jpg (in rare cases) | |
| //For more suffixes or prefixes read up on http://en.wikipedia.org/wiki/Design_rule_for_Camera_File_system | |
| //Optimal usage: /scan_pics.php?url=http://filesmelt.com/dl/&prefix=DSC&suffix=.jpg | |
| //You must edit the URL to your own likings. |
echo 'defaults.pcm.rate_converter "speexrate_best"' | tee -a .asoundrc
sudo alsactl restore
sudo echo 'default-sample-format = s24le' | sudo tee -a /etc/pulse/daemon.conf
sudo echo 'default-sample-rate = 192000' | sudo tee -a /etc/pulse/daemon.conf
| # Hardened sshd_config by Kei (https://kei.a52.io/) | |
| # This config was made for personal use. If you're going to use it, edit it to your likings or be locked out forever. | |
| # THIS MAY BECOME OUTDATED OR MAY END UP NOT BEING SECURE AT ALL, USE AT YOUR OWN RISK | |
| # Summary: | |
| # Protocol 2 used by default. | |
| # Port 2244 used by default. | |
| # Only selected users in AllowUsers may log in. | |
| # Root can only log in using key authentication by default (change PermitRootLogin to yes if you want to allow root with passwords). | |
| # X11 Forwarding is disabled by default. |
| #!/bin/sh | |
| # Simple Bash Uploader (simple-bash-upload.sh) | |
| # by kei - https://kei.a52.io/ | |
| # This will upload a file/screenshot to a server of your choice and automatically copy you the direct link to it. | |
| # Supports regular file uploading + full-screen, active window and selected area screenshots. | |
| # Usage: simple-bash-upload.sh [full|active|selection|filename.ext] | |
| # Can be used directly from console to upload files (./simple-bash-upload.sh file.png) or assigned to a custom action in Thunar (./simple-bash-upload.sh %f) | |
| # Can also be bound to run on certain keypresses such as print screen, alt+print screen and ctrl+print screen. |
| #!/bin/sh | |
| REPO="https://github.com/<user>/<repo>" | |
| PATH="/path/to/repository" | |
| LATEST=`/usr/bin/git ls-remote $REPO refs/heads/master | /usr/bin/cut -f 1` | |
| CURRENT=`/usr/bin/git -C $PATH rev-parse HEAD` | |
| echo "Current Revision: $CURRENT" | |
| echo "Latest Revision: $LATEST" |
| # this is not a full .bashrc file! | |
| # copy aliases you want or need for your own .bashrc | |
| # some of these aliases will also easily work in other shells such as fish! (~/.config/fish/config.fish) | |
| # reload bashrc | |
| alias rl='. ~/.bashrc' #reload .bashrc | |
| # info/find/usful | |
| alias psg="ps aux | grep" # usage: psg <process name> - quick ps grep. | |
| alias hsg="history | grep" # usage: hsg <string> - quick history grep. |
| # Download an Arch ISO from https://www.archlinux.org and copy it to a USB drive: | |
| sudo dd bs=4M if=archlinux-2019.01.01-x86_64.iso of=/dev/sdb status=progress oflag=sync | |
| # then plug it into the device of your preference, boot it and start the installation process. | |
| # Installation process: | |
| # Set UK keymap | |
| loadkeys uk | |
| # Set up partitions (MBR) | |
| parted /dev/sdX mklabel msdos |
| # Obtain the latest Void Linux base live ISO from: | |
| # https://voidlinux.org/download/ (plain musl version) | |
| # Write it to a USB drive: | |
| # sudo dd bs=4M if=void-live-x86_64-musl-20181111.iso of=/dev/sdb status=progress oflag=sync | |
| # Switch to bash (easier to use while installing) | |
| bash | |
| # Set UK keymap |