Tuesday, March 5th, 2019 | Technology
This is one of my favorite pieces of electronic equipment that I own. Any device that allows me to interface with the real world—and natively with my Mac—is a piece of art. The GPIO interface connects via USB to the computer on one side, while two 10-pin SIP connectors provide power, ground, and I/O pins on the other.
The FT232-H supports many protocols, which I don't delve into. However, I do utilize the digital I/O pins for standard binary input. This allows for integration with simple switch circuits and advanced button matrices, or a parallel binary connection to any other circuit, for example, a binary decoder (74HC595).
A Python API exposes all the basic services of the chip and enables rapid integration into any programming environment that requires GPIO. This solution offers an affordable, expandable I/O interface for all popular computing platforms, ultimately controlled via shell scripts and abstracted through a web interface. The design fosters opportunities for remote IoT installations or for extending the digital GUI into a unique, hands-on physical experience.
Resources:
https://learn.adafruit.com/circuitpython-on-any-computer-with-ft232h/mac-osx
Friday, May 26th, 2023 | Technology
Here are some tips and tricks for WordPress developers:
1. Stay Updated: Keep yourself updated with the latest versions of WordPress, themes, and plugins. Stay informed about new features, security updates, and best practices by following WordPress news, official documentation, and developer resources.
2. Use Child Themes: When customizing a WordPress theme, create a child theme instead of modifying the parent theme directly. This allows you to preserve your changes even when the parent theme is updated. Child themes inherit the functionality and styling of the parent theme while giving you the flexibility to make modifications.
3. Use Hooks and Filters: WordPress provides a robust system of hooks and filters that allow you to modify the behavior and appearance of WordPress core, themes, and plugins. Hooks (actions and filters) provide a way to insert custom code at specific points in the execution flow, enabling you to extend and customize WordPress functionality without modifying the core files directly.
4. Debugging Tools: Utilize debugging tools and techniques to identify and fix issues efficiently. Enable WP_DEBUG in your development environment to display PHP errors and warnings. Use debugging plugins, such as Query Monitor or Debug Bar, to analyze database queries, PHP errors, and performance bottlenecks.
5. Secure Your Website: Implement security measures to protect your WordPress website. Use strong passwords, keep your themes and plugins updated, and regularly backup your site. Consider using security plugins and employing security best practices, such as two-factor authentication and limiting login attempts, to enhance the security of your WordPress installation.
6. Optimize Performance: Optimize your WordPress website for better performance. Minimize HTTP requests, leverage caching mechanisms, optimize images, and use a content delivery network (CDN) to improve page load times. Performance optimization plugins, such as WP Rocket or W3 Total Cache, can assist in implementing these optimizations.
7. Version Control: Use a version control system like Git to track changes and collaborate with other developers effectively. Version control helps you manage different versions of your code, track changes, and easily roll back to previous versions if needed.
8. Community Engagement: Engage with the WordPress community by participating in forums, attending WordCamps or local WordPress meetups, and contributing to the WordPress project. Networking with other developers can provide valuable insights, learning opportunities, and potential collaborations.
9. Documentation and Testing: Maintain clear and comprehensive documentation for your WordPress projects. Document code, APIs, customizations, and any project-specific information. Additionally, write unit tests to ensure the stability and quality of your codebase.
10. Continual Learning: WordPress evolves rapidly, so commit to continuous learning. Explore new technologies, frameworks, and coding practices. Stay updated with industry trends and best practices in web development to enhance your skills and deliver better WordPress solutions.
Remember, these tips and tricks are meant to assist you in developing high-quality WordPress websites. Adapt them based on your specific project requirements and keep exploring new techniques and strategies as you grow as a WordPress developer.
Friday, March 23rd, 2018 | Lifestyle
I've always been fascinated by wizardry and our geophysical relationship with the earth and sky. Ready to get started? Check out this amazing guide on treeing, the method for reupping your wizard energy:
http://www.artofmodernwizardry.org/treeing-how-wizards-connect-to-the-universe/
Wednesday, June 1st, 2022 | System
https://aws.amazon.com/premiumsupport/knowledge-center/ses-receive-inbound-emails/
Tuesday, July 13th, 2021 | Design
Bootstrap 3 -> 5 Migration
Replace btn-block with col-*
Replace hidden-xs hidden-sm -> ?
Replace img-responsive with fluid
Replace sr-only with visually-hidden
Breadcrumbs:
add breadcrumb-item to li class
move into nav tag for background
Tuesday, January 22nd, 2019 | Server
Links:
https://linuxize.com/post/how-to-set-up-apache-virtual-hosts-on-centos-7/
https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-centos-7
Local Domain:
https://askubuntu.com/questions/52664/how-do-i-set-up-a-local-domain-name-in-apache-and-ubuntu-eg-website-sam
Tuesday, January 22nd, 2019 | Server
Live example:
Run Certbot for default Apache configuration, requires listener on port 80:
sudo certbot --apache
sudo certbot --apache certonly
Resources:
LINUX - CentOs 7
https://certbot.eff.org/lets-encrypt/centosrhel7-apache
Sunday, February 3rd, 2019 | Server
Virtual Machines required a bridge for access to the local DHCP network.
First:
Ensure you have added the bridge name to /etc/qemu/bridge.conf.
Wednesday, September 16th, 2020 | System
View / Clear Logs:
* add new line to end ( backslash n ) inside single quotes
cd /var/www find . -type f -name requests.log -printf '%s %p' find . -type f -name error.log -printf '%s %p' cd /var/www find . -name 'requests.log' -exec sh -c '> {}' \; find . -name 'error.log' -exec sh -c '> {}' \;
Sort logs alphabetically:
find . -type f -name access.log -exec du -bh {} \; | sort -k 2 find . -type f -name requests.log -exec du -bh {} \; | sort -k 2 find . -type f -name error.log -exec du -bh {} \; | sort -k 2
Wednesday, February 20th, 2019 | Server
Live example:
virsh dumpxml virsh dumpxml centos7.0
virsh list
virsh list --all
virsh edit centos7.0
Tuesday, January 22nd, 2019 | Server
https://www.techotopia.com/index.php/Creating_a_CentOS_KVM_Networked_Bridge_Interface
https://www.linuxjournal.com/article/8172
https://sandilands.info/sgordon/linux-servers-as-kvm-virtual-machines
Monday, October 12th, 2020 | Server
<interface type='bridge'>
<mac address='52:54:00:32:83:B5'/>
<source bridge='br-em1'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
Tuesday, June 28th, 2022 | System
SSL/TLS
Full / Full Strict
SSL/TLS Recommender
Edge Cert
Always use HTTPS
TLS 1.2
Security
Bots
Bot Fight Mode
Speed
Optimization
Early Hints
Auto Minify
Caching
Crawler Hints
Always Online
#### ### ## #
Reference: https://e19creative.com/blog/cloudflare-waf-and-page-rules ( Private )
Tuesday, January 22nd, 2019 | Server
https://helpx.adobe.com/coldfusion/pdf-generation-in-coldfusion.html
Download and Install: font-ibm-type1-1.0.3.zip.
https://helpx.adobe.com/experience-manager/6-3/forms/using/install-configure-pdf-generator.html
Monday, February 12th, 2018 | Coding
#!/bin/bash
clear
echo "Please make yourselves comfortable"
echo "while I go to the door of the Throne Room"
echo "and tell Oz you are here."
# START APACHE SERVER
apachectl start
# START MYSQL SERVER
cd /usr/local/mysql/support-files
./mysql.server start
# START COLDFUSION
cd /Applications/ColdFusion11/cfusion/bin
./coldfusion start
Tuesday, January 30th, 2018 | Coding
< cfdump var="#htaccess#"> < cfdirectory directory="ram:///" name="files" recurse="true"> < cfdump var="#files#">
Monday, February 12th, 2018 | Coding
#!/bin/bash clear echo "Please make yourselves comfortable" echo "while I go to the door of the Throne Room" echo "and tell Oz you are here." # START APACHE SERVER cd /etc/init.d/ ./apache2 start
# START MYSQL SERVER cd /etc/init.d mysql start # START COLDFUSION cd /opt/coldfusion9/bin ./coldfusion start
Sunday, January 7th, 2018 | Coding
File name patterns: *, !*.jpg, !*.mp3, !*.ogg, !*.png, !*.wav, !*.zip, !.DS_Store
Thursday, February 9th, 2023 | Coding
Uppercase the first character of each word in the string:
Snippet: #ReReplace('text string',"(^[a-z]|\s+[a-z])","\U\1","ALL")#
Input: 'text string'
Output: 'Text String'
Uppercase the first character of the first word in the string:
Snippet: #ReReplace('text string',"(^[a-z])","\U\1","ALL")#
Input: 'text string'
Output: 'Text string'
http://coldfusionsnippets.blogspot.com/2010/03/uppercase-first.html
Wednesday, October 31st, 2018 | Technology
-ws Apache -dir /private/etc/apache2 -bin /usr/sbin/httpd - script /usr/sbin/apachectl
config: /private/etc/apache2/httpd.conf
Wednesday, March 22nd, 2023 | Server
Standard values for a RHEL/CentOS 7 Apache:
Conf: /etc/httpd/conf
Binary: /usr/sbin/httpd
Script: /usr/sbin/apachectl
CLI Path: /opt/ColdFusion2021/cfusion/runtime/bin
CLI: ./wsconfig -ws Apache -dir /etc/httpd/conf -bin /usr/sbin/httpd -script /usr/sbin/apachectl
Manual Configuration: https://helpx.adobe.com/coldfusion/kb/coldfusion-apache-manual-connector-configuration.html
Wednesday, January 31st, 2018 | Coding
Tuesday, July 27th, 2021 | Server
Connection String
zeroDateTimeBehavior=convertToNull&serverTimezone=America/New_York
Friday, March 24th, 2023 | Server
The most helpful links:
Charlie Arehart blog with fixes:
https://www.carehart.org/blog/2023/3/17/coldfusion_march_2023_emergency_update
Adobe Security Release:
https://helpx.adobe.com/security/products/acrobat/apsb23-01.html
CISA Gov updates:
https://www.cisa.gov/news-events/alerts/2023/03/15/cisa-adds-one-known-exploited-vulnerability-catalog
Rapid7 Observed Exploitations:
https://www.rapid7.com/blog/post/2023/03/21/etr-rapid7-observed-exploitation-of-adobe-coldfusion/
Hacker News report:
https://thehackernews.com/2023/03/cisa-issues-urgent-warning-adobe.html?m=1
Additional Observations:
https://attackerkb.com/topics/1iRdvtUgtW/cve-2023-26359/rapid7-analysis
Thursday, July 29th, 2021 | System
https://framework-one.github.io/documentation/4.3/developing-applications/
Reinitialize the framework:
?fwreinit=xxx
?reload ( pulls latest values from config to database )
Tuesday, January 22nd, 2019 | Server
Disable SeLinux: https://documentation.cpanel.net/display/1150Docs/Installation+Guide+-+Disable+SELinux
cd /etc/selinux sudo vi config setenforce 0
Virsh Edit the VM Config: https://superuser.com/questions/1231348/kvm-error-starting-domain-unsupported-configuration-unable-to-find-security-dr
Connector Configuration: https://helpx.adobe.com/coldfusion/kb/rhel-connector-configuration.html
Wednesday, November 7th, 2018 | Coding
https://coldfusionexperts.wordpress.com/2013/11/11/geocoding-with-google-map-api-and-coldfusion
https://stackoverflow.com/questions/2234204/find-nearest-latitude-longitude-with-an-sql-query
https://www.w3schools.com/html/html5_geolocation.asp
https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/watchPosition
https://www.w3schools.com/jsref/obj_navigator.asp
Monday, June 22nd, 2020 | Technology
https://dyrynda.com.au/blog/uploading-files-to-amazon-s3-from-the-browser-part-one
1) Create Upload User
2) Create IAM Policy and attach it to your new user
3) Create CORS Policy and attach it to Bucket
Thursday, October 14th, 2021 | Server
Install ColdFusion 2021 on BigSur
Launch the terminal and enter this command - xattr -rc <ColdFusion2021_xxxx.dmg>
Context: https://community.adobe.com/t5/coldfusion-discussions/can-t-install-coldfusion-2021-on-macos-big-sur-11-5-1/td-p/12227194
Sunday, October 30th, 2022 | Coding
I’m happy to report that the latest version of MAMP Pro (7.0.5) is once again compatible with ColdFusion. I’m currently running ColdFusion 2023 on macOS 14.6.1.
Install ColdFusion ( & Updates )
Install ColdFusion Builder ( optional )
Enable File Sharing, SSH, Remote Desktop ( optional )
Install MAMP Pro
Install NAMO ( optional )
ColdFusion
Create Apache Connector
sudo ./wsconfig -ws Apache -bin /Applications/MAMP/bin/apache2/bin/httpd -script /Applications/MAMP/bin/apache2/bin/apachectl -dir /Users/{{username}}/Library/Application Support/appsolute/MAMP Pro -v
Update workers.properties / server.xml ( address to 127.0.0.1 )
Ensure mod reference in MAMP Apache conf
Wednesday, October 31st, 2018 | Coding
< cfhttp method="Get" url="http://chart.apis.google.com/chart?chs=150x150&cht=qr&chl=hello" getAsBinary = "yes"> < cfcontent variable="#toBinary(toBase64(cfhttp.FileContent))#" type="image/png" reset="true" />
Saturday, August 5th, 2023 | Coding
25 Most Dangerous Software Weaknesses:
https://www.petefreitag.com/presentations/2023-cwe-25.pdf
Sunday, August 1st, 2021 | Server
https://wiki.hostek.com/ColdFusion_Tips_%26_Tricks
https://bdking71.wordpress.com/2016/09/22/simple-chat-application-using-coldfusion-2016-web-sockets/#more-966
https://www.sagarganatra.com/2012/03/coldfusion-10-using-filtercriteria-in.html
https://github.com/GiancarloGomez/ColdFusion-Realtime-With-WebSockets/blob/master/listeners/ChatListener.cfc
https://bdking71.wordpress.com/2016/09/22/simple-chat-application-using-coldfusion-2016-web-sockets/
Wednesday, July 3rd, 2024 | Server
ColdFusion developers, it's time to take note of some critical updates and JVM options that can significantly impact your application's performance and behavior. Here, we will discuss three essential parameters: -Djdk.util.zip.disableZip64ExtraFieldValidation=true, -Dcoldfusion.searchimplicitscopes=TRUE, and -Dcoldfusion.encryption.useCFMX_COMPATAsDefault=TRUE. Understanding these settings will help you ensure smooth operations and avoid potential issues in your ColdFusion applications.
1. Disabling Zip64 Extra Field Validation
Parameter: -Djdk.util.zip.disableZip64ExtraFieldValidation=true
Command Line: java -Djdk.util.zip.disableZip64ExtraFieldValidation=true -jar hotfix.jar
This JVM option is vital for those dealing with large zip files in their ColdFusion applications. By default, Java performs validation checks on Zip64 extra fields, which can sometimes cause problems with zip file processing. Setting this parameter to true disables these validation checks, allowing ColdFusion to handle large zip files more gracefully. This can prevent errors related to zip file handling and improve overall application stability.
2. Enabling Implicit Scopes Search
Parameter: -Dcoldfusion.searchimplicitscopes=TRUE
In ColdFusion, variables can be implicitly scoped, which can sometimes lead to confusion or unexpected behavior, especially in larger applications. By enabling this parameter, ColdFusion will explicitly search through implicit scopes for variables. This setting ensures that the correct variables are found and used, reducing the likelihood of scope-related bugs and making your code more predictable and easier to debug.
3. Using CFMX_COMPAT Encryption as Default
Parameter: -Dcoldfusion.encryption.useCFMX_COMPATAsDefault=TRUE
Encryption is a crucial aspect of web application security, and ColdFusion offers various encryption algorithms. The CFMX_COMPAT algorithm is a legacy encryption method from ColdFusion MX. By setting this parameter to true, ColdFusion will use the CFMX_COMPAT encryption as the default method. This can be particularly useful for legacy applications that rely on this encryption standard, ensuring backward compatibility and seamless operation without the need to rewrite encryption-related code.
Remember to test these settings in a development environment before deploying them to production to ensure they work as expected in your specific setup. Additionally, after applying any updates or configuration changes, it's crucial to clear your template caches. This step ensures that all templates are recompiled with the latest settings, preventing potential issues related to outdated or cached code.
Tuesday, June 6th, 2023 | Server
Installation Prerequisites:
• Download AlmaLinux 9.2 Minimal ISO ( http://mirror.vtti.vt.edu/almalinux/9.2/isos/x86_64/AlmaLinux-9-latest-x86_64-minimal.iso )
• Download ColdFusion 2023 - Linux - ZIP
• Install AlmaLinux 9.2 Minimal ISO ( Minimal Install )
Commands:
sudo dnf check-update
sudo dnf upgrade
sudo dnf install net-tools
^^ installing net-tools to use ifconfig ( ip is the newer version, you do you )
scp ColdFusion_2023_WWEJ_linux64.zip [email protected]:/root/
^^ copy from your host to the LINUX machine ( or use wget )
sudo dnf install unzip
unzip ColdFusion_2023_WWEJ_linux64.zip
unzip ColdFusion_WWEJ_linux64.zip
mv ColdFusion /opt/ColdFusion2023
cd /opt/ColdFusion2023/cfusion/bin
sudo ./cfinstall.sh
sudo ./coldfusion start
^^ maybe don't use sudo here - I'm pretty sure Freitag would not be cool with that.
sudo firewall-cmd --permanent --add-port=8500/tcp
sudo firewall-cmd --reload
####
!!! To fix the "service unavailable" error after installing ColdFusion and Apache, you can try the following steps:
Change the workers.properties file: Instead of using localhost, use 127.0.0.1. After making this change, restart Apache and test again. This file is created by the wsconfig tool, which is used to configure the connection between ColdFusion and a web server like Apache.
Wednesday, December 14th, 2022 | System
/index.cfm?fusebox.password=*********&fusebox.load=true&fusebox.loadclean=true&fusebox.parse=true
Friday, August 16th, 2024 | Server
Keeping your ColdFusion environment updated is vital for security, performance, and compatibility. Follow these steps for a smooth update process.
jvm.config
jvm.config
file to point to the new JRE location.jvm.config
: Ensure no configurations were altered during the update.Saturday, March 9th, 2024 | System
Adding the SSH Folder to the var/root Directory
To ensure that ColdFusion can correctly utilize SSH for hostname resolution and other secure communications, it's essential to add the SSH folder containing the necessary configuration files and keys to the var/root directory. Here's a simple guide on how to do this:
Tuesday, October 4th, 2022 | Server
package list --system
install commandbox-bullet-train install commandbox-hostupdater install commandbox-cfconfig install commandbox-update-check outdated --system
update --system cfconfig datasource save name=<> dbdriver=MSSQL host=127.0.0.1 port=1433 database=<> username=sa password=<> server start cfengine=adobe@2018 SSLEnable=true SSLPort=443 host=website.local --rewritesEnable config set adminPassword=commandbox to=.config.json #### server start --debug server start --debug --follow server set web.rewrites.logEnable=true server log --follow --rewrites
Monday, January 3rd, 2022 | Server
{
"JVM":{
"args":"-Djava.awt.headless=true"
},
"name":"sentinel.local",
"openbrowser":false,
"web":{
"host":"sentinel.local",
"http":{
"port":"80"
},
"rewrites":{
"enable":true
}
}
}
Monday, June 27th, 2022 | Entrepreneur
https://campgroundsolutions.goodsam.com/blog/how-to-start-a-campground/
https://rvlifestyle.com/private-rv-campsite/
https://www.dwell.com/article/how-to-build-an-outhouse-11faca2d
Friday, March 23rd, 2018 | Design
Use arrow keys, touch gestures, or click and drag to rotate:
https://paulrhayes.com/experiments/cube-3d/touch.html
Wednesday, November 21st, 2018 | Design
Sunday, March 25th, 2018 | Design
Basic Large: https://codepen.io/Zerk/pen/mWNXVy
Circuit: https://codepen.io/lukasoe/pen/BpMNjw
Custom dropdown arrow: https://codepen.io/danield770/pen/bgJOyV
Custom dropdown arrow 2: https://codepen.io/vkjgr/pen/VYMeXp
Custom dropdown arrow 3: https://fabriceleven.com/design/clever-way-to-change-the-drop-down-selector-arrow-icon/
Subscription: https://codepen.io/RRoberts/pen/kXvVrR
Large Jumper: https://codepen.io/web-tiki/pen/JXwLGQ
Terminal / Transit: https://codepen.io/yunntan/pen/rayKjK
Not loading:
https://codepen.io/morten-olsen/pen/QbvBYy
https://codepen.io/chrissimari/pen/shyDC
Saturday, January 13th, 2018 | Entrepreneur
Failure to plan is planning to fail. Answer these 3 lines to achieve clarity and direction:
Things we did well and should do more of:
Things we are doing that need improvement:
Completely new things we want to try:
Thursday, August 15th, 2024 | Server
When working with Git, one of the most essential files you’ll create in any project is the .gitignore
file. This file tells Git which files or directories to ignore, meaning they won't be tracked or included in commits. A well-crafted .gitignore
file helps keep your repository clean, avoids committing unnecessary files, and ensures that only relevant code and resources are shared among team members.
# Node.js specific node_modules/ npm-debug.log yarn-error.log .env dist/ # Python specific __pycache__/ *.py[cod] venv/ env/ *.egg-info/ # Ruby specific *.gem *.rbc .bundle vendor/bundle log/ tmp/ .DS_Store # Java specific *.class *.jar *.war *.ear *.iml out/ target/ # Operating system files .DS_Store Thumbs.db *.swp *~ # IDEs and editors .idea/ *.suo *.user *.userosscache *.sln.docstates .vscode/ html/.vscode/ settings.xml .settings .project # Dependency directories node_modules/ vendor/ .bower_components/ .tmp/ # Compiled output /dist /build /public # Logs and databases *.log *.sql *.sqlite *.db # Custom rule for private files /private/ # Dreamweaver sync files dwsync.xml # Unit test reports TEST*.xml # Applications *.app *.exe *.war # Large media files *.mp4 *.tiff *.avi *.flv *.mov *.wmv # Mac System Icon Icon? Icon\r Icon* # HTML, XCD, and scripts html/xcd xcd xlc/api/square/vendor xlc/api/twitter/twitteroauth html/xlc/scripts # Other files and folders to ignore .well-known _compareTemp /credentials /messages sftp.json
Monday, March 15th, 2021 | Server
https://medium.com/techbeatly/boot-from-image-using-vflash-in-dell-poweredge-servers-2e661768fdf8
Sunday, April 24th, 2022 | Server
The fix, just rebuild LEGO:
https://forum.directadmin.com/threads/lets-encrypt-error.64712/
Wednesday, June 22nd, 2022 | Technology
.rtf .txt .ppt .ttf .doc .docx .fla .psd .less .sass .scss .map .jpg .pdf .png .gif .jpeg .xls .ds_store .project .settings settings.xml cache server.json server-rewrites.xml .swf .svg
Tuesday, November 6th, 2018 | Business
Saturday, October 15th, 2022 | Design
This works perfect:
https://webdogs.com/blog/export-svg-web-using-adobe-illustrator/
####
Note: BOYD
Saturday, January 27th, 2018 | Technology
# Import standard Python time library. import time # Import GPIO and FT232H modules. import Adafruit_GPIO as GPIO import Adafruit_GPIO.FT232H as FT232H # Temporarily disable the built-in FTDI serial driver on Mac & Linux platforms. FT232H.use_FT232H() # Create an FT232H object that grabs the first available FT232H device found. ft232h = FT232H.FT232H() # Configure digital inputs and outputs using the setup function. # Note that pin numbers 0 to 15 map to pins D0 to D7 then C0 to C7 on the board. ft232h.setup(7, GPIO.IN) # Make pin D7 a digital input. ft232h.setup(8, GPIO.OUT) # Make pin C0 a digital output. # Loop turning the LED on and off and reading the input state. print 'Press Ctrl-C to quit.' while True: # Set pin C0 to a high level so the LED turns on. ft232h.output(8, GPIO.HIGH) # Sleep for 1 second. time.sleep(1) # Set pin C0 to a low level so the LED turns off. ft232h.output(8, GPIO.LOW) # Sleep for 1 second. time.sleep(1) # Read the input on pin D7 and print out if it's high or low. level = ft232h.input(7) if level == GPIO.LOW: print 'Pin D7 is LOW!' else: print 'Pin D7 is HIGH!'
Sunday, April 17th, 2022 | Server
https://devanswers.co/get-real-client-ip-address-cloudflare-apache-php/
https://netslovers.com/post/real-ip-cloudflare-nginx-apache-wordpress/
https://github.com/ergin/nginx-cloudflare-real-ip
Friday, May 26th, 2023 | Technology
WordPress editor plugins work by extending the functionality of the default WordPress editor, also known as the Gutenberg editor or block editor. The default editor provides a set of core blocks for creating content, such as paragraphs, headings, images, and lists. Editor plugins enhance this functionality by adding new blocks, modifying existing blocks, or providing additional options and features within the editor interface.
Here's an overview of how WordPress editor plugins typically work:
1. Integration: Editor plugins integrate with the WordPress core and the Gutenberg editor. They leverage the Gutenberg block system to add their own custom blocks or modify existing ones. The plugin registers its blocks and hooks into the editor's rendering process.
2. User Interface: Editor plugins provide a user interface within the WordPress admin area for configuring and managing the plugin's features. This interface may include settings, options, and customization controls specific to the plugin's functionality.
3. Custom Blocks: Editor plugins often introduce new blocks that offer specialized functionality. These blocks can be added to the editor like any other block, providing additional content elements or interactive components. For example, a plugin may introduce blocks for testimonials, sliders, pricing tables, contact forms, or social media feeds.
4. Block Extensions: Editor plugins can also extend the capabilities of existing blocks provided by WordPress or other plugins. They may add new customization options, styling controls, or advanced settings to the default blocks. This allows users to have more flexibility and control over the appearance and behavior of their content.
5. Backend Processing: When a user creates or updates content using the editor plugin, the plugin's code processes the data entered by the user. This may involve validating inputs, sanitizing data, and performing any necessary operations specific to the plugin's functionality.
6. Frontend Rendering: The content created or modified using the editor plugin is saved in the WordPress database and rendered on the frontend of the website. The plugin's code ensures that the custom blocks or modifications made by the user are properly rendered and displayed as intended on the live site.
It's important to note that the exact implementation and features of editor plugins can vary depending on the specific plugin. The WordPress plugin architecture provides a flexible framework for developers to extend and enhance the editor's capabilities according to their specific needs and requirements.
Saturday, June 24th, 2023 | Architecture
Building a mini house, also known as a tiny house, involves several steps. Here are some general steps to follow:
1. Determine your needs: Before you begin building, you need to decide on the size and layout of your mini house. Consider your needs and the maximum number of people who will be living in the house. You may also want to think about any special features or requirements, such as a loft or a solar-powered system.
2. Create a design: Sketch out a design for your mini house. Consider things like the number of rooms, the overall shape, and the placement of windows and doors.
3. Gather materials: Once you have your design in place, it's time to gather the necessary materials. This will include items like lumber, insulation, roofing materials, and siding.
4. Build the foundation: Depending on your design, you may need to create a foundation. This can be as simple as pouring a concrete slab or as complex as building a raised platform.
5. Construct the frame: With the foundation in place, it's time to begin constructing the frame of your mini house. This will involve building the walls, roof, and floor.
6. Install utilities: Once the frame is in place, you'll need to install any necessary utilities. This may include things like plumbing, electrical, and heating and cooling systems.
7. Finish the interior: With the basic structure and utilities in place, it's time to finish the interior of your mini house. This may involve installing flooring, walls, and ceilings, as well as any fixtures and appliances.
8. Add finishing touches: Finally, you can add any finishing touches to your mini house. This may include things like paint, landscaping, and exterior features like a porch or deck.
It's important to note that building a mini house requires careful planning and attention to detail. Be sure to consult with local building codes and regulations, and consider hiring a professional builder or contractor if you're not experienced in construction.
Friday, March 10th, 2023 | Design
https://favicon.io works the best.
Friday, March 23rd, 2018 | Coding
https://wavesurfer-js.org
Wednesday, January 31st, 2018 | Coding
View Source:
line 1
line 2
line 3
line 4
line 5
Thursday, February 9th, 2023 | Server
Filter name: ISAPI_Rewrite_32
Executable: C:\Program Files\Helicon\ISAPI_Rewrite3\ISAPI_Rewrite.dll
Filter name: ISAPI_Rewrite_x64
Executable: C:\Program Files\Helicon\ISAPI_Rewrite3\ISAPI_Rewrite_x64.dll
Tuesday, October 4th, 2022 | Design
You'll have to view the source code. The gist is to use the HTML5 picture tag.
Thursday, August 1st, 2024 | Server
Commands used for the setup of NGINX and Lucee 5.4 with a reverse proxy on Ubuntu 20.04:
apt update
apt upgrade
apt install nginx
systemctl start nginx
systemctl enable nginx
apt install openssh-server
nano /etc/ssh/sshd_config
systemctl restart ssh
apt install openjdk-11-jdk -y
apt install tomcat9 -y
wget https://cdn.lucee.org/lucee-5.4.6.9-linux-x64-installer.run
chmod +x lucee-5.4.6.9-linux-x64-installer.run
./lucee-5.4.6.9-linux-x64-installer.run
Thursday, September 29th, 2022 | System
https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-rocky-linux-9
https://www.linuxcapable.com/how-to-install-nginx-on-almalinux-9/
https://timothy-quinn.com/using-nginx-as-a-reverse-proxy-for-multiple-sites/
https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-centos-8
####
Run Multiple Site from one IP with reverse proxy Nginx
https://www.youtube.com/watch?app=desktop&v=x1fnOJsX6wE
*** Reverse proxy nginx letsencrypt tutorial ***
https://www.youtube.com/watch?app=desktop&v=DyXl4c2XN-o
https://github.com/xcad2k/videos/tree/main/nginx-reverseproxy
####
Allow Access To Port SELinux, Firewall
https://paritoshbh.me/blog/allow-access-port-selinux-firewall
####
How To Secure Nginx with Let's Encrypt on Rocky Linux 9
Thursday, October 6th, 2022 | System
We are starting here:
https://idroot.us/install-virtualbox-almalinux-9/
Sunday, June 10th, 2018 | Technology
https://lite.ip2location.com/database/ip-country-region-city-latitude-longitude-zipcode
Tuesday, July 13th, 2021 | Technology
https://www.varonis.com/blog/ipv6-security/
Saturday, January 13th, 2018 | Music Business
Sample: US-MX2-11-10300
[ US ] :: COUNTRY
[ MX2 ] :: LABEL CODE
[ 11 ] :: YEAR
[ 1 ] :: RELEASE CODE
[ 1 = ALBUM, 2 = SINGLE, 3=COMPILATION ]
[ 03 ] :: ALBUM RELEASE SEQUENTIAL
[ 00 ] :: SONG RELEASE SEQUENTIAL
FRONTLINE MILITIA: US-MX2-14-10400
Monday, April 2nd, 2018 | Marketing
https://developers.google.com/maps/documentation/javascript/examples/directions-simple
Thursday, January 25th, 2018 | Coding
onclick="return confirm('Are you sure you want to delete?');"
Friday, March 23rd, 2018 | Coding
Stand Alone - http://dev.vast.com/jquery-popup-overlay/
Tuesday, October 30th, 2018 | Coding
var order_id = ""; var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; for( var i=0; i < 8; i++ ) order_id += possible.charAt(Math.floor(Math.random() * possible.length));
Wednesday, October 31st, 2018 | Coding
< script> var notify = function () { // Check for notification compatibility. if (!'Notification' in window) { // If the browser version is unsupported, remain silent. return; } // Log current permission level console.log(Notification.permission); // If the user has not been asked to grant or deny notifications // from this domain... if (Notification.permission === 'default') { Notification.requestPermission(function () { // ...callback this function once a permission level has been set. notify(); }); } // If the user has granted permission for this domain to send notifications... else if (Notification.permission === 'granted') { var n = new Notification( 'New message from Liz', { 'body': 'Liz: "Hi there!"', // ...prevent duplicate notifications 'tag' : 'unique string' } ); // Remove the notification from Notification Center when clicked. n.onclick = function () { this.close(); }; // Callback function when the notification is closed. n.onclose = function () { console.log('Notification closed'); }; } // If the user does not want notifications to come from this domain... else if (Notification.permission === 'denied') { // ...remain silent. return; } }; notify(); < /script>
Wednesday, November 7th, 2018 | Robotics
Wednesday, May 31st, 2023 | Server
sudo dnf install firewalld
sudo systemctl enable firewalld
sudo systemctl disable firewalld
sudo systemctl status firewalld
sudo systemctl start firewalld
sudo systemctl stop firewalld
sudo firewall-cmd --get-default-zone
sudo firewall-cmd --set-default-zone=<desired_zone>
sudo firewall-cmd --reload
sudo firewall-cmd --list-all
sudo firewall-cmd --zone=public --list-ports
sudo firewall-cmd --list-services
sudo firewall-cmd --get-services
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo firewall-cmd --permanent --add-port=8500/tcp # Optional: For ColdFusion Administrator
sudo firewall-cmd --permanent --remove-service=http
sudo firewall-cmd --permanent --remove-service=https
sudo firewall-cmd --permanent --add-port=3306/tcp
sudo firewall-cmd --permanent --add-port=5005/tcp
sudo firewall-cmd --zone=public --add-port=8500/tcp --permanent
sudo firewall-cmd --zone=public --remove-port=3306/tcp --permanent
sudo firewall-cmd --zone=public --remove-port=8500/tcp --permanent
sudo firewall-cmd --permanent --add-port=5000-6000/tcp
Sunday, October 30th, 2022 | Server
Create Backup Image and Restore ( CentOS 7 ):
Tuesday, October 4th, 2022 | System
Create a LINUX user and add them to the Sudoers file:
sudo adduser asdf1234 sudo passwd asdf1234 sudo groups asdf1234 sudo visudo << verify wheel is enabled >> sudo usermod -aG wheel asdf1234 su - asdf1234
sudo cd /root
https://phoenixnap.com/kb/how-to-create-add-sudo-user-centos
Friday, December 8th, 2023 | System
To modify the command tail -F -n 100 access.log to filter based on a keyword, you can use a pipe (|) to pass the output of tail to grep, which is a command-line utility for searching plain-text data for lines that match a regular expression. Here's how you do it:
tail -F -n 100 access.log | grep "your_keyword"
Replace "your_keyword" with the specific word or pattern you're looking for. This command will continuously follow the access.log file (due to -F) and display the last 100 lines (due to -n 100), but only those lines that contain your specified keyword will be shown.
Tuesday, August 18th, 2020 | Server
https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-centos-7
https://linuxize.com/post/how-to-stop-and-disable-firewalld-on-centos-7
Friday, September 30th, 2022 | Server
Tuesday, January 30th, 2018 | Coding
CRON exists for Sudo and User. I recommend Nano as your default Editor ( if you receive a prompt )
crontab -l crontab -e
sudo crontab -l sudo crontab -e
Wednesday, January 17th, 2018 | Coding
This is a great starting point when you're working with scheduled tasks or repeating events:
Thursday, April 25th, 2024 | Server
This script is designed to delete directories that are named with dates in the 'YYYYMMDD' format and are older than 30 days based on their names. The script assumes these directories are located directly under /mnt/backups/Files
.
First, test with a listing version to ensure it targets the right directories:
#!/bin/bash # Define the base directory containing the date-named folders. base_directory="/mnt/backups/Files" # Calculate the date 30 days ago in YYYYMMDD format. threshold_date=$(date -d "30 days ago" +%Y%m%d) # Loop through each directory in the base directory. find "$base_directory" -maxdepth 1 -type d -regextype posix-extended -regex ".*/[0-9]{8}" | while read -r directory; do # Extract the date part of the directory name. dir_name=$(basename "$directory") # Check if this directory name is a date older than the threshold. if [[ "$dir_name" -lt "$threshold_date" ]]; then echo "$directory" # Initially, just echo the directory to see which ones would be deleted. fi done
If the initial test lists the correct directories, replace the echo "$directory"
line with rm -rf "$directory"
to enable actual deletion:
rm -rf "$directory" # Be very careful with this command.
Note: Always be extremely cautious with rm -rf
, as it permanently deletes files and directories without asking for confirmation. Always back up important data before running such scripts.
Wednesday, January 9th, 2019 | Server
yum install exfat-utils fuse-exfat mkdir /media/USB ls /dev/sd* mount -t exfat /dev/sda1 /media/USB/
Tuesday, October 4th, 2022 | Server
ss -ltup
Tuesday, March 21st, 2023 | Server
< cfscript> // Access the Task Scheduler taskService = createObject("component", "lucee.runtime.schedule.TaskService"); // Get all tasks tasks = taskService.listAll(); // Loop through tasks and delete failed tasks for (task in tasks) { if (task.status == "failed") { taskService.remove(task.id); } } < /cfscript>
Sunday, January 7th, 2018 | Coding
< cflocation [^>]*>
< cffunction [^>]*>
://[^w]*.patentawards
Wednesday, October 27th, 2021 | System
https://setapp.com/how-to/install-sql-server ( Untested )
Docker SQL Setup:
docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=asdf1234" -p 1433:1433 -d mcr.microsoft.com/mssql/server:2017-latest
sudo docker exec -it goofy_pare mkdir /var/opt/mssql/backup
sudo docker cp Township_backup_2021_10_19_020002_4020622.bak goofy_pare:/var/opt/mssql/backup
Azure Restore:
https://www.quackit.com/sql_server/mac/how_to_restore_a_bak_file_using_azure_data_studio.cfm
https://www.quackit.com/sql_server/mac/how_to_copy_a_file_from_the_host_to_a_docker_container.cfm
Wednesday, February 20th, 2019 | Technology
Show hidden files:
# defaults write com.apple.finder AppleShowAllFiles true # killall Finder
Hide hidden files:
# defaults write com.apple.finder AppleShowAllFiles false # killall Finder
Friday, March 23rd, 2018 | Technology
http://www.renevolution.com/ffmpeg/2013/03/16/how-to-install-ffmpeg-on-mac-os-x.html
brew install ffmpeg --with-chromaprint --with-fdk-aac --with-fontconfig --with-freetype --with-frei0r --with-game-music-emu --with-libass --with-libbluray --with-libbs2b --with-libcaca --with-libgsm --with-libmodplug --with-librsvg --with-libsoxr --with-libssh --with-libvidstab --with-libvorbis --with-libvpx --with-opencore-amr --with-openh264 --with-openjpeg --with-openssl --with-opus --with-rtmpdump --with-rubberband --with-sdl2 --with-snappy --with-speex --with-tesseract --with-theora --with-tools --with-two-lame --with-wavpack --with-webp --with-x265 --with-xz --with-zeromq --with-zimg
Friday, October 29th, 2021 | System
MAMP Migration
sudo apachectl stop
PATH Updates:
Applications/MAMP/htdocs
Users/*username*/Sites
####
MySQL ZERO DATE issue:
SELECT @@GLOBAL.sql_mode global, @@SESSION.sql_mode session;
SET sql_mode = '';
SET GLOBAL sql_mode = '';
MySQL GROUP BY ISSUE:
SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY','));
NOTE: Removed ‘ONLY_FULL_GROUP_BY,’ from the SQL MODE variable
https://stackoverflow.com/questions/41887460/select-list-is-not-in-group-by-clause-and-contains-nonaggregated-column-inc
Sunday, October 30th, 2022 | Server
Path to wsconfig script: /Applications/ColdFusion2023/cfusion/runtime/bin
sudo ./wsconfig -ws Apache -bin /usr/sbin/httpd -script /usr/sbin/apachectl -dir /etc/apache2/ -v
#### ### ## #
sudo ./wsconfig -ws Apache -bin /Applications/MAMP/bin/apache2/bin/httpd -script /Applications/MAMP/bin/apache2/bin/apachectl -dir /Users/{{username}}/Library/Application Support/appsolute/MAMP Pro -v
/Users/{{username}}/Library/Application Support/appsolute/MAMP Pro
/Applications/MAMP/bin/apache2/bin/httpd
/Applications/MAMP/bin/apache2/bin/apachectl
#### ### ## #
Additional Troubleshooting
https://www.carehart.org/blog/2020/3/20/how_and_why_sites_may_break_after_Mar_2020_CF_updates
https://helpx.adobe.com/coldfusion/kb/coldfusion-11-mitigation-steps.html
Monday, December 6th, 2021 | System
Reference: https://www.makeuseof.com/how-to-use-terminal-as-network-utility-replacement/
The Lookup tool in Network Utility allowed you to identify the IP addresses associated with a domain name and vice versa. In Terminal, the nslookup command effectively replicates this feature.
An example Terminal command on a Mac looks like this:
nslookup apple.com
For a reverse lookup, use the IP address of the domain:
nslookup 17.253.144.10
Thursday, January 25th, 2018 | Coding
sqlite3 -csv ~/Library/Containers/com.apple.corerecents.recentsd/Data/Library/Recents/Recents 'select display_name, address from contacts where kind like "email";'>~/Desktop/recent.csv
Thursday, June 20th, 2019 | Server
https://medium.com/zenchef-tech-and-product/how-to-upgrade-your-version-of-php-to-7-0-on-macos-sierra-e1bfdea55a63
https://coolestguidesontheplanet.com/upgrade-php-on-osx
https://jasonmccreary.me/articles/upgrade-php-mac-os-x
https://php-osx.liip.ch
curl -s https://php-osx.liip.ch/install.sh | bash -s 7.3
Thursday, January 25th, 2018 | Coding
html contains 'keyword' frame contains 'keyword'
Wednesday, January 17th, 2018 | Marketing
Kept these around to inspire new ideas:
Initiative, Momentum
Invitations, News, Notifications, Messages
Coupons, Specials, Savings, Promos,Promotions, Deals, Discount, Clearance
Surveys - Survey Builder
Events ["New","Past","Recent","Featured"]
Monday, March 13th, 2023 | Server
If your RDP session clipboard should be shared, but it's not working:
Kill the rdpclip.exe process and restart it.
The rdpclip.exe file is located in c:\Windows\System32\
Saturday, November 21st, 2020 | Coding
https://www.minecraft.net/en-us/download/server
https://minecraft.gamepedia.com/Tutorials/Setting_up_a_server
https://javaminecraft.com/spigot/
Saturday, November 21st, 2020 | Coding
Code Samples:
setBlock(x,y,z,x+3,y+3,z+3)
Resources:
https://www.stuffaboutcode.com/p/minecraft-api-reference.html
https://projects.raspberrypi.org/en/projects/getting-started-with-minecraft-pi/4
https://gist.github.com/jonwitts/2ac5b12d7231a95f959f0fabd17cd66b
https://projects.raspberrypi.org/en/projects/getting-started-with-minecraft-pi/5
https://www.raspberrypi-spy.co.uk/2014/06/building-a-castle-in-minecraft-with-python/
https://teachcraft.net
Build A House: https://www.raspberrypi.org/blog/build-minecraft-house-using-python/
Moving the Player: https://arghbox.wordpress.com/2013/12/28/minecraft-pi-api-moving-the-player/
Saturday, July 30th, 2022 | Server
Longer Days: https://www.spigotmc.org/resources/longerdays.80610
Reset the World: https://www.spigotmc.org/threads/reset-the-world.264427/
Saturday, April 1st, 2023 | Server
time set 1000 - ( daytime )
Enter Creative Mode - You can do 2 things:
1) Enter: 'gamemode creative playername' inside the console ( gamemode creative playername )
2) Enter: 'op yourname' inside the console and then enter: '/gamemode creative playername' inside the client
####
*** https://darkcoding.net/software/scripting-minecraft-server-with-python/
https://www.stuffaboutcode.com/p/minecraft-api-reference.html
https://papermc.io/downloads#Paper-1.18
https://dev.bukkit.org/projects/raspberryjuice
https://github.com/zhuowei/RaspberryJuice
https://gist.github.com/noahcoad/fc9d3984a5d4d61648269c0a9477c622
https://www.stuffaboutcode.com/2013/06/programming-minecraft-with-bukkit.html
Monday, June 27th, 2022 | Lifestyle
https://www.facebook.com/groups/360075600869445
Tuesday, October 27th, 2020 | Coding
In case you want to delete duplicate rows and keep the lowest id, you can use the following statement:
DELETE
c1
FROM
contacts c1 INNER JOIN contacts c2 WHERE c1.id > c2.id AND c1.email = c2.email;
Monday, March 6th, 2023 | Server
The problem is because of sql_modes. Please check your current sql_modes by command:
show variables like 'sql_mode' ;
And remove the sql_mode "NO_ZERO_IN_DATE,NO_ZERO_DATE" to make it work. This is the default sql_mode in mysql new versions.
You can set sql_mode globally as root by command:
set global sql_mode = 'ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';
Tuesday, December 15th, 2020 | Technology
https://www.w3schools.com/sql/sql_stored_procedures.asp
https://www.w3schools.com/sql/sql_isnull.asp
https://www.w3schools.com/sql/sql_case.asp
https://www.w3schools.com/sql/sql_exists.asp
Sunday, January 7th, 2018 | Coding
Raw MySQL for importing MP3's:
UPDATE app_music_songs SET file_path = REPLACE(file_path, '.mp3', ') UPDATE app_music_songs SET length = SEC_TO_TIME(length_raw)
Monday, June 20th, 2022 | Server
To see the index for a specific table use SHOW INDEX:
SHOW INDEX FROM yourtable;
To see indexes for all tables within a specific schema you can use the STATISTICS table from INFORMATION_SCHEMA:
SELECT DISTINCT TABLE_NAME, INDEX_NAME FROM INFORMATION_SCHEMA.STATISTICS WHERE TABLE_SCHEMA = 'your_schema';
Removing the where clause will show you all indexes in all schemas.
Friday, January 19th, 2018 | Technology
Save as .txt:
[email protected] 100.00 USD ReferralType+ReferralId ReferralNotes [email protected] 100.00 USD ReferralType+ReferralId ReferralNotes [email protected] 100.00 USD ReferralType+ReferralId ReferralNotes [email protected] 100.00 USD ReferralType+ReferralId ReferralNotes [email protected] 100.00 USD ReferralType+ReferralId ReferralNotes
Saturday, November 21st, 2020 | Coding
https://requests.readthedocs.io/en/master/user/quickstart/
Thursday, January 18th, 2018 | Coding
from uuid import getnode as get_mac mac = get_mac() print mac print hex(mac) ':'.join(("%012X" % mac)[i:i+2] for i in range(0, 12, 2))
Friday, March 23rd, 2018 | Coding
https://pypi.python.org/pypi/keyboard/ http://infohost.nmt.edu/tcc/help/pubs/tkinter/web/key-names.html
Friday, March 23rd, 2018 | Coding
https://www.geeksforgeeks.org/speech-recognition-in-python-using-google-speech-api/ https://cloud.google.com/speech/quotas
Friday, August 4th, 2023 | Artificial Intelligence
Commands:
sudo apt install python3-pip
pip install openai
sudo apt install python-is-python3
python --version
pip install jupyter
Jupyter is installed for use with Visual Studio Code.
Tuesday, March 7th, 2023 | Technology
Install lm-sensors:
sudo apt lm-sensors
Basic command for temperature:
sensors
Add -f flag for Fahrenheit:
sensors -f
Display help:
sensors --help
Tuesday, July 13th, 2021 | Technology
https://www.pcmag.com/how-to/how-to-create-a-vpn-server-with-raspberry-pi
Friday, March 23rd, 2018 | Technology
From the Desktop:
Simply use the Full Screen icon in the Browser zoom area. F11 or right-click to exit full screen.
From the Terminal:
chromium-browser --start-fullscreen https://e19creative.com
Full Screen at Boot:
https://blog.gordonturner.com/2017/07/22/raspberry-pi-full-screen-browser-raspbian-july-2017/
Wednesday, January 24th, 2018 | Technology
import RPi.GPIO as GPIO GPIO.setmode(GPIO.BOARD) GPIO.setup(11,GPIO.OUT) GPIO.output(11,GPIO.HIGH) GPIO.cleanup()
Friday, March 23rd, 2018 | Technology
Wednesday, May 16th, 2018 | Technology
https://projects.raspberrypi.org/en/projects/getting-started-with-minecraft-pi/5
https://www.raspberrypi-spy.co.uk/2014/06/building-a-castle-in-minecraft-with-python/
Sunday, June 10th, 2018 | Technology
https://nodered.org
http://10.0.1.12:1880/#flow/8fd6ed2d.cf9d2
Tuesday, July 13th, 2021 | Technology
https://coolrom.com.au/roms/
https://the-eye.eu/public/rom/NES/
https://www.freeroms.com
Sunday, September 26th, 2021 | Technology
Database ( MariaDB / MySQL ):
https://raspberrytips.com/install-mariadb-raspberry-pi/
VNC:
https://www.youtube.com/watch?v=LTVtKiz2KGE&t=0s
Wednesday, April 14th, 2021 | Technology
Resources
https://stackoverflow.com/questions/44013933/how-to-use-web-speech-api-at-chromium
https://bbs.archlinux.org/viewtopic.php?id=243537
http://manpages.ubuntu.com/manpages/trusty/man1/spd-conf.1.html
https://linuxreviews.org/Speech-dispatcher
Friday, May 7th, 2021 | Food
Oven Roasted Asparagus
https://www.allrecipes.com/recipe/214931/oven-roasted-asparagus/
Pizza Crust
1 package active dry yeast
1 tsp. granulated sugar
1 cup warm water ( 110-115 F )
2 1/2 cups bread flour
2 tbsp. olive oil
1 tsp. salt
Saturday, August 12th, 2017 | Health
This small chart enables many powerful mantras:
Dynamic[ Love-based ] |
Static[ Fear-based ] |
---|---|
Trust | Mis-trust |
Autonomy | Shame or doubt |
Initiative | Guilt |
Industry | Inferiority |
Identity | Role Confusion |
Intimacy | Isolation |
Dignity | Addiction |
Oddly, found this article in 2021: https://www.simplypsychology.org/Erik-Erikson.html
Wednesday, October 31st, 2018 | Coding
Method for receiving Command Line Interface ( CLI ) variables in a PHP script:
Example: script.php -a 'hello' -b 'yes'
< ?php $a = $argv; $b = array(); if (count($a) != 0) { foreach ($a as $arg){ list($x,$y) = explode('=', $arg); $b["$x"] = $y; } $tweet = $b['tweet']; $authorized = $b['authorized']; } print_r($tweet); ? >
Friday, February 2nd, 2018 | Coding
Argv is default for incoming command line arguments, this applies to Python as well.
$a = $argv; $b = array(); if (count($a) != 0) { foreach ($a as $arg){ list($x,$y) = explode('=', $arg); $b["$x"] = $y; } $message = $b['message']; $key = $b['key']; }
Friday, August 25th, 2023 | System
Use this command to generate a static version of a website ( perhaps an expired WordPress or the such ):
wget --recursive --page-requisites --html-extension --convert-links --restrict-file-names=windows https://yourwebsite.com
Sunday, June 10th, 2018 | Technology
For one user:
chmod u+x script.sh
For all users:
chmod +x script.sh
Wednesday, January 9th, 2019 | Server
history > history_for_print.txt
Tuesday, March 13th, 2018 | Coding
Load and watch access_log in realtime. Exclude lines with the defined IP addresses. * IP pipes may require a preceding backslash.
Live example:
sudo tail -f access_log | grep -v "75.185.171.22|127.0.0.1"
sudo tail -f -n 300 access_log | grep -v "75.185.171.22|127.0.0.1"
sudo tail -f -n 500 access_log | egrep "(e19creative.com)"
Include: tail -f mylogfile.log | grep "error: "
Exclude: tail -f -n 300 access_log | grep -v "string"
Exclude Multiple: tail -f -n 300 access_log | grep -v "string|string2"
Tuesday, June 30th, 2020 | System
open -a ScreenSaverEngine
Monday, December 3rd, 2018 | Server
Zip: zip -r source.zip source/
Unzip into target directory without archive folder: bsdtar -xf source.zip -s'|[^/]*/||'
( launch from the directory where you want the files )
Alternative Unzip: yum install p7zip | 7za x wordpress.zip
Thursday, April 19th, 2018 | Coding
sudo arp-scan --interface=en0 --localnet
Tuesday, April 2nd, 2019 | Server
View differences:
git diff
View status:
git status
View status in current directory:
git status .
git diff HEAD 'filename'
git diff --cached 'filename'
git diff * git commit -a
git commit -a -m "commit notes"
git remote set-url origin ssh://git-codecommit.us-east-1.amazonaws.com/v1/repos/*reponame*
git remote -v
git pull
git branch
Handle issue with all files showing as changed:
It may be line endings, GIT thinks it is linux so it will use LF as the line endings.
You can set git to only use CRLF line endings with:
git config --global core.autocrlf true
From Project notes:
https://stackoverflow.com/questions/215718/how-can-i-reset-or-revert-a-file-to-a-specific-revision
GIT Status shows all files as changed: https://github.com/microsoft/WSL/issues/184
Friday, October 15th, 2021 | Coding
ALTER TABLE dbo.Employees
ADD company VARCHAR (255) NULL;
####
Alter existing column:
ALTER TABLE Orders ALTER COLUMN shipToAddress1 VARCHAR (80);
ALTER TABLE Employees ALTER COLUMN address1 VARCHAR (80);
https://javarevisited.blogspot.com/2016/03/how-to-increase-length-of-existing-VARCHAR-column-in-SQL-Server.html#axzz7Lf1U1L2D
Saturday, September 18th, 2021 | Technology
sa - enable login
enable pipes / tcp/ip in service manager
enable windows and user authentication
Monday, July 25th, 2022 | Coding
base64 -d campus.base64 > test.zip
Saturday, March 27th, 2021 | Inspiration
What is the purpose of writing? The purpose of writing is to express one’s self, thoughts, and experiences so they may be recollected at a later time. Writing is an excellent way to achieve your self clarity of thought and a traceable history of your own personal evolution.
It’s easier to attempt to be one’s self than it is to truly be. However, with practice and perseverance, we know that all things are possible - even the impossible.
Friday, April 19th, 2024 | System
General Commands:
sudo ufw status
sudo ufw status verbose
sudo ufw app list
sudo ufw allow OpenSSH
sudo ufw allow ssh
sudo ufw show added
sudo ufw allow http
sudo ufw allow https
sudo ufw allow 'Nginx Full'
sudo ufw allow 'Nginx HTTP'
sudo ufw allow 'Nginx HTTPS'
sudo ufw enable
sudo ufw reload
sudo lsof -i :8888
sudo ufw allow from <ip-address> to any port 8888
Additional reference: https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-with-ufw-on-ubuntu
Friday, July 21st, 2023 | Server
DMARC stands for Domain-based Message Authentication, Reporting, and Conformance. It is an email authentication protocol that helps prevent email spoofing and phishing attacks. DMARC works by allowing domain owners to publish policies specifying how incoming email messages should be handled if they fail authentication checks.
Here's a breakdown of the key components and how DMARC works:
1. Authentication Mechanisms: DMARC builds upon two existing email authentication mechanisms: SPF (Sender Policy Framework) and DKIM (DomainKeys Identified Mail). SPF allows domain owners to define a list of authorized sending IP addresses for their domain, while DKIM enables the domain owner to digitally sign outgoing email messages.
2. DMARC Policy: The domain owner publishes a DMARC policy in their Domain Name System (DNS) records. This policy contains instructions for receiving email servers on how to handle emails that fail authentication checks. The policy can be set to three different modes: "none," "quarantine," or "reject."
3. Email Authentication Checks: When an email server receives an email, it performs SPF and DKIM checks to verify the sender's identity. SPF checks if the IP address of the sending server is authorized to send emails on behalf of the domain. DKIM verifies the digital signature attached to the email using the domain's public key.
4. DMARC Alignment: DMARC verifies that the domain in the "From" header aligns with either the SPF or DKIM authentication results. This ensures that the visible "From" domain matches the authenticated domain.
5. DMARC Actions and Reporting: Based on the DMARC policy, the email server takes appropriate action when an email fails authentication. It can either mark the message, quarantine it, or reject it. Additionally, DMARC generates reports containing information about the authentication results, which the domain owner can analyze to identify unauthorized senders and potential abuse.
DMARC helps protect domain owners from email spoofing and phishing attacks by providing a framework for email authentication and enabling domain owners to define specific policies for handling suspicious or fraudulent emails. By implementing DMARC, organizations can enhance email deliverability, protect their brand reputation, and provide a safer email environment for their users.
Thursday, April 25th, 2024 | System
Running scripts located in /usr/local/sbin
without entering the root password requires setting up sudo
to allow specific commands to be executed by specific users without asking for a password. Here's a step-by-step guide on how to do this:
Use the command sudo visudo
to edit the sudoers file safely. This ensures syntax checking and prevents saving errors that could lock you out of sudo.
In the sudoers file, you'll need to add an entry that specifies which commands can be run without a password. The general format is:
username ALL=(ALL) NOPASSWD: /usr/local/sbin/script_name
Replace username
with your actual username and /usr/local/sbin/script_name
with the full path to the script you want to run without a password.
If you want to allow multiple scripts to be run without a password, you can list them all, separated by commas:
username ALL=(ALL) NOPASSWD: /usr/local/sbin/script1, /usr/local/sbin/script2
If you want to allow all scripts in /usr/local/sbin
, you can use a wildcard. However, be cautious with this approach as it can pose a security risk:
username ALL=(ALL) NOPASSWD: /usr/local/sbin/*
After making the changes, save and exit the editor. If you're using visudo
, it will check the syntax before saving.
Try running the script with sudo
without entering the password:
sudo /usr/local/sbin/script_name
If set up correctly, it should run without asking for the root password.
Remember, allowing scripts to run as root without a password can be a significant security risk, especially if those scripts are writable by non-root users. Always ensure that the scripts are secure and monitored regularly for unauthorized changes.
Thursday, September 29th, 2022 | System
https://www.digitalocean.com/community/tutorials/initial-server-setup-with-rocky-linux-9
https://www.how2shout.com/linux/how-to-install-almalinux-8-on-virtualbox-centos-alternative/
####
Resolving a VirtualBox lockup on Dell systems using the Intel I-219 Network Adapter
Does VirtualBox lockup when in use?
####
Apache / MariaDB:
https://www.linuxcapable.com/how-to-install-apache-httpd-on-almalinux-9/
https://dade2.net/kb/how-to-install-apache-mysql-and-php-on-almalinux-8/
PHP:
https://www.linuxcapable.com/how-to-install-php-8-1-on-almalinux-9/
####
https://computingforgeeks.com/configure-static-ip-on-rocky-almalinux/
####
Allow Access To Port SELinux, Firewall
https://paritoshbh.me/blog/allow-access-port-selinux-firewall
Tuesday, March 7th, 2023 | Coding
Search for all instances of "FROM" + "PATIENTS" while ignoring whitespace:
from(\r\n)*\s+patients(\r\n)*\s+
Friday, May 26th, 2023 | Technology
WordPress differs from other platforms and languages in several ways. Here are some main differences:
1. Content Management System (CMS): WordPress is primarily known as a content management system. It provides a user-friendly interface and tools specifically designed for managing and organizing content, such as blog posts, pages, media files, and user comments. Other platforms or languages may require more custom development or additional frameworks to achieve similar content management capabilities.
2. Themes and Plugins: WordPress offers a vast ecosystem of themes and plugins. Themes determine the overall design and layout of a WordPress website, while plugins extend its functionality by adding features such as contact forms, e-commerce, SEO optimization, and more. This plugin and theme architecture allows users to customize their websites without extensive coding knowledge. In comparison, other platforms or languages may require more manual coding to achieve similar customizations.
3. PHP Development: WordPress is predominantly built using PHP, a server-side scripting language. PHP allows for dynamic content generation, database interactions, and handling server-side processes. Other platforms or languages may use different programming languages, frameworks, or paradigms for web development, which may involve a different learning curve or development approach.
4. Community and Support: WordPress has a large and active community of developers, designers, and users. This community contributes to the development of WordPress itself, creates themes and plugins, and provides support through forums, documentation, and tutorials. This vibrant community aspect of WordPress can be beneficial for troubleshooting issues, seeking advice, and finding resources. In contrast, other platforms or languages may have different community sizes or support structures.
5. Open Source: WordPress is an open-source software, which means its source code is freely available and can be modified and distributed by anyone. This open nature has contributed to its popularity and widespread adoption. Other platforms or languages may have different licensing models or restrictions on modifying and distributing the software.
It's important to note that while WordPress is widely used and versatile, there are alternative platforms and languages that may better suit specific project requirements or development preferences. Each platform or language has its own strengths, weaknesses, and use cases.
Friday, May 26th, 2023 | Technology
WordPress can run on various server environments, and the choice of the "best" environment depends on your specific needs and resources. However, there are a few commonly recommended server environments for WordPress:
1. Apache: Apache HTTP Server is one of the most popular web servers and has extensive compatibility with WordPress. It is widely supported, easy to configure, and has a large community. Apache works well with PHP and can handle WordPress effectively.
2. Nginx: Nginx is another widely used web server known for its high performance and scalability. It can handle a large number of concurrent connections efficiently and is often recommended for high-traffic websites. Nginx can work with PHP using PHP-FPM (FastCGI Process Manager) to handle PHP requests.
3. LAMP Stack: LAMP stands for Linux, Apache, MySQL, and PHP. It is a common server environment for hosting WordPress. Linux serves as the operating system, Apache as the web server, MySQL as the database management system, and PHP as the programming language. This stack is well-documented and widely supported.
4. LEMP Stack: LEMP stands for Linux, Nginx, MySQL, and PHP. It is an alternative to the LAMP stack and has gained popularity in recent years. LEMP is similar to LAMP but replaces Apache with Nginx. It is known for its performance and efficiency, particularly for serving static content.
5. Managed WordPress Hosting: Managed WordPress hosting providers offer specialized hosting environments optimized for WordPress. These providers typically handle server management, security, backups, and performance optimizations, allowing you to focus on building and managing your WordPress website. Managed WordPress hosting can be a convenient option if you prefer a hassle-free hosting experience.
When choosing a server environment for WordPress, consider factors such as performance, scalability, security, ease of configuration, and your level of technical expertise. It's also important to ensure that the server environment meets the minimum requirements for running the version of WordPress you are using.
Friday, May 26th, 2023 | Technology
WordPress is primarily written in the programming languages PHP (Hypertext Preprocessor) and JavaScript. PHP is a server-side scripting language that is widely used for web development. WordPress uses PHP for its core functionalities, such as handling database interactions, processing server-side requests, and generating dynamic web pages.
JavaScript, on the other hand, is a client-side scripting language primarily used for enhancing user interactions and providing dynamic functionality on the web. WordPress utilizes JavaScript extensively in its administration panel (backend) and for various frontend features, including themes and plugins.
In addition to PHP and JavaScript, WordPress also incorporates HTML (Hypertext Markup Language) and CSS (Cascading Style Sheets) for structuring and styling web pages, respectively. These languages work together to create the overall functionality and appearance of WordPress websites.
Monday, May 8th, 2023 | Server
Hands down: https://kittyfisto.github.io/Tailviewer/
Sunday, December 5th, 2021 | System
del /s /q /f /a .DS_STORE
del /s /q /f /a ._.*
https://awesometoast.com/delete-all-instances-of-ds_store-in-windows/
Tuesday, March 16th, 2021 | Server
IIS:
https://computingforgeeks.com/how-to-configure-default-site-in-iis-server
https://tecadmin.net/enable-url-rewrite-iis/
Lucee:
Lucee Lockdown - https://www.youtube.com/watch?v=wt4Y6uAPbc0
https://robertmunn.com/blog/logging-into-lucee-admin-of-a-new-instance
https://docs.lucee.org/guides/Various/TIPS/TIPS-custom-JARs.html
https://commandbox.ortusbooks.com/embedded-server/configuring-your-server/custom-error-pages
https://docs.lucee.org/guides/cookbooks/Exeception-Output.html
https://docs.lucee.org/reference/tags/error.html
https://docs.lucee.org/guides/cookbooks/application-context-basic.html
CommandBox:
https://www.ortussolutions.com/blog/screencast-starting-commandbox-servers-as-a-windows-service
Monday, June 27th, 2022 | System
Tuesday, May 25th, 2021 | System
https://cheatography.com/garciadev/cheat-sheets/commandbox/
https://commandbox.ortusbooks.com/embedded-server/configuring-your-server/url-rewrites
https://www.tutorialsteacher.com/articles/set-custom-domain-name-for-localhost-website-iis
https://cfconfig.ortusbooks.com/introduction/introduction
CFCONFIG
https://www.ortussolutions.com/blog/introducing-cfconfig-a-new-way-to-manage-your-cf-servers-configuration-from-the-command-line
https://cfconfig.ortusbooks.com/using-the-cli/command-overview/manage-datasources
Tuesday, July 13th, 2021 | Technology
https://www.wpbeaverbuilder.com/woocommerce-single-product-page-builder
Wednesday, January 11th, 2023 | System
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', true );
Wednesday, November 16th, 2022 | Server
Character Set: utf8mb4
Collation: utf8mb4_unicode_ci
Thursday, October 14th, 2021 | System
https://forum.directadmin.com/threads/exif-and-imagick-installation.57876/
Wednesday, October 6th, 2021 | System
Malware Scan:
find . -name '*.php' -print0 | xargs -0 egrep -in 'wp_cd_code'
Search by Recents: ( add backslash-n after %p )
find . f -printf '%TY-%Tm-%Td %TT %p ' | sort -r
Notes:
https://www.google.com/search?q=lock360.php
https://www.getastra.com/blog/911/how-to-remove-the-backdoor-php-apiword-malware-from-your-wordpress-website
https://securityboulevard.com/2020/09/the-hidden-php-malware-that-reinfects-cleaned-files
Cleaning Scripts:
Search for “pwd163”
Search for 8/8 file creation date ( or other infection date )
Remove all htaccess files
Compare Main Folders
Compare Theme Files
Review Database
Thursday, December 27th, 2018 | Server
Common commands to standardize user and group, as well as permissions for directories and files:
Update user/group:
chown -R username public_html/ chgrp -R groupname public_html/
Add a backslash before the semicolon on the following commands:
Change directory permissions rwxr-xr-x: find . -type d -exec chmod 755 {} ;
Change file permissions rw-r--r--: find . -type f -exec chmod 644 {} ;
Thursday, May 26th, 2022 | Server
Header set Strict-Transport-Security "max-age=31536000" env=HTTPS
Header set X-XSS-Protection "1; mode=block"
Header set X-Content-Type-Options nosniff
Header always append X-Frame-Options SAMEORIGIN
#Header add Content-Security-Policy "default-src 'self';
#Header set Feature-Policy "geolocation 'self'; vibrate 'none'"
#Header set Referrer-Policy "same-origin""
#Header Referrer-Policy: no-referrer-when-downgrade
Header always set Content-Security-Policy "upgrade-insecure-requests;"
Architecture
Artificial Intelligence
Business
Coding
Design
Electronics
Entrepreneur
Family
Financial
Food
Gardening
General
Health
Inspiration
Lifestyle
Lyrics
Marketing
Music
Music Business
Parenting
Robotics
Server
System
Technology