Notepad:Notepad: Difference between revisions
From Amar
Jump to navigationJump to search
→Linux Tricks: Reclaim disk space from a sparse image file (qcow2/ vmdk) |
|||
Line 134: | Line 134: | ||
* [https://unix.stackexchange.com/questions/620427/how-to-detect-and-clean-up-junk-journal-files Clean Out Journal] | * [https://unix.stackexchange.com/questions/620427/how-to-detect-and-clean-up-junk-journal-files Clean Out Journal] | ||
sudo journalctl --vacuum-time=3weeks | sudo journalctl --vacuum-time=3weeks | ||
* [https://www.jamescoyle.net/how-to/323-reclaim-disk-space-from-a-sparse-image-file-qcow2-vmdk Reclaim disk space from a sparse image file (qcow2/ vmdk)] | |||
== MySQL == | == MySQL == |
Revision as of 18:34, 9 January 2022
Unfiled
- Benchmarks
- PIX Capture
- genealogy site building
- iCalendar RFC
- Exeprian Benefits
- get a freelancer
- Visa Lottery
- PHP Test
- PHP Result
- How to set up favicon
- Quicken Payroll : ViewMyPaycheck Employees Menu > Manage Payroll Cloud Services > CHECK the ViewMyPaycheck box > Enter the PIN > click Save Changes. That's it!
- Thunderbird User CSS in userChrome.css (roaming profile)
#threadTree treechildren::-moz-tree-row(odd) { -moz-appearance: none !important; background-color: #your_color_here !important; } #threadTree treechildren::-moz-tree-row(odd, selected) { background-color: Highlight !important; }
Windows
- Prevent Reboots
- The Windows Update Patch
- Wrap up background Tasks
- Notepad:WindowsTime Windows Time Service and Internet Communications
- Join Samba 3 to your Active Directory Domain
- Missing Media Player in Vista/Firefox
- rearm Vista
slmgr.vbs -rearm
- Windows DNS security hack
- Media Center patch for Vista
- Sysinternals for windows
- Debugging Tools for Windows
- How to reset the Domain Admin Password under Windows 2003 Server
- Install Windows 7 on USB
- Notepad:Rejoin Domain
- Notepad:Enable Num Lock
- Task Manager at 100%
C:\WINDOWS\system32>PowerCfg /SETACVALUEINDEX SCHEME_CURRENT SUB_PROCESSOR IDLEDISABLE 000 C:\WINDOWS\system32>PowerCfg /SETACTIVE SCHEME_CURRENT
DISM /Online /Cleanup-Image /RestoreHealth /source:WIM:F:\Sources\Install.wim:1 /LimitAccess DISM /Online /Cleanup-Image /RestoreHealth /source:F:\sources /LimitAccess
- SSL Security Best Practices Nartac IISCrypto
- Fix Mapped Network Drive Disconnect
- Notepad:Fix Windows Directory Permissions
URLs
- Ajax Howto
- Special Alt Keys & Accents
- Keynote Internet Health Report
- Global Wholesalers Sattelite
- F2 ATV Sat code
- The Tiny Encryption Algorithm (TEA)
- Water Cooling
- Motorola USB drivers
- SSL Labs SSL cert check
- DNSSEC Analyzer
- Google DNS test
Linux Tricks
Linux stuff I often have to lookup. Just my personal list of things.
- NFS unload filesystem
- mysql slave skip error
- GRUB install
- Domain Keys
- Change Timezone
- Gigabit Network
- Syncookie
- Local Mount
- SWAP
- depmod
- Chain of IP addresses
- Xterm startup with different colors and font sizes
- Notepad:RPM - YUM Platform
- In place upgrade of Fedora Core by yum
- CentOS / Red Hat Linux: Install and manage iSCSI Volume
- Configure a LDAP directory service
- NetworkManager Configuration
- Accessing IMAP email accounts using telnet.
- Enable service syslog to have /var/log/messages populated
- Force a disk check on reboot
shutdown -rF now
- Create a network bridge for Virtual Machines
- Upgrade CentOS 4 to 5
- Create a CRT for an SSL certificate
- Properly configure Samba on Linux
- Postfix config
- Use wget to download full website
- Converting a running physical machine to a kvm virtual machine
- Generate XAUTH on a new host
xauth add `hostname`/unix:0 . `openssl rand -hex 32`
- yum versionlock - allows to lock an rpm
- install faster random for dns etc.
yum install haveged; systemctl enable haveged; systemctl start haveged
sudo visudo -f /mnt/etc/sudoers
- Converting a running physical machine into a KVM virtual machine
- Which Process is listening on a port
netstat -tulpn
- Recover GRUB 2
- Install all package from another machine
xargs yum -y install < file
- Create Default Home Directory
mkhomedir_helper username
- Schedule crontab with lock
- Configure UPS shutdown frmo Linux with nut
- Midnight Commander
- Nagios
- Google Authenticator Setup
- Boot from Centos 7 RAID 1 EUFI
- Create a directory under var at boot or startup
use tmpfiles.d and have your package create at startup or boot a file or directory /usr/lib/tmpfiles.d/mydaemon.conf : man tmpfiles.d #Type Path Mode UID GID Age Argument d /run/mydaemon 0755 myuser myuser - -
- lm_sensors
- Change systemd Timeout
- Google Authenticator Across Servers
- Yum install with missing deps
rpm -Uvh --nodeps $(repoquery --location <module>)
- LVM Snapshot
- Example routing iptables firewall
- Disable IPv6
- find the right device for smartctl
- ssh into a machine without a terminal -T
- Clean Out Journal
sudo journalctl --vacuum-time=3weeks
MySQL
- UTF8
- Get a list of processes to kill
SELECT GROUP_CONCAT(CONCAT('KILL ',id,';') SEPARATOR ' ') 'Paste the following query to kill all processes' FROM information_schema.processlist WHERE user<>'system user'
- install latest MariaDB
curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash
- Move/Rename a DB to another
mysql -u username -ppassword old_db -sNe 'show tables' | while read table; \ do mysql -u username -ppassword -sNe "rename table old_db.$table to new_db.$table"; done
- database dump without charset
mysqldump -u <user> -p --skip-add-locks --skip-set-charset <DB> <tables ...>
- Disable foreign key checks in a session
SET FOREIGN_KEY_CHECKS=0;
SSL Certificates
Version Control
- Understanding git conceptually
- SVN Create New Repository with branches
- make a file executable in git (+x)
git update-index --chmod=+x filename.sh
Oracle
- Oracle Build Custom Aggregate Function
- Oracle Timer
- Oracle Pin in memory
- Oracle View Performance
- Oracle Pagination
SC Backup
Matricom gBox Q
KVM
QNAP
Zend Framework
Video ffmpeg
Convert wmv to mp4
ffmpeg -i <input> -c:v libx264 -c:a aac -strict -2 -q:a 100 -crf 23 <output>
Zimbra
- Automatic Zimbra certbot
- Zimbra letsencrypt
- Zimbra DKIM
- Zimbra Letsencrypt SSL Renew
- Zimbra Let's encrypt
AWS
- AWS Letsencrypt Manual Setup
- Load balance instances to 1
- Generate new cert
letsencrypt certonly --webroot -w /var/www/mydomain -d mydomain.com -d www.mydomain.com -w /var/www/cool-site -d cool-site.com -d www.cool-site.com
- deploy new cert to all
- upload into AWS *Load Balance* *Listeners* *SSL Certificate* (We get a weird error but it works)
- Load balance instances back to all
Hackintosh
pmset -g assertions
These are the steps
- replacing the drivers > UEFI > AptioMemoryFix.efi with OpenRuntime.efi
- Also, add OcQuirk.efi (More Info: https://github.com/ReddestDream/OcQuirks)
- select: config.plist/Quirks > DisableIoMapper
- 10GbE Support Marvel Aquantia 10GBE patch
Kext to patch com.apple.driver.AppleEthernetAquantiaAqtion Find 41C70424 00000000 E9 Replace 41C70424 01000000 E9 comment Marvell AQC107 10GBE Patch
- Monterey 10GBE Patch by Mieze Monterey Patch by Mieze
We've got to modify the patch.
You need to find 41 c7 45 00 00 00 00 00 e9 and replace it with 41 c7 45 00 01 00 00 00 e9
Firefox
about:config
layout.css.devPixelsPerPx
to set the textsize on high res displays
<insert>googlesearchwiki</insert> | <insert>paypal</insert> | <insert>analytics</insert> |