This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const delay = ms => new Promise(res => setTimeout(res, ms)); | |
| while (true) { | |
| document.querySelector("#cachedPages > thead > tr > th:nth-child(1) > div > input").click(); | |
| document.querySelector("#root > div > div > div:nth-child(2) > div.main-content > div.container-fluid > div > div.list-alert.alert.alert-dark.alert-dismissible.border.show > div > div.col-auto.mr-n3 > button:nth-child(2) > i").click(); | |
| var i = 0; | |
| var endit = false; | |
| while (document.querySelector("#cachedPages > tbody > tr:nth-child(1) > td.col-flex.no-border.pl-0.pl-0 > div") === null) { | |
| i++; | |
| await delay(100); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Unix timestamp (*1000 already applied) to Date. No need to set timezone | |
| var ut = sourceMap.get('fileLastModified'); | |
| var d = new java.util.Date(parseInt(ut)); | |
| var date = DateUtil.getDate('yyyyMMddHHmmss', d); | |
| // Delete file. "delete" is a reserved Rhino keyword | |
| var file = java.io.File('test.txt'); | |
| file["delete"](); | |
| // SQL with params |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- VirtualBox-kmod-4.3.18/vboxvideo/vboxvideo_drm.c.org 2014-10-16 12:36:14.000000000 +0200 | |
| +++ VirtualBox-kmod-4.3.18/vboxvideo/vboxvideo_drm.c 2014-11-10 01:49:15.353329725 +0100 | |
| @@ -77,6 +77,7 @@ | |
| # endif | |
| #include "drm/drmP.h" | |
| +#include "drm/drm_legacy.h" | |
| #include "vboxvideo_drm.h" | |
| # ifndef RHEL_RELEASE_CODE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff -Nur vboxsf/regops.c vboxsf/regops.c | |
| --- vboxsf/regops.c 2014-06-24 13:04:56.176591179 +0200 | |
| +++ vboxsf/regops.c 2014-06-23 09:19:50.695515003 +0200 | |
| @@ -574,8 +574,13 @@ | |
| # else | |
| .sendfile = generic_file_sendfile, | |
| # endif | |
| +# if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0) | |
| + .read_iter = generic_file_read_iter, | |
| + .write_iter = generic_file_write_iter, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| os=$(facter operatingsystem) | |
| case "$os" in | |
| Fedora) | |
| kernel_installed=$(yum list installed kernel | tail -n 1 | awk '{print $2}') | |
| ;; | |
| Ubuntu) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| save files in .local/share/gnome-shell/extensions/[email protected]/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| backup="/tmp/chromium-linux-backup.tar.gz" | |
| tmpdir="/tmp/chromium-nightly" | |
| installdir="/usr/lib/chromium" | |
| url="http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64" | |
| echo "*** update script for Chromium nightly builds ***" | |
| mkdir $tmpdir 2> /dev/null | |
| cd $tmpdir |