Skip to content

Instantly share code, notes, and snippets.

Avatar
💻
rails new unicorn

Nik Saiful Anuar sanikkenway

💻
rails new unicorn
View GitHub Profile
View job.rb
if dev.is_bored? || job.sucks?
Job::search(:flexible_hours true, :company_culture 100)
end
View flickr_photoid_to_shortcode.php
<?php
$photoid = <photoid>;
$alphabet = '123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ';
// function to encode from photoid to shortcode
function base_encode($photoid, $alphabet)
{
$base_count = strlen($alphabet);
$encoded = '';
@sanikkenway
sanikkenway / default
Created Apr 27, 2021
Nginx Server Block With PHP-FPM
View default
server {
listen 80;
root /var/www/html;
index index.php;
server_name example.com;
location / {
try_files $uri $uri/ =404;
}