Skip to content

Instantly share code, notes, and snippets.

@dimasch
dimasch / redis-clear
Last active May 7, 2024 08:29
Clear a redis cache in Docker
docker exec -it container-name redis-cli FLUSHALL
anonymous
anonymous / README.md
Created September 25, 2015 22:08
Quick Gist: The self replicating chrome extension
  • Download this gist as a zip and extract
  • Open chrome://extensions
  • Enable Developer mode
  • Click Load unpacked extension... and select the extracted folder
  • 💵 Profit 💵

Created by the SMU CS Society

@AngryAnt
AngryAnt / MoveComponentContext.cs
Last active July 5, 2017 05:44
Adds "Move to Top" and "Move to Bottom" items to the inspector context menu of components.
using UnityEngine;
using UnityEditor;
public class MoveComponentContext
{
enum Destination
{
Top,
Bottom
{"lastUpload":"2020-04-12T07:20:28.343Z","extensionVersion":"v3.4.3"}
@stevekinney
stevekinney / ember-testing.md
Created February 24, 2015 22:04
Ember Testing Notes

For starters, just go the /test directory.

By default you'll see your JSHint validations in the test suite.

Any file that ends with -test.js will get executed.

Generators also create some tests on your behalf.

So, we actually want to build up and tear down the entire application between tests.

@robertmarsal
robertmarsal / gist:9feaa9150926efa4175a
Created December 17, 2014 21:09
Install f.lux on Ubuntu 14.10
sudo apt-get install python-glade2 python-appindicator
git clone https://github.com/Kilian/f.lux-indicator-applet.git
cd f.lux-indicator-applet
chmod +x setup.py
sudo ./setup.py install
fluxgui
@DanPuzey
DanPuzey / Log.cs
Last active October 24, 2018 10:28
Unity logging wrapper, for better performance and usage.
using UnityEngine;
namespace Assets.Phunk.Core
{
public static class Log
{
#region Error
public static void ErrorFormat(UnityEngine.Object context, string template, params object[] args)
{
var message = string.Format(template, args);
@LizardLeliel
LizardLeliel / Quine.cpp
Created October 14, 2014 17:48
A program that outputs its source code. The logic in this file is my own design; I didn't strictly follow code conventions for this exercise, hence the function named function.
#include <iostream>
#include <string>
using namespace std;
void function(string var, int flag);
int main(){
function(R"!(
#include <iostream>
@LeCoupa
LeCoupa / bash-cheatsheet.sh
Last active May 9, 2024 03:03
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@staltz
staltz / introrx.md
Last active May 17, 2024 07:59
The introduction to Reactive Programming you've been missing