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 express = require('express') | |
const app = express() | |
const port = 3000 | |
app.get('/', async (req, res) => { | |
const responseUrl = await fetch("https://www.virustotal.com/api/v3/urls", { | |
method: "POST", | |
headers: { | |
'Content-Type': 'application/x-www-form-urlencoded', |
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
<?php | |
/* | |
* Plugin Name: Webhook to Discord | |
* Description: WordPress posts to Discord. | |
* Version: 1.0 | |
* Author: Kip @ codump.github.io | |
*/ | |
function post_to_discord($new_status, $old_status, $post) { | |
if(get_option('discord_webhook_url') == null) |
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
let pushVersion = "1.0.1d" | |
let baseUrl = window.location.href | |
Array.from(document.getElementsByTagName("link")).forEach((childLink) => { | |
const newHref = childLink.href.replaceAll('?v=pushVersion', `?v=${pushVersion}`) | |
childLink.setAttribute('href', newHref) | |
}) | |
const addScript = document.createElement("script") | |
addScript.setAttribute("src", `${baseUrl}/script.js?v=${pushVersion}`) | |
addScript.setAttribute("type", "text/javascript") |
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
<?php | |
/* | |
Plugin Name: Import as draft | |
Description: CSV imported products are set to draft instead of published | |
Version: 1.0 | |
Author: Kip @ codump.github.io | |
*/ | |
add_filter( 'woocommerce_product_import_pre_insert_product_object', 'process_import', 10, 2 ); | |
function process_import( $product, $data ) { |
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
<head> | |
<title>Voorbeeld titel.</title> | |
<meta charset="UTF-8"><!-- charset is de karakter instellingen van de pagina, zie W3 voor meer info. --> | |
<meta name="description" content="Omschrijving van je pagina, deze wordt door bijvoorbeeld facebook opgehaald en getoond." /> | |
<meta name="keywords" content="sleutelwoorden, gescheiden, door, een, komma" /> | |
<meta name="author" content="jouw naam" /> | |
<link rel="stylesheet" href="style.css" /> | |
<script> | |
alert('Welkom'); | |
</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
body { | |
background:#000; | |
color:#FFF; | |
} | |
#waarde1 { | |
color:red; | |
} | |
.waarde2 { | |
color:blue; | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Voorbeeld titel.</title> | |
<meta charset="UTF-8"><!-- charset is de karakter instellingen van de pagina, zie W3 voor meer info. --> | |
<meta name="description" content="Omschrijving van je pagina, deze wordt door bijvoorbeeld facebook opgehaald en getoond." /> | |
<meta name="keywords" content="sleutelwoorden, gescheiden, door, een, komma" /> | |
<meta name="author" content="jouw naam" /> | |
<style> | |
body { |