Skip to content

Instantly share code, notes, and snippets.

View Sacristan's full-sized avatar

Ģirts Ķesteris Sacristan

View GitHub Profile
@Sacristan
Sacristan / UnlitTransparentColorGradient.shader
Created October 17, 2016 12:37
Screen space coord Unlit/Transparent Color Gradient shader
Shader "Unlit/Transparent Color Gradient" {
Properties{
_MainTex("Base (RGB) Trans (A)", 2D) = "white" { }
_Color("Color1", Color) = (1.000000,1.000000,1.000000,1.000000)
_Color2("Color2", Color) = (1.000000,1.000000,1.000000,1.000000)
}
SubShader{
LOD 100
Tags{ "QUEUE" = "Transparent" "IGNOREPROJECTOR" = "true" "RenderType" = "Transparent" }
@Sacristan
Sacristan / ui_tricks.md
Last active July 10, 2018 17:32
Unity Tricks
sudo apt-get install build-essential gconf-service lib32gcc1 lib32stdc++6 libasound2 libc6 libc6-i386 libcairo2 libcap2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libfreetype6 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libgl1 libglib2.0-0 libglu1 libgtk2.0-0 libnspr4 libnss3 libpango1.0-0 libstdc++6 libx11-6 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxtst6 zlib1g
http://forum.unity3d.com/threads/unity-on-linux-release-notes-and-known-issues.350256/
@Sacristan
Sacristan / mysql.database.yml
Created July 4, 2016 18:52 — forked from jwo/mysql.database.yml
Sample config/database.yml from Rails. Postgres, MySQL, and SQLite
#
# Install the MYSQL driver
# gem install mysql2
#
# Ensure the MySQL gem is defined in your Gemfile
# gem 'mysql2'
#
# And be sure to use new-style password hashing:
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
development:
Artist.where(id: Album.select(:artist_id))
@Sacristan
Sacristan / gist:e13e8f4e80b918be2747
Created January 11, 2016 16:44
Prune local branches that have been already merged into master
git branch --merged master | grep -v 'master$' | xargs git branch -d
@Sacristan
Sacristan / fdl
Last active July 22, 2016 09:48
FDL cert gen
Staging:
1. $ openssl req -sha256 -newkey rsa:2048 -keyout <MerchantID>_key.pem -out <MerchantID>_req.pem -subj "/C=LV/O=www.stockholmhealth.com/OU=Everyday Content International/CN=<MerchantID>" -outform PEM
2. Ielogojamies IBIS un self-sign
3. Iemetam no šiem saņemtos failus (viņi atsūta sertifikātu pirms atbildes, ka atsūtīs sertifikātu) tai pašā mapē, kur key un:
4. $ openssl pkcs12 -export -in <MerchantID>.pem -out <MerchantID>.p12 -certfile ECOMM-test.pem -inkey <MerchantID>_key.pem
5. $ openssl pkcs12 -in <MerchantID>.p12 -out <MerchantID>_keystore.pem
Production:
@Sacristan
Sacristan / gist:cf2c3b98c1403115e0b1
Last active July 22, 2016 09:48
Generate generic SSL certificate
openssl req -new -newkey rsa:2048 -nodes -keyout www.domain.com.key -out www.domain.com.com.csr
curl get.pow.cx/uninstall.sh | sh
curl get.pow.cx | sh
scutil --dns
sudo touch /etc/resolver/dev
sudo pfctl -f /etc/pf.conf
sudo pfctl -e