net stop w32time w32tm /config /syncfromflags:manual /manualpeerlist:"0.de.pool.ntp.org 1.de.pool.ntp.org 2.de.pool.ntp.org 3.de.pool.ntp.org" net start w32time w32tm /config /update w32tm /resync /rediscover
Category: Technik
ZFS rename disk path
zpool status pool: tank state: ONLINE config: NAME STATE READ WRITE CKSUM tank ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 usb-SanDisk_SDSSDA-1T00_0123456789CA-0:0 ONLINE 0 0 0 da3p4 ONLINE 0 0 0 errors: No known data errors
zpool set path=/dev/disk-by-id/sdsdsdsd tank da3p4 zpool set path=/dev/gpt/my_nice_name
just type `zpool import` and you will see the name that you can import.
if you want to change the mount path use
zpool import -R /other/path poolname
to rename the pool use
zpool import original_name new_name
stuck at Install_SQLSupport_CPU64_Action
Install_SQLSupport_CPU64_Action
,C:\SQLServer2017Media\<YOUR_SQL_ENU>\1033_ENU_LP\x64\Setup
Install_SQLSupport_CPU64_Action
run SQLSUPPORT.msi
taskkill /F /FI "SERVICES eq msiserver"
Remove hihonor bloat ware
1) Download ADB
2) Enable USB Debugging on your device
3) Connect to the computer and verify your device is listed with the command “adb devices”
4) Type “adb Shell”
5) Type “pm list packages”, this will show you all packages installed on phone.
6) Type “pm uninstall -k –user 0 com.huawei.search”
7) you should see the word “Sucess” pop up Well I removed some more bloat ware
pm uninstall -k --user 0 com.google.android.apps.books pm uninstall -k --user 0 com.google.android.youtube pm uninstall -k --user 0 com.google.android.apps.youtube.music pm uninstall -k --user 0 com.google.android.apps.photos pm uninstall -k --user 0 com.google.mainline.telemetry pm uninstall -k --user 0 com.hihonor.android.fmradio pm uninstall -k --user 0 com.hihonor.calendar pm uninstall -k --user 0 com.hihonor.search pm uninstall -k --user 0 com.pal.train pm uninstall -k --user 0 com.hihonor.pcassistant pm uninstall -k --user 0 com.google.android.apps.tachyon pm uninstall -k --user 0 com.google.android.feedback pm uninstall -k --user 0 com.hihonor.printservice pm uninstall -k --user 0 com.hihonor.android.totemweather pm uninstall -k --user 0 com.hihonor.android.chr pm uninstall -k --user 0 com.hihonor.android.thememanager pm uninstall -k --user 0 com.google.android.videos pm uninstall -k --user 0 com.google.android.apps.messaging pm uninstall -k --user 0 com.hihonor.id
proxmox qmp command blockdev-snapshot-delete-internal-sync failed
While trying to move a VM from one node to another I got the error message:
VM 100 qmp command ‘blockdev-snapshot-delete-internal-sync’ failed – Failed to get a snapshot list: Operation not supported
One snapshot was stuck and the VM locked. How to solve this?
qm unlock 100 qm listsnapshot 100 qm delsnapshot 100 preFirstBoot --force
qm unlock <ID> qm listsnapshot <ID> qm delsnapshot <ID> <snapname> --force
it might be that the snapshot will remain on the hard disk.
Happy unlocking :)
esxi enable snmp
How to enable snmapd on your vmware esxi server
esxcli system snmp set --communities public esxcli system snmp set --enable true esxcli network firewall ruleset set --ruleset-id snmp --allowed-all true esxcli network firewall ruleset set --ruleset-id snmp --enabled true esxcli system snmp set --syslocation "My Location" esxcli system snmp set --targets=10.10.0.0@161/public
Now you can start the service from the UI
ban ’em all
Ban all the attackers. Easier said than done. A website is constantly under attack as the whole server. One day I decided it was too difficult to maintain every single server and ban those attackers. Blocking IPs on the website level is too late. Also, it consumes a lot of resources. So I went for iptables. You can find it on github/JBlond/ban_em_all
DROP vs REJECT. Well, DROP is a bad option for debugging. Also, it is not the default behavior of the OS itself. Nothing is listing on a port? The OS sends a reject. Sadly I haven’t found a way to use REJECT when it comes to IPs. Using DROP on the other hand the automatic server/website scanners assume a firewall and it is more likely to continue the scan.
Add real emojis and icons to mintty bash on windows
Installing git for windows isn’t hard anymore. I recommend installing “Git for Windows SDK” so you can install extra packages via Pacman. I like fish shell and tmux, and those aren’t included in the default installer. Either way, you can run bash and or fish on windows. The emojis and icons however don’t look very pretty, more like DOS-style.
Open a shell and cd to
C:\Program Files\Git\usr\share\mintty\emojis or C:\git-sdk-64\usr\share\mintty\emojis depending what installation you chose.
cd C:\git-sdk-64\usr\share\mintty\ mkdir emojis cd emojis curl -LO https://raw.githubusercontent.com/wiki/mintty/mintty/getemojis getemoji -d getemoji .
In mintty:
Options -> Text -> Emojis -> style: google
Options -> Text -> Character set -> UTF-8
Start-up folder on Windows Server
On Windows Server is can be a hassle to find the start-up folder/autostart folder. Quick shortcut: Win Key + R -> shell:startup
jQuery bind after ajax load
Sometimes it is needed to add a jQuery event listener to an element that isn’t present in the DOM at the creation of the page but created during runtime or the result of an ajax call.
What doesn’t work is
jQuery(document).ready(function () { jQuery('.selector').on({ click: function (event){ event.preventDefault(); console.log('I work only with existing elements'); } }); });
However, there is a way to achieve that.
jQuery(document).ready(function () { jQuery(document).on('click', '.selector', function (event){ event.preventDefault(); console.log('I work with a dynamically created elements'); }); });
Archive for category Technik
Archives by Month:
- May 2023
- April 2023
- March 2023
- February 2023
- January 2023
- December 2022
- October 2022
- September 2022
- August 2022
- July 2022
- May 2022
- March 2022
- February 2022
- November 2021
- October 2021
- September 2021
- August 2021
- July 2021
- June 2021
- May 2021
- February 2021
- January 2021
- August 2020
- July 2020
- June 2020
- April 2020
- January 2020
- December 2019
- November 2019
- October 2019
- May 2019
- April 2019
- March 2019
- January 2019
- October 2018
- August 2018
- June 2018
- April 2018
- March 2018
- February 2018
- November 2017
- June 2017
- April 2017
- February 2017
- January 2017
- November 2016
- September 2016
- May 2016
- February 2016
- September 2015
- August 2015
- July 2015
- May 2015
- April 2015
- March 2015
- February 2015
- January 2015
- December 2014
- November 2014
- July 2014
- June 2014
- April 2014
- January 2014
- December 2013
- August 2013
- July 2013
- June 2013
- May 2013
- April 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- August 2012
- July 2012
- June 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009