Skip to content

Instantly share code, notes, and snippets.

View Tetz's full-sized avatar
😈
Emacs with Evil

Tetsuro Takemoto Tetz

😈
Emacs with Evil
  • Ineeza
  • Amsterdam, Netherlands
View GitHub Profile
# Remove current php & apache
sudo service httpd stop
sudo yum remove httpd* php*
# Remove any third party repos that aren't relevant
sudo yum repolist
sudo yum remove remi-safe
# Install Standard Apache for Amazon AMI
sudo yum install httpd #specify http22 if you get a different version
@Tetz
Tetz / bash_prompt.sh
Last active March 11, 2017 09:25
Add this to your .bashrc
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# get current status of git repo
function parse_git_branch {
status=`git status 2>&1 | tee`
@Tetz
Tetz / sass-structure.md
Last active July 26, 2016 09:58
Architecture for a Sass Project
sass/ 
| 
|– base/ 
|   |– _reset.scss       # Reset/normalize 
|   |– _typography.scss  # Typography rules 
|   ...                  # Etc… 
| 
|– components/ 
|   |– _buttons.scss     # Buttons 
@Tetz
Tetz / UUIDGenerator.scala
Created December 21, 2015 12:31
modern-web/app/services/UUIDGenerator.scala
package services
import javax.inject.Singleton
import java.util.UUID
/**
* A type declaring the interface that will be injectable.
*/
abstract class UUIDGenerator() {
def generate: UUID
@Tetz
Tetz / .bashrc
Created July 13, 2015 03:25
Linux Prompt Color
PS1='\[\e[1;32m\][\u@ServerName \W]\$\[\e[0m\] '
@Tetz
Tetz / HttpTest.cpp
Last active March 24, 2017 08:47
HTTP Client for Cocos2dx
// As a onClick event
void HelloWorld::onClick()
{
// Setting HTTP Request Header
std::vector<std::string> headers;
headers.push_back("Content-Type: application/json; charset=utf-8");
// Creating a URL
cocos2d::extension::CCHttpRequest * request = new cocos2d::extension::CCHttpRequest();
request->setUrl("http://example.com");