View ss13.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
BLUE='\033[0;34m' | |
NC='\033[0m' | |
mkdir -p log | |
echo -e "${GREEN}Checking for wine...${NC}" |
View bash colors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if test -t 1; then | |
ncolors=$(tput colors) | |
if test -n "$ncolors" && test $ncolors -ge 8; then | |
black=$(eval tput setaf 0); | |
red=$(eval tput setaf 1); | |
green=$(eval tput setaf 2); | |
yellow=$(eval tput setaf 3); | |
blue=$(eval tput setaf 4); | |
magenta=$(eval tput setaf 5); | |
cyan=$(eval tput setaf 6); |
View Army List
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta name="viewport" content="width=670"> | |
<style> | |
body.battlescribe { | |
margin: 0px; | |
padding: 0px; | |
border-width: 0px; | |
} |
View pacaur_install.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# If you are new to arch, I encourage you to at least read and understand what | |
# this script does befor blindley running it. | |
# That's why I didn't make a one-liner out of it so you have an easier time | |
# reading and understanding it :) | |
# | |
# This scripts purpose is purly to save you a few seconds on your new installation. | |
# | |
# Enjoy your time on an awesome system. Arch FTW! |
View iOS app transport security - info.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<key>NSAppTransportSecurity</key> | |
<dict> | |
<key>NSExceptionDomains</key> | |
<dict> | |
<key>yourserver.com</key> | |
<dict> | |
<!--Include to allow subdomains--> | |
<key>NSIncludesSubdomains</key> | |
<true/> | |
<!--Include to allow HTTP requests--> |
View build_textual_mac_os_x.rc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env rc | |
dir=$home/Desktop | |
cd /tmp | |
printf 'Cloning Textual... ' | |
git clone -q 'https://github.com/Codeux-Software/Textual.git' | |
echo Done! | |
printf 'Cloning submodules... ' | |
cd Textual |
View gist:015429675e7e616e6828
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# UnityYAMLMerge fallback file | |
# | |
# Modify the next two lines if scene or prefab files should fallback | |
# on other that the default fallbacks listed below. | |
# | |
# %l is replaced with the path of you local version | |
# %r is replaced with the path of the incoming remote version | |
# %b is replaced with the common base version |
View ClosureTest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections.Generic; | |
public class ClosureTest : MonoBehaviour { | |
public delegate void TestAction(); | |
void Start () { | |
Dictionary<string, List<string>> dict = new Dictionary<string, List<string>>() { | |
{ "Foo" , new List<string>() { "Goo", "Hoo", "Ioo" } }, |
View gksudo equivalent for Mac OS X
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A gksudo equivalent for Mac OS X | |
/usr/bin/osascript -e 'do shell script "make install" with administrator privileges' |
View gist:5388522
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while sleep 1;do tput sc;tput cup 0 $(($(tput cols)-29));date;tput rc;done & |
NewerOlder