Main Page and Notepad:Notepad: Difference between pages

From Amar Wiki
(Difference between pages)
No edit summary
 
 
Line 1: Line 1:
== Amar Micro Inc. Presents ==
== Unfiled ==
* [[Notepad:Benchmark|Benchmark]]s
* [[Notepad:PIX Capture| PIX Capture]]
* [http://lythgoes.net/genealogy/software.php genealogy site building]
* [http://www.ietf.org/rfc/rfc2445.txt iCalendar RFC]
* [http://resources.hewitt.com/benefits/experian/ Exeprian Benefits]
* [http://www.getafreelancer.com/ get a freelancer]
* [http://travel.state.gov/visa/immigrants/types/types_1322.html Visa Lottery]
* [[Notepad:PHP Test | PHP Test]]
* [[Notepad:PHP Result | PHP Result]]
* [[Notepad:favicon | 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)
<syntaxhighlight lang='css' line>
#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;
}
</syntaxhighlight>


All the <big>big</big> projects that I am working on.
== Windows ==
* [[Notepad:Prevent Reboots|Prevent Reboots]]
* [http://softwarepatch.com/windows/ The Windows Update Patch]
* [[Notepad:Wrap up background Tasks|Wrap up background Tasks]]
* [[Notepad:WindowsTime Windows Time Service and Internet Communications]]
* [http://www.enterprisenetworkingplanet.com/netos/article.php/3487081 Join Samba 3 to your Active Directory Domain]
* [http://kb.mozillazine.org/Windows_Media_Player#Missing_plugin Missing Media Player in Vista/Firefox]
* [http://blogs.zdnet.com/Bott/?p=224 rearm Vista] <code>slmgr.vbs -rearm</code>
* [http://www.microsoft.com/technet/security/advisory/935964.mspx Windows DNS security hack]
* [http://support.microsoft.com/kb/932818 Media Center patch for Vista]
* [http://www.microsoft.com/technet/sysinternals/default.mspx Sysinternals for windows]
* [http://www.microsoft.com/whdc/devtools/debugging/default.mspx Debugging Tools for Windows]
* [http://www.nobodix.org/seb/win2003_adminpass.html How to reset the Domain Admin Password under Windows 2003 Server]
* [http://www.intowindows.com/how-to-install-windows-7vista-from-usb-drive-detailed-100-working-guide/ Install Windows 7 on USB]
* [[Notepad:Rejoin Domain]]
* [[Notepad:Enable Num Lock]]
* [https://superuser.com/questions/1060567/cpu-constantly-at-100-in-task-manager-but-not-in-process-explorer/1061436#1061436 Task Manager at 100% ]
C:\WINDOWS\system32>PowerCfg /SETACVALUEINDEX SCHEME_CURRENT SUB_PROCESSOR IDLEDISABLE 000
C:\WINDOWS\system32>PowerCfg /SETACTIVE SCHEME_CURRENT
* [https://www.tenforums.com/tutorials/80520-enable-disable-domain-users-sign-pin-windows-10-a.html Disable PIN and enable fingerprint for domain]
* [[Notepad::Prepare AD for windows 2012]]
* DISM Cleanup
  DISM /Online /Cleanup-Image /RestoreHealth /source:WIM:F:\Sources\Install.wim:1 /LimitAccess
  DISM /Online /Cleanup-Image /RestoreHealth /source:F:\sources /LimitAccess
* [https://www.nartac.com/Products/IISCrypto/Download SSL Security Best Practices Nartac IISCrypto]
* [https://www.windowscentral.com/how-fix-mapped-network-drive-problem-windows-10-october-2018-update Fix Mapped Network Drive Disconnect]
* [[Notepad:Fix Windows Directory Permissions]]


* [[FamileMan:Main Page|FamileMan.com Social Networking Site]]
== URLs ==
* [[Notepad:Ajax|Ajax Howto]]
* [http://everything2.com/index.pl?node=Special%20Alt%20key%20characters%20%26%20accents Special Alt Keys & Accents]
* [http://scoreboard.keynote.com/scoreboard/Main.aspx?Login=Y&Username=public&Password=public Keynote Internet Health Report]
* [http://www.globalwholesalers.biz/ Global Wholesalers Sattelite]
* [http://f2atv.com F2 ATV Sat code]
* [http://www.simonshepherd.supanet.com/tea.htm The Tiny Encryption Algorithm (TEA)]
* [[Notepad:Water Cooling|Water Cooling]]
* [https://developer.motorola.com/docstools/USB_Drivers/Handset_USB_Driver/ Motorola USB drivers]
* [https://www.ssllabs.com/ssltest/index.html SSL Labs SSL cert check]
* [https://dnssec-analyzer.verisignlabs.com/ DNSSEC Analyzer]
* [https://dns.google.com/query?type=A&dnssec=true Google DNS test]


* [[AmarCommerce:Main Page|Commerce Shopping Site]]
== Linux Tricks ==
Linux stuff I often have to lookup. Just my personal list of things.


* [[EmailServer:Mail Page|Email Server Page]]
* [[Notepad:NFS unload| NFS unload filesystem]]
* [[Notepad:mysql slave skip error| mysql slave skip error]]
* [[Notepad:GRUB install| GRUB install]]
* [http://www.enterux.com/en/resources/yahoo-domainkeys-howto-debian Domain Keys]
* [[Notepad:Change Timezone| Change Timezone]]
* [http://datatag.web.cern.ch/datatag/howto/tcp.html Gigabit Network]
* [[Notepad:Syncookie| Syncookie]]
* [[Notepad:Local Mount| Local Mount]]
* [[Notepad:SWAP| SWAP]]
* [[Notepad:depmod| depmod]]
* [[Notepad:Chain of IP addresses| Chain of IP addresses]]
* [[Notepad:Xterm startup|Xterm startup]] with different colors and font sizes
* [[Notepad:RPM - YUM Platform]]
* [http://fedoraproject.org/wiki/YumUpgradeFaq In place upgrade of Fedora Core by yum]
* [http://www.cyberciti.biz/tips/rhel-centos-fedora-linux-iscsi-howto.html CentOS / Red Hat Linux: Install and manage iSCSI Volume]
* [https://www.certdepot.net/rhel7-configure-ldap-directory-service-user-connection/ Configure a LDAP directory service ]
* [[Notepad:NetworkManager Configuration| NetworkManager Configuration]]
* [http://bobpeers.com/technical/telnet_imap Accessing IMAP email accounts using telnet.]
* Enable service syslog to have /var/log/messages populated
* Force a disk check on reboot
shutdown -rF now
* [http://www.rootninja.com/create-a-network-bridge-for-virtual-machines/ Create a network bridge for Virtual Machines]
* [http://www.rfxn.com/upgrade-centos-4-to-5/ Upgrade CentOS 4 to 5]
* [[Notepad:SSL CRT generation | Create a CRT for an SSL certificate]]
* [[Notepad:Samba | Properly configure Samba on Linux]]
* [[Notepad:Postfix | Postfix config]]
* [[Notepad:wget | Use wget to download full website]]
* [http://manuel.kiessling.net/2013/03/19/converting-a-running-physical-machine-to-a-kvm-virtual-machine/ 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.
<syntaxhighlight lang='bash' line>
yum install haveged;
systemctl enable haveged;
systemctl start haveged
</syntaxhighlight>
* [https://askubuntu.com/questions/73864/how-to-modify-an-invalid-etc-sudoers-file How to modify an invalud sudoers file]
sudo visudo -f /mnt/etc/sudoers
* [http://manuel.kiessling.net/2013/03/19/converting-a-running-physical-machine-to-a-kvm-virtual-machine/ Converting a running physical machine into a KVM virtual machine]
* Which Process is listening on a port
netstat -tulpn
* [https://www.unixarena.com/2018/05/how-to-recover-grub-on-rhel-7-centos-7.html/ Recover GRUB 2]
* Install all package from another machine
xargs yum -y install < file
* Create Default Home Directory
mkhomedir_helper username
* [[Notepad:crontab | Schedule crontab with lock]]
* [https://hackernoon.com/how-to-shutdown-your-servers-in-case-of-power-failure-ups-nut-co-34d22a08e92 Configure UPS shutdown frmo Linux with nut]
* [[Notepad:mc | Midnight Commander]]
* [[Notepad:nagios | Nagios]]
* [https://wiki.archlinux.org/index.php/Google_Authenticator Google Authenticator Setup]
* [https://www.svennd.be/software-raid-1-on-centos-7-eufi-running-system/ Boot from Centos 7 RAID 1 EUFI]
* [https://serverfault.com/questions/779634/create-a-directory-under-var-run-at-boot 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  -  -


* [[Misc:Main Page|Misc. Other projects]]
* [https://wiki.archlinux.org/index.php/Lm_sensors lm_sensors]
* [https://unix.stackexchange.com/questions/227017/how-to-change-systemd-service-timeout-value Change systemd Timeout]
* [https://jumpcloud.com/blog/sharing-google-authenticator-secret-keys-across-servers/ Google Authenticator Across Servers]
* Yum install with missing deps
rpm -Uvh --nodeps $(repoquery --location <module>)
* [[Notepad:LVM Snapshot| LVM Snapshot]]
* [https://www.linuxquestions.org/questions/slackware-14/how-to-configure-iptables-for-router-with-2-public-ip-addresses-4175618196/ Example routing iptables firewall]
* [[Notepad:Disable IPv6 | Disable IPv6]]
* [https://serverfault.com/questions/620019/smartctl-megaraid-how-to-find-the-right-device-node-for-an-adapter find the right device for smartctl]
* ssh into a machine without a terminal '''<nowiki>-T</nowiki>'''
* [https://unix.stackexchange.com/questions/620427/how-to-detect-and-clean-up-junk-journal-files Clean Out Journal]
  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)]
* [https://medium.com/swlh/make-your-raspberry-pi-file-system-read-only-raspbian-buster-c558694de79 Make your Raspberry Pi file system read-only]


* [[Notepad:Notepad|Notepad]]
== MySQL ==
* [[Notepad:UTF8|UTF8 ]]
* Get a list of processes to kill
<pre class="brush:[SQL]">
SELECT GROUP_CONCAT(CONCAT('KILL ',id,';') SEPARATOR ' ')
'Paste the following query to kill all processes'
FROM information_schema.processlist
WHERE user<>'system user'
</pre>


* install latest MariaDB
curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash


== Mediawiki standard messages ==
* 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


<big>'''MediaWiki has been successfully installed.'''</big>
* database dump without charset
  mysqldump -u <user> -p --skip-add-locks --skip-set-charset <DB> <tables ...>


Consult the [http://meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.
* Disable foreign key checks in a session
SET FOREIGN_KEY_CHECKS=0;


== Getting started ==
== SSL Certificates ==
* [[Notepad:SSL|SSL Certificates]]


* [http://www.mediawiki.org/wiki/Help:Configuration_settings Configuration settings list]
== Version Control ==
* [http://www.mediawiki.org/wiki/Help:FAQ MediaWiki FAQ]
* [http://www.sbf5.com/~cduan/technical/git/ Understanding git conceptually]
* [http://mail.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]
* [[Notepad:SVN Create| SVN Create New Repository with branches]]
* make a file executable in git (+x)
  git update-index --chmod=+x filename.sh


== Oracle ==
* [[Notepad:Oracle Build Custom Aggregate Function|Oracle Build Custom Aggregate Function]]
* [[Notepad:Oracle Timer|Oracle Timer]]
* [http://www.jlcomp.demon.co.uk/faq/pin_table.html Oracle Pin in memory]
* [http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:1353453813863 Oracle View Performance]
* [[Notepad:Oracle Pagination|Oracle Pagination]]


== SC Backup ==
*[[Notepad:Dell OpenManage | Dell Openmanage Install]]


{{Wiki}}
== Matricom gBox Q ==
*[[Notepad:qBox Root | gBox Q root]]
 
== KVM ==
*[[Notepad:KVM | KVM]]
* [https://computingforgeeks.com/how-to-convert-virtualbox-disk-image-vdi-and-img-to-qcow2-format/ How to convert virtualbox disk image vdi and img to qcow2 format]
 
== QNAP ==
*[[Notepad:QNAP | QNAP]]
 
== Zend Framework ==
* [[Notepad:Zend Setup]]
 
== Video ffmpeg ==
Convert wmv to mp4
'''ffmpeg''' -i ''<input>'' -c:v libx264 -c:a aac -strict -2 -q:a 100 -crf 23 ''<output>''
 
== Zimbra ==
* [https://lorenzo.mile.si/letsencrypt-zimbra-the-easy-way/242/ Automatic Zimbra certbot]
* [https://wiki.zimbra.com/wiki/Installing_a_LetsEncrypt_SSL_Certificate Zimbra letsencrypt]
* [https://wiki.zimbra.com/wiki/Configuring_for_DKIM_Signing Zimbra DKIM]
* [https://gist.github.com/ugurerkan/6e9e3addf9a574ad0c57039164570e6f Zimbra Letsencrypt SSL Renew]
* [[Notepad:Zimbra Zimbra Let's encrypt | Zimbra Let's encrypt ]]
* [https://community.letsencrypt.org/t/zimbra-renewal-problems-with-r3/160842/38 Zombra renewal - Problems with R3]
Working with the following for chain.pem:
-----BEGIN CERTIFICATE-----
MIIFFjC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yC3+6WVwW6LLv3xLfHTjuCvjHIInNzktHCgKQ5
ORAzI4JMPJ+GslWYHb4phowim57iaztXOoJwTdwJx4nLCgdNbOhdjsnvzqvHu7Ur
TkXWStAmzOVyyghqpZXjFaH3pO3JLF+l+/+sKAIuvtd7u+Nxe5AW0wdeRlN8NwdC
jNPElpzVmbUq4JUagEiuTDkHzsxHpFKVK7q4+63SM1N95R1NbdWhscdCb+ZAJzVc
oyi3B43njTOQ5yOf+1CceWxG1bQVs5ZufpsMljq4Ui0/1lvh+wjChP4kqKOJ2qxq
4RgqsahDYVvTH9w7jXbyLeiNdd8XM2w9U/t7y0Ff/9yi0GE44Za4rF2LN9d11TPA
mRGunUHBcnWEvgJBQl9nJEiU0Zsnvgc/ubhPgXRR4Xq37Z0j4r7g1SgEEzwxA57d
emyPxgcYxn/eR44/KJ4EBs+lVDR3veyJm+kXQ99b21/+jh5Xos1AnX5iItreGCc=
-----END CERTIFICATE-----
 
== AWS ==
* [https://blog.alejandrocelaya.com/2016/08/16/setup-a-lets-encrypt-certificate-in-a-aws-elastic-load-balancer/ 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 ==
* [https://github.com/CloverHackyColor/CloverBootloader/releases Clover Releases]
* [https://github.com/jerw84/Z87-D3H Switch from Clover to OpenCore]
* [https://www.howtogeek.com/302942/how-to-figure-out-whats-preventing-your-mac-from-sleeping/ How to tell what's preventing sleep]
pmset -g assertions
* [https://www.google.com/search?client=firefox-b-1-d&q=clover+5122+to+5126 Clover 5122 to 5126]
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 [https://www.insanelymac.com/forum/topic/330614-marvell-aquantia-10-gb-ethernet-support-thread/ 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 [https://www.insanelymac.com/forum/topic/330614-marvell-aquantia-10-gb-ethernet-support-thread/page/15/?tab=comments#comment-2760408 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 ==
=== [http://about:config about:config] ===
layout.css.devPixelsPerPx
to set the textsize on high res displays
 
== Wireguard==
=== [https://serverfault.com/questions/1013535/unable-to-configure-wireguard-to-use-secondary-ip-address-instead-of-main-ip-add Wireguard using a secondary interface with iptables help] ===
 
----
{{wiki}}

Revision as of 20:05, 11 August 2022

Unfiled

 #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

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

URLs

Linux Tricks

Linux stuff I often have to lookup. Just my personal list of things.

shutdown -rF now
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
netstat -tulpn
xargs yum -y install < file
  • Create Default Home Directory
mkhomedir_helper username
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   -   -
rpm -Uvh --nodeps $(repoquery --location <module>)
  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

  git update-index --chmod=+x filename.sh

Oracle

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

Working with the following for chain.pem:

-----BEGIN CERTIFICATE-----
MIIFFjCCAv6gAwIBAgIRAJErCErPDBinU/bWLiWnX1owDQYJKoZIhvcNAQELBQAw
TzELMAkGA1UEBhMCVVMxKTAnBgNVBAoTIEludGVybmV0IFNlY3VyaXR5IFJlc2Vh
cmNoIEdyb3VwMRUwEwYDVQQDEwxJU1JHIFJvb3QgWDEwHhcNMjAwOTA0MDAwMDAw
WhcNMjUwOTE1MTYwMDAwWjAyMQswCQYDVQQGEwJVUzEWMBQGA1UEChMNTGV0J3Mg
RW5jcnlwdDELMAkGA1UEAxMCUjMwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK
AoIBAQC7AhUozPaglNMPEuyNVZLD+ILxmaZ6QoinXSaqtSu5xUyxr45r+XXIo9cP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9nJEiU0Zsnvgc/ubhPgXRR4Xq37Z0j4r7g1SgEEzwxA57d
emyPxgcYxn/eR44/KJ4EBs+lVDR3veyJm+kXQ99b21/+jh5Xos1AnX5iItreGCc=
-----END CERTIFICATE-----

AWS

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

  1. replacing the drivers > UEFI > AptioMemoryFix.efi with OpenRuntime.efi
  2. Also, add OcQuirk.efi (More Info: https://github.com/ReddestDream/OcQuirks)
  3. select: config.plist/Quirks > DisableIoMapper
Kext to patch
com.apple.driver.AppleEthernetAquantiaAqtion

Find
41C70424 00000000 E9

Replace
41C70424 01000000 E9

comment
Marvell AQC107 10GBE Patch

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

layout.css.devPixelsPerPx

to set the textsize on high res displays

Wireguard



© 2000-2025 Jacques Amar Amar Micro Inc.