Skip to content

Instantly share code, notes, and snippets.

View EvertonSilva's full-sized avatar

Everton Silva EvertonSilva

  • Muralis Tecnologia
  • Mogi das Cruzes - SP
  • 06:38 (UTC -03:00)
  • X @_evertonsilva
View GitHub Profile
@sumardi
sumardi / nginx.default.conf
Last active November 2, 2024 14:29
Install PHP-FPM, Nginx & MySQL on EC2 with Amazon Linux AMI
# Install linux update, followed by GCC and Make
sudo yum -y update
sudo yum install -y gcc make
# Install Nginx and PHP-FPM
sudo yum install -y nginx php-fpm
# Install PHP extensions
sudo yum install -y php-devel php-mysql php-pdo \
php-pear php-mbstring php-cli php-odbc \
@wpscholar
wpscholar / functions.php
Last active October 20, 2024 14:01
Enqueueing IE conditional stylesheets in WordPress the right way
<?php
add_action( 'wp_enqueue_scripts', 'enqueue_my_styles' );
/**
* Example callback function that demonstrates how to properly enqueue conditional stylesheets in WordPress for IE.
* IE10 and up does not support conditional comments in standards mode.
*
* @uses wp_style_add_data() WordPress function to add the conditional data.
* @link https://developer.wordpress.org/reference/functions/wp_style_add_data/
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active April 16, 2025 19:00
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@jaysonrowe
jaysonrowe / FizzBuzz.js
Created January 11, 2012 01:39
FizzBuzz JavaScript solution
for (var i=1; i <= 20; i++)
{
if (i % 15 == 0)
console.log("FizzBuzz");
else if (i % 3 == 0)
console.log("Fizz");
else if (i % 5 == 0)
console.log("Buzz");
else
console.log(i);
@zhhailon
zhhailon / rails_on_arch.sh
Created October 19, 2011 05:21
A quick and dirty Rails development environment using Arch Linux
### Get Repos Ready ###
# initial update & upgrade
sudo pacman -Syu
# install new apps
sudo pacman -Sy --noconfirm gcc patch curl zlib readline libxml2 libxslt git autoconf diffutils make libtool bison subversion vim-rails qgit
# configure git
git config --global user.name your-username
@wavesummit
wavesummit / contact.haml
Created December 5, 2010 16:45
An example sinatra app that uses pony and gmail to send an e-mail
.grid_12
%h1 Contact
%h2 Want to get in contact, have a question or just fancy a chat?
%p Fill out the form below
%form{:action => "/contact", :method => "post"}
%div{:style => "margin:0;padding:0;display:inline"}
%label{:for => "contact_subject"} Subject:
%br
%input#contact_subject{:name => "subject", :size => "30", :type => "text"}/