This file contains 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 Dlive | |
// @description Open sticker on dlive with middle mouse button to a new tab | |
// @version 1 | |
// @grant none | |
// @include /^https:\/\/dlive.tv\/.+$/ | |
// @run-at document-end | |
// ==/UserScript== | |
'use strict'; |
This file contains 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
{"open-in-container":true,"open-to-new-tab":true,"rows":{"Google WebCache":{"enabled":true,"url":"https://webcache.googleusercontent.com/search?q=cache:%u","index":0,"enableURL":""},"Wayback Machine (search)":{"enabled":true,"url":"https://web.archive.org/web/*/%u","index":1,"enableURL":""},"Wayback Machine (save)":{"enabled":true,"url":"https://web.archive.org/save/%u","index":2,"enableURL":""},"archive.is (search)":{"enabled":true,"url":"https://archive.today/%u","index":3,"enableURL":""},"archive.is (save)":{"enabled":true,"url":"https://archive.today/?run=1&url=%u","index":4,"enableURL":""},"BitChute":{"enabled":false,"url":"https://www.bitchute.com/video/%q[v]/","index":5,"enableURL":"^https://www.youtube.com/watch\\?v="},"invidio.us":{"enabled":true,"url":"https://yewtu.be/watch?v=%q[v]","index":6,"enableURL":"^https://www.youtube.com/watch\\?v="},"HookTube":{"enabled":false,"url":"https://hooktube.com/watch?%q","index":7,"enableURL":""},"YouPak":{"enabled":false,"url":"https://www.youpak.com/search?q=% |
This file contains 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
#!/usr/bin/env bash | |
set -e | |
#set -x | |
# Default interface. | |
eth=eth0 | |
vpn_device=tun0 | |
vpn_port=1194 | |
vpn_proto=udp |
This file contains 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 Remove Google Redirect And Tracking From Search Results | |
// @description Userscript for removing redirection and tracking(?) data from Google search results. | |
// @version 1 | |
// @author fluks | |
// @include https://*.google.*/search?* | |
// ==/UserScript== | |
document.querySelectorAll('h3.r > a') | |
.forEach(e => { |
This file contains 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
//- This is .pug file, which generates html. It used to be name jade. | |
//- Try instant online conversion at http://www.html2jade.org/ | |
doctype html | |
html | |
head | |
title gdbgui - gdb in a browser | |
base(target='_blank') |
This file contains 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
void* new_ptr = realloc(ptr, size); | |
- if (!new_ptr) { | |
- // If size is zero, free() was called, instead of realloc(). Don't use after free(). | |
- if (size != 0) { | |
- fprintf(stderr, "\nxrealloc(%p, %zu): %s\n", ptr, size, strerror(errno)); | |
- free(ptr); | |
- } | |
+ // If size is zero, realloc() is equivalent to free(). | |
+ if (!new_ptr && size != 0) { | |
+ fprintf(stderr, "\nxrealloc(%p, %zu): %s\n", ptr, size, strerror(errno)); |