Skip to content

Instantly share code, notes, and snippets.

View bitlather's full-sized avatar

Jun Reiderdai bitlather

View GitHub Profile
SELECT pg_size_pretty( pg_database_size('db/database_name') );
sudo service postgresql stop
sync
sudo sysctl -w vm.drop_caches=3 # echo 3 > /proc/sys/vm/drop_caches
sudo service postgresql start
it 'should do a thing' do
ActiveRecord::Base.logger = Logger.new(STDOUT) if defined?(ActiveRecord::Base)
end
@bitlather
bitlather / PixelBoy.cs
Created July 18, 2020 16:12
Pixellated unity renderer by wtfmig
// Downloaded from https://pastebin.com/5mkBeZ5S
//PIXELBOY BY @WTFMIG
using UnityEngine;
using System.Collections;
[ExecuteInEditMode]
[AddComponentMenu("Image Effects/PixelBoy")]
public class PixelBoy : MonoBehaviour
{