Skip to content

Instantly share code, notes, and snippets.

View g00glen00b's full-sized avatar
🦄
Powered by unicorn magic

Dimitri g00glen00b

🦄
Powered by unicorn magic
View GitHub Profile
@g00glen00b
g00glen00b / netlify-build-hook.php
Created January 21, 2020 13:13
WordPress Netlify build hook plugin
<?php
/**
* Plugin Name: Netlify build hook
* Plugin URI: https://dimitr.im
* Description: Call webhook when WordPress post is published
* Version: 1.0
* Author: g00glen00b
* Author URI: https://dimitr.im
*/
add_action('publish_future_post', 'nb_webhook_future_post', 10);
@g00glen00b
g00glen00b / keybase.md
Created February 11, 2019 12:47
keybase.md

Keybase proof

I hereby claim:

  • I am g00glen00b on github.
  • I am g00glen00b (https://keybase.io/g00glen00b) on keybase.
  • I have a public key ASAu_UHJ0xQcg2dDXidxiHegHVBZIiEP0wMp_8hbftwxOAo

To claim this, I am signing this object:

@g00glen00b
g00glen00b / PersonController.java
Created November 10, 2017 19:29
PersonController.java
@GetMapping("/person")
Flux<Person> list() {
return this.repository.findAll();
}
@g00glen00b
g00glen00b / Routing.java
Last active November 10, 2017 19:13
Spring routing
RouterFunction<ServerResponse> helloWorldRoute =
RouterFunctions.route(RequestPredicates.get("/hello-world"),
request -> Response.ok().body(fromObject("Hello World")));
}
@g00glen00b
g00glen00b / style.css
Created February 7, 2017 12:57
Stack Overflow - New navigation bar dark theme
@-moz-document domain("stackoverflow.com") {
body.newheader {
padding-top: 0;
}
.so-header {
background-color: #333;
position: relative;
}
@g00glen00b
g00glen00b / Node-RED Slack bot.json
Last active April 18, 2016 14:37
Node-RED Slack bot
[
{
"id": "1525b4f4.eada4b",
"type": "function",
"name": "Chuck Norris Slack message",
"func": "var text = {\n text: msg.payload,\n username: \"Chuck Norris\",\n icon_url: \"http:\/\/static-files1.modthesims2.com\/customavatars\/avatar7265094_1.gif\"\n};\nreturn {\n payload: JSON.stringify(text)\n};",
"outputs": 1,
"valid": true,
"x": 1110.6667137146,
"y": 589.99998188019,