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 to my Mac - is a piece of art. The GPIO interface connects via USB to the computer on one side; two 10-pin SIP connectors provide the power, ground, and I/O pins on the other.
The FT232-H supports many protocols. I don't get into this. I do, however, utilize the digital I/O pins for standard binary entry. This allows integration with simple switch circuits and advanced buttoned matrices ( or a parallel binary connection to any other circuit, i.e. a binary decoder ( 74HC595 ) ).
A Python API exposes all basic services of the chip and allows rapid integration into any programme environment that requires GPIO. This solution provides an affordable, expandable, I/O interface to all popular computing platforms, ultimately controlled via shell scripts and abstracted through a web interface. The design encourages opportunities for remote IOT installations or 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, 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/
Tuesday, July 13th, 2021 | Coding
Bootstrap 3 -> 4 Migration
Replace hidden-xs hidden-sm
Replace img-responsive to fluid
Breadcrumbs
Add breadcrumb-item to li class
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
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
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
LOG CLEAR
cd /var/www
add new line to end ( backslash n ) inside single quotes:
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 '> {}' ;
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>
Friday, October 29th, 2021 | Technology
Working Resources:
https://tagmanager.google.com
https://zozimus.com/blog/how-to-track-a-button-click-event-in-google-analytics-using-google-tag-manager/
Websites to review:
https://www.lovesdata.com/blog/google-tag-manager-button-click-tracking
https://www.analyticsmania.com/post/google-tag-manager-click-tracking/
Friday, January 19th, 2018 | Coding
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
Tuesday, January 30th, 2018 | Coding
< cfdump var="#htaccess#"> < cfdirectory directory="ram:///" name="files" recurse="true"> < cfdump var="#files#">
Sunday, January 7th, 2018 | Coding
File name patterns: *, !*.jpg, !*.mp3, !*.ogg, !*.png, !*.wav, !*.zip, !.DS_Store
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
Tuesday, July 27th, 2021 | Server
Connection String
zeroDateTimeBehavior=convertToNull&serverTimezone=America/New_York
Thursday, July 29th, 2021 | System
https://framework-one.github.io/documentation/4.3/developing-applications/
Reinitialize the framework:
?fwreinit=xxx
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>
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" />
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/
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
}
}
}
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:
Tuesday, November 6th, 2018 | Business
Wednesday, January 20th, 2021 | System
System Monitoring Dashboard
Now, let’s visit the infrastructure side of things. With our live service monitoring, we offer a powerful web-based dashboard that checks the services’ statuses in an asynchronous manner and pushes data to clients in real-time.
Both internal (intra-company) and public services’ statuses can be reported live and in real-time using this technology. Push that idea a little further and try to imagine a Network Operations Center (NOC) monitoring applications in a telecommunications operator, cloud/network/hosting provider, or some financial institution, all run on our web stack backed by ColdFusion.
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!'
Saturday, January 6th, 2018 | General
Happy New Year from all of us at E19 Creative. 2017 was a big year including another HIT music release on the Billboards, go Half Mile Home! We made several major technical advancements and have geared up for the next year of design and development, bringing your creativity to life.
We are engaging 2018 full force, turning processes into productivity with a focus on outcome, not just output. Now is the perfect time to sign up for our custom web services.
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
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
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
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:
Wednesday, January 9th, 2019 | Server
yum install exfat-utils fuse-exfat mkdir /media/USB ls /dev/sd* mount -t exfat /dev/sda1 /media/USB/
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
Wednesday, October 27th, 2021 | System
Docker SQL Setup:
docker pull mcr.microsoft.com/mssql/server
docker run -e 'ACCEPT_EULA=Y' -e '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 RussellTownship_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
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
Sunday, January 7th, 2018 | Coding
< cflocation [^>]*> < cffunction [^>]*>
://[^w]*.patentawards
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"]
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/
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;
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)
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
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
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
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
Tuesday, July 13th, 2021 | Technology
https://coolrom.com.au/roms/
https://the-eye.eu/public/rom/NES/
https://www.freeroms.com
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
Monday, March 15th, 2021 | Server
https://medium.com/techbeatly/boot-from-image-using-vflash-in-dell-poweredge-servers-2e661768fdf8
Thursday, April 19th, 2018 | Coding
sudo arp-scan --interface=en0 --localnet
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']; }
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
Saturday, September 18th, 2021 | Technology
sa - enable login
enable pipes / tcp/ip in service manager
enable windows and user authentication
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, 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.
Sunday, December 5th, 2021 | System
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
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
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 {} ;
Architecture
Business
Coding
Design
Electronics
Entrepreneur
Family
Financial
Food
Gardening
General
Health
Inspiration
Lifestyle
Lyrics
Marketing
Music
Music Business
Parenting
Robotics
Server
System
Technology