Skip to content

Instantly share code, notes, and snippets.

View iquad's full-sized avatar

Mert Özgür Akdeniz iquad

View GitHub Profile
package main
import (
"crypto/aes"
"crypto/cipher"
"fmt"
"crypto/rand"
"io"
"encoding/base64"
"encoding/hex"
@iquad
iquad / clean-up-boot-partition-ubuntu.md
Created January 9, 2020 15:27 — forked from ipbastola/clean-up-boot-partition-ubuntu.md
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
<?php
namespace App\Http\Controllers\Admin;
use Illuminate\Http\Request;
use App\Model\user\User;
use Illuminate\Support\Facades\DB;
use App\Http\Controllers\Controller;
class UserController extends Controller
// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import (
"html/template"
"io/ioutil"
"net/http"
<?php
$data = Foo::with('bar')
->with('foo')
->paginate(10);
echo $data;
/* returns:
«
1
2
@iquad
iquad / login.php
Last active January 21, 2016 12:09
tolablabla
<?php
if(isset($_GET['err']) AND $_GET['err'] == 1) { // eğer adres satırında err parametresi varsa ve 1 ise ekrana hata bastır.
echo "kullanıcı adı yada şifre yanlış.";
}
else { // burada ne yapacağını başlatıp php betiğini bitiriyoruz ki düz HTML yazabilelim.
?>
<form method="POST" action="loginCheck.php">
<label for="username">Kullanıcı Adı </label>
<input type="text" name="username" id="username">
<label for="password">Şifre</label>