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
<!--TUI grid vue--> | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/tui-grid.min.js" integrity="sha256-dnG2gatS89cYrQQsKOZ7pAAX8iz82SfOLW82Cm7/Q3A=" crossorigin="anonymous"></script> | |
<script src="https://cdn.jsdelivr.net/npm/@toast-ui/[email protected]/dist/toastui-vue-grid.min.js"></script> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tui-grid.min.css"></script> |
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
Windows Registry Editor Version 5.00 | |
; mitigates https://anothercybersecurityblog.wordpress.com/2020/01/22/a-microsoft-windows-patch-status-information-disclosure-with-a-lesson-for-software-and-system-designers-if-they-want-to-actually-build-secure-products/ | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\AutoUpdate] | |
"UpdatesAvailableForInstallLogon"=dword:00000000 |
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
// ==UserScript== | |
// @name Twitter sensitive media blocker | |
// @version 1 | |
// @grant none | |
// @match https://twitter.com/* | |
// @run-at document-idle | |
// ==/UserScript== | |
function blockTwitterSensitiveMedia() { | |
var blockedMedia = document.getElementsByClassName("Tombstone-action"); |
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
import "strings" | |
// return index of second to last occurrence of char in string | |
func SecondToLast(str string, char string) int { | |
return strings.LastIndex(str[0:strings.LastIndex(str, char)], char) | |
} |
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
# https://github.com/readthedocs/readthedocs.org/issues/2940 | |
[parsers] | |
smart_quotes: false |
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
# install / setup docker from mainline stable repo | |
# https://www.hostinger.com/tutorials/how-to-install-docker-compose-centos-7/ | |
DOCKER_COMPOSE_VER=1.25.0 | |
sudo yum install -y yum-utils device-mapper-persistent-data lvm2 | |
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo | |
sudo yum install docker-ce | |
sudo usermod -a -G docker $USER | |
sudo systemctl start docker |
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
# reduces yara.Match object to dict | |
# work around yara.Match pickling issue with multiprocessing | |
# https://github.com/VirusTotal/yara-python/issues/84#issuecomment-562228512 | |
# yara.Match also does not work with __dict__ or json, or else I would use that | |
def yaraMatchesToDict(yara_matches): | |
match_list = [] | |
for item in yara_matches: | |
# reproduce structure in https://yara.readthedocs.io/en/latest/yarapython.html#yara.Match | |
# using accessible python dict data structure |
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
" https://vi.stackexchange.com/questions/7975/how-can-i-change-the-indent-size | |
set ts=4 sw=4 |
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
// https://www.us-cert.gov/sites/default/files/file_attach/ICS-ALERT-17-206-01.yara | |
// YARA 3.6.0 or higher is required to use this signature | |
import "pe" | |
private global rule coi_is_pe { | |
condition: | |
uint16(0) == 0x5a4d and uint32(uint32(0x3c)) == 0x00004550 | |
} |
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
# https://bugs.launchpad.net/ubuntu/+source/sendmail/+bug/1822866/comments/9 | |
sudo rm -v /var/run/sendmail/mta/sendmail.pid |