Skip to content

Instantly share code, notes, and snippets.

@yuriwally
yuriwally / LightFlickerEffect.cs
Created June 15, 2021 03:55
Light flicker effect based on valve reused The code
using System.Collections;
using UnityEngine;
using System.Collections.Generic;
// Written by jellyroger 2021
// License: CC0 Public Domain http://creativecommons.org/publicdomain/zero/1.0/
// See: https://www.reddit.com/r/gaming/comments/nyxzme/valve_reuses_the_source_code_for_flickering/h1n8c8h/
// See: https://80.lv/articles/valve-reused-the-code-for-flickering-lights-in-alyx-22-years-later/
/// <summary>
@yuriwally
yuriwally / gist.groovy
Created August 29, 2019 03:03
Print all methods from object - groovy script
println object.class.methods.collect { it.name }
@yuriwally
yuriwally / ImportKey.java
Created August 29, 2019 02:49
Imports a key and a certificate into a keystore - made by Joachim Karrer,and Jens Carlberg
import java.security.*;
import java.io.IOException;
import java.io.InputStream;
import java.io.FileInputStream;
import java.io.DataInputStream;
import java.io.ByteArrayInputStream;
import java.io.FileOutputStream;
import java.security.spec.*;
import java.security.cert.Certificate;
import java.security.cert.CertificateFactory;
@yuriwally
yuriwally / gist.cli
Last active August 29, 2019 03:04
Remove identification header from Jboss EAP 7 ( Wildfly 10 ) - CLI
/profile=default/subsystem=undertow/server=default-server/host=default-host/filter-ref=server-header:remove
/profile=default/subsystem=undertow/server=default-server/host=default-host/filter-ref=x-powered-by-header:remove
/profile=default/subsystem=undertow/configuration=filter/response-header=server-header:remove
/profile=default/subsystem=undertow/configuration=filter/response-header=x-powered-by-header:remove
@yuriwally
yuriwally / hosts
Last active August 29, 2019 04:16 — forked from consti/hosts
/etc/hosts to block shock sites etc.
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.
#<localhost>
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
255.255.255.255 broadcasthost
::1 localhost
@yuriwally
yuriwally / gist.groovy
Last active August 29, 2019 03:04
get git revision ( SHA ) using Jenkins API ( groovy version )
def jobName = ''
def buildNumber =''
Jenkins.instance
.getItemByFullName(jobName)
.getBuildByNumber(buildNumber)
.getAction(jenkins.scm.api.SCMRevisionAction.class)
.getRevision()