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
sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 3000 |
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/bash | |
##############ADD NEW USER############## | |
HOME_BASE="/home/" | |
read -p "Enter username : " username | |
useradd -m -d ${HOME_BASE}$username -s /bin/false $username | |
chown root:root ${HOME_BASE}$username |
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/bash | |
##############ADD NEW HOST ############## | |
HOME_BASE="/home/" | |
read -p "Enter username : " username | |
read -p "New host name : " hostname | |
mkdir ${HOME_BASE}$username/$hostname | |
mkdir ${HOME_BASE}$username/$hostname/public_html | |
mkdir ${HOME_BASE}$username/$hostname/log |
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 System.Collections.Generic; | |
using UnityEngine; | |
using System.Collections; | |
[RequireComponent(typeof(SelectLevelDataSource))] | |
public class SelectLevelSwipe : MonoBehaviour, IGuiMove, IGuiTouch | |
{ | |
const float SWIPE_MAX_DURATION = 0.3f; | |
//************************************************************************** |
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 System.Collections.Generic; | |
using UnityEngine; | |
using System.Collections; | |
public class GuiTouchListener : RuntimeInteractiveObject | |
{ | |
const float SWIPE_MIN_LENGTH = 25.0f; | |
const float TOUCH_BEGIN_DELAY = 0.03f; | |
// Events methods names |
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
// | |
// OrdersTableView.m | |
// apptools | |
// | |
// Created by Alex on 5/29/13. | |
// Copyright (c) 2013 YourWebStyle. All rights reserved. | |
// | |
#import "OrdersViewController.h" | |
#import "OrderTableDataSource.h" |
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; | |
public class ParticaleAnimator : MonoBehaviour { | |
private void Awake() | |
{ | |
particle = GetComponent<ParticleSystem>(); | |
} |
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 System; | |
using UnityEngine; | |
using System.Collections; | |
public class VictoryDialog : GuiDialog | |
{ | |
const string ANIMATOR_ACTION = "AnimatorAction"; | |
//************************************************************************** |
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 System; | |
using UnityEngine; | |
using System.Collections; | |
public class Device { | |
//************************************************************************** | |
// | |
// Const | |
// |
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
<?php | |
namespace ODM\Proxies\__CG__\Documents\Shop; | |
use Doctrine\ODM\MongoDB\Persisters\DocumentPersister; | |
/** | |
* THIS CLASS WAS GENERATED BY THE DOCTRINE ODM. DO NOT EDIT THIS FILE. | |
*/ | |
class Catalog extends \Documents\Shop\Catalog implements \Doctrine\ODM\MongoDB\Proxy\Proxy |