-------------------------------------- fallocate -l 10G /disk01/swapfile chmod 0600 /disk01/swapfile mkswap /disk01/swapfile swapon /disk01/swapfile -------------------------------------- vi /etc/fstab /dev/mapper/cl-root /disk01 xfs defaults 0 0 /dev/mapper/cl-home /home xfs defaults 0 0 /dev/sdb1 /data0 ext4 nofail,defaults 0 0 […]
eclipse+maven setup Hint
download Mavenhttps://maven.apache.org/download.cgi unzip & system configurationMAVEN_HOMEJAVA_HOMEPATH Eclipse > Install New Softwarehttp://download.eclipse.org/technology/m2e/releasesMaven integration for Eclipse
mac : finder show hidden files
$ defaults write com.apple.Finder AppleShowAllFiles true $ killall Finder
windows 10 복구 파티션 삭제 hint!
C:\Windows\system32>diskpart DISKPART> list disk DISKPART> select disk 0 DISKPART> list partition DISKPART> select partition 1 DISKPART> delete partition override
Microsoftupdate.vbs 오류
regedit.exe 컴퓨터\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
/etc/fstab : with nofail
vi /etc/fstab -------------------------------------- /dev/sdb1 /data300G1 ext4 nofail,defaults 0 0 1.1.1.46:/ /owl46 nfs nofail,defaults 0 0 -------------------------------------- findmnt --verify --verbose
CentOS8 : rc-local.service nfs mount Hint
vi /usr/lib/systemd/system/rc-local.service [Unit] Description=/etc/rc.d/rc.local Compatibility Documentation=man:systemd-rc-local-generator(8) ConditionFileIsExecutable=/etc/rc.d/rc.local After=network.target After=network-online.target [Service] Type=forking ExecStart=/etc/rc.d/rc.local start TimeoutSec=0 RemainAfterExit=yes GuessMainPID=no [Install] WantedBy=multi-user.target -------------------------------------- vi /etc/rc.d/rc.local mount /dev/sdc1 /data1TB3 mount -t nfs 1.1.1.49:/ /owl49 -------------------------------------- chmod 755 /etc/rc.d/rc.local -------------------------------------- systemctl enable rc-local.service -------------------------------------- Created symlink […]
mariadb-10.3 : enum empty insert error Hint : STRICT_TRANS_TABLES
mysql -uroot -p -e "show variables like 'sql_mode';" sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' remove STRICT_TRANS_TABLES mysql -uroot -p -e "SET GLOBAL sql_mode = 'ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';"
Fedora 31 : firewall-cmd : ImportError undefined symbol: XML_SetHashSalt Hint
LD_LIBRARY_PATH problem! lib64 vs old lib 32 conflict. # firewall-cmd -------------------------------------- Traceback (most recent call last): File "/usr/bin/firewall-cmd", line 31, in <module> from firewall.client import FirewallClient, FirewallClientIPSetSettings, \ File "/usr/lib/python3.7/site-packages/firewall/client.py", line 28, in <module> import dbus.mainloop.glib File "/usr/lib64/python3.7/site-packages/dbus/__init__.py", line 95, in <module> from dbus._dbus import […]
php7 : barcode39 debug Hint : $$bars[$i][4]
//imagefilledrectangle($img, $bars[$i][0], $bars[$i][1], $bars[$i][2], $bars[$i][3], $$bars[$i][4]); imagefilledrectangle($img, $bars[$i][0], $bars[$i][1], $bars[$i][2], $bars[$i][3], ${$bars[$i][4]});