Skip to content

Instantly share code, notes, and snippets.

Erkaman / taa.frag
Last active Nov 29, 2021
rudimentary temporal anti-aliasing solution, that is good as a starting point for more advanced TAA techniques.
View taa.frag
The MIT License (MIT)
Copyright (c) 2018 Eric Arnebäck
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
ivan-pinatti / jenkins-set-system-message.groovy
Created May 21, 2018
Jenkins - Set Jenkins system message via groovy script - #jenkins #groovy #system #message
View jenkins-set-system-message.groovy
// imports
import jenkins.model.Jenkins
// parameters
def systemMessage = "Insert your Jenkins system message here."
// get Jenkins instance
Jenkins jenkins = Jenkins.getInstance()
ggarcia24 / pipeline.gdsl
Last active Oct 22, 2021
GDSL supporting pipeline declarative
View pipeline.gdsl
//The global script scope
def ctx = context(scope: scriptScope())
//What things can be on the script scope
contributor(ctx) {
method(name: 'pipeline', type: 'Object', params: [body: Closure])
property(name: 'params', type: 'org.jenkinsci.plugins.workflow.cps.ParamsVariable')
property(name: 'env', type: 'org.jenkinsci.plugins.workflow.cps.EnvActionImpl.Binder')
property(name: 'currentBuild', type: 'org.jenkinsci.plugins.workflow.cps.RunWrapperBinder')
property(name: 'scm', type: 'org.jenkinsci.plugins.workflow.multibranch.SCMVar')
gschizas / AddApplicationToControlledFolder.ps1
Last active Nov 30, 2021
Allow all blocked apps to Windows Defender's Controlled folder access (interactively)
View AddApplicationToControlledFolder.ps1
$appEvents = Get-WinEvent -LogName "Microsoft-Windows-Windows Defender/Operational" |
Where-Object {$_.Id -eq "1123"}
$allBlockedProcesses = (
$appEvents |
ForEach-Object {
(([xml]$_.ToXml()).Event.EventData.Data |
Where-Object {
$_.Name -eq "Process Name"
} |

Generate ssl certificates with Subject Alt Names on OSX

Open ssl.conf in a text editor.

Edit the domain(s) listed under the [alt_names] section so that they match the local domain name you want to use for your project, e.g.

DNS.1   =

Additional FQDNs can be added if required:

View Get Jenkins GDSL working with IntelliJ IDEA
1. Setup a project
2. Add groovy SDK support:
3. Download http://(yourjenkinsurl)/job/(yourpipelinejob)/pipeline-syntax/gdsl
- this will give you the .gdsl file - download this to the src folder of your project.
4. Finally follow this step - right click on the src folder -> Mark directory as -> Sources Root
haskaalo /
Last active Mar 18, 2021
Docs about Blizztrack Bot

Blizztrack Discord Bot

Add Blizztrack Bot to your server!

With this Link

Set up

  1. We recommend you to create a unique channel for the bot and make him the only one who can send message in that channel.
  2. IMPORTANT: Let him read message ONLY on this channel to avoid people to troll
radiatoryang / RaycastTargetTrigger.cs
Last active May 29, 2019
a script I give to my Unity VR classes to detect when the player is looking at something... put it on anything with a collider, and it'll know if it's being looked at or not
View RaycastTargetTrigger.cs
using UnityEngine;
using System.Collections;
using UnityEngine.VR; // we need this line here for InputTracking and VRSettings functions
// USAGE: put this on a thing you want the player to look at!
// this code will enable that thing to know if it is being looked at!
[RequireComponent (typeof(Collider)) ] // this thing needs a collider if we should look at it
public class RaycastTargetTrigger : MonoBehaviour {
View tumbler-gist-insert.html
<script src=""></script>
<script type="text/javascript">
$(function() {
function(index, element) {
if ( $(element).attr('href').indexOf('') > 0 ) {
var divElement = $('<div></div>');
writeCapture.html(divElement, '<script src="'+$(element).attr('href')+'.js"></'+'script>');