Skip to content

Instantly share code, notes, and snippets.

View maulayyacyber's full-sized avatar
👨‍💻
Working on @SantriKoding-com

Fika Ridaul Maulayya maulayyacyber

👨‍💻
Working on @SantriKoding-com
View GitHub Profile
chcon -R -t httpd_sys_rw_content_t storage
server {
#listen 80;
#listen [::]:80;
root /var/www/html/surat.sidedi.id/public;
index index.html index.htm index.php;
server_name surat.sidedi.id;
server {
listen 80;
listen [::]:80;
root /var/www/html;
index index.html index.htm index.php;
server_name _;
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# https://www.nginx.com/resources/wiki/start/
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
# https://wiki.debian.org/Nginx/DirectoryStructure
#
# In most cases, administrators will remove this file from sites-enabled/ and
# leave it as reference inside of sites-available where it will continue to be
# updated by the nginx packaging team.
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Disqus
{
/*
* Local CI instance
*/
private $CI;
/*
* Disqus shortname config item
<?php if ($this->uri->segment(1) == "admin") { ?>
<?php }else{ ?>
<div class="container">
<div class="breakingNews" id="bn5" style="margin-bottom:10px;box-shadow: rgba(159, 167, 194, 0.6) 0px 1px 1px 0px;">
<div class="bn-title" style="background:<?php echo theme_color_body() ?>"><h2><i class="fa fa-newspaper-o"></i>
BREAKING NEWS</h2><span style="border-left-color:<?php echo theme_color_body() ?>"></span></div>
<ul>
<?php
if (news_ticker() != NULL) :
def not_found
raise ActionController::RoutingError.new('Not Found')
rescue
render_404
end
def render_404
render file: "#{Rails.root}/app/views/errors/error404", status: :not_found
end
<% @users.each_with_index do |data, index| %>
<tr>
<td style="text-align: center;">
<% if params[:page].to_i >=1 %>
<%= (params[:page].to_i - 1) * 10 + (index + 1) %>
<% else %>
<%= index + 1 %>
<% end %>
</td>
***
<a href="https://github.com/rubypedia/sample-rails-paging-with-kaminari" style="width: 100%; height: 90%;display: block; display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;text-align: center;line-height: 31px;box-shadow: 0px 1px 1px rgba(255,255,255,0.35) inset, 0px 1px 1px rgba(0,0,0,0.3);align-items: center;justify-content: center; background-color: #ffffff;border: 1px solid #0053f9; border-radius: 30px;-webkit-box-sizing: border-box; -moz-box-sizing: border-box;box-sizing: border-box;white-space: nowrap; overflow: hidden;text-overflow: ellipsis;text-decoration: none;color: #0053f9;font-weight: normal; font-family: arial,sans-serif;font-size: 16px;">Donwload Source Code Aplikasi Rails Dengan Kaminari</a>
<style>
#g207{position:fixed!important;position:absolute;top:0;top:expression
((t=document.documentElement.scrollTop?document.documentElement.scrollTop:document
.body.scrollTop)+"px");
left:0;width:100%;height:100%;background-color:#000;opacity:0.9;filter:alpha(opacity=90);display:block}#g207 p{opacity:1;filter:none;font:bold 16px Verdana,Arial,sans-serif;text-align:center;margin:20% 0}#g207 p a,#g207 p i{font-size:12px}#g207 ~ *{display:none}</style>
<noscript><i id=g207><p>Please enable JavaScript!<br />Bitte aktiviere JavaScript!<br />S'il vous pla&icirc;t activer JavaScript!<br />Por favor,activa el JavaScript!<br /><a href="http://antiblock.org/">antiblock.org</a></p></i></noscript><script>(function(w,u){var d=w.document,z=typeof u;function g207(){function c(c,i){var e=d.createElement('i'),b=d.body,s=b.style,l=b.childNodes.length;if(typeof i!=z){e.setAttribute('id',i);s.margin=s.padding=0;s.height='100%';l=Math.floor(Math.random()*l)+1}e.innerHTML=c;b.insertBefore(e,b.childNodes[l-1])}function g(i,t){re