Skip to content

Instantly share code, notes, and snippets.

View naagaraa's full-sized avatar
:shipit:
working from anywhere

miyuki nagara naagaraa

:shipit:
working from anywhere
View GitHub Profile
@naagaraa
naagaraa / learning-ml.md
Last active December 11, 2021 05:06
machine learning sub title teori for learning

Berikut adalah beberapa algoritma supervised learning yang penting Anda ketahui,

  1. Linear Regression
  2. Logistic Regression
  3. Classification
  4. Decision Trees
  5. Support Vector Machines
  6. Neural Networks.
  7. Binary Classification
  8. Multiclass Classification
@naagaraa
naagaraa / ddos.md
Last active December 10, 2021 02:57
DDoS

note for me, when learning security at Denieal of service or u can call DDoS attack hahaha :

  • UDP flood A UDP flood is a type of denial-of-service attack in which a large number of User Datagram Protocol (UDP) packets are sent to a targeted server with the aim of overwhelming that device’s ability to process and respond. The firewall protecting the targeted server can also become exhausted as a result of UDP flooding, resulting in a denial-of-service to legitimate traffic.

  • HTTP level attack : An HTTP flood attack is a type of volumetric distributed denial-of-service (DDoS) attack designed to overwhelm

@naagaraa
naagaraa / export.js
Last active April 22, 2022 03:08
html to word
function exportHTML(){
var vm = this, word = `<html xmlns:o='urn:schemas-microsoft-com:office:office xmlns:w='urn:schemas-microsoft-com:office:word' xmlns='http://www.w3.org/TR/REC-html40'><head><meta charset='utf-8'><title>Export HTML to Word Document with JavaScript</title></head><body>${vm.word}</body></html>`;
var source = 'data:application/vnd.ms-word;charset=utf-8,' + encodeURIComponent(word);
var fileDownload = document.createElement("a");
document.body.appendChild(fileDownload);
fileDownload.href = source;
fileDownload.download = 'hsl-file.doc';
fileDownload.click();
document.body.removeChild(fileDownload);
<?php
function vocal($string = "")
{
$string = str_split(str_replace(" ", "", strtolower($string)));
$vocal = "aiueo";
$result = [];
foreach ($string as $key => $value) {
if (str_contains($vocal, $value)) {
<?php
function checkbus($family = 5, $member = [])
{
if ($family == count($member)) {
sort($member);
$max_familily = 4;
// echo "this is valid data";
@naagaraa
naagaraa / server.md
Last active February 3, 2024 12:17
Setup Laravel and Nodejs Nginx Ubuntu Server

Server Prepare for Development testing

  • nodejs
  • nginx
  • laravel

setup for nodejs

you need install pm2 in your server, by the way used ubuntu 22

run nodejs with pm2 in your project

@naagaraa
naagaraa / Microsoft-Docs.md
Last active April 28, 2023 07:56
Microsoft-Docs

IT Support

try make documentation for freak , and funny problem wkwkw lol.

Office

this for note me, from giodanacardillo, for office lisence problem and check.

1. Open a command prompt as Administrator
2. In the command prompt, type the following:
  * Office 2016 (32-bit) on a 32-bit version of Windows 
@naagaraa
naagaraa / example-laravel-export.php
Last active December 21, 2022 12:57
laravel export to separate files .xlsx store at storage. you need install laravel excel for used this command
<?php
// in controller
use App\Exports\WebTrafictExport;
use App\Models\Trafict;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class ExportImportController extends Controller
{
public function ExportTrafict(Request $request)
@naagaraa
naagaraa / interventionImageLaravel.php
Created February 22, 2023 05:19
example how to use laravel intervention at laravel 8
<?php
namespace Modules\Admin\Http\Controllers\Achievement;
use Ramsey\Uuid\Uuid;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller;
use Intervention\Image\Facades\Image;
use App\Models\AchievementRewardModel;
use App\Models\Images;
@naagaraa
naagaraa / Error at Ubuntu User.md
Last active April 10, 2024 07:12
Journey My Ubuntu

UBUNTU

  • 22.06 Jammy JellyFish

this daily my problem use linux ubuntu, this solution for thats

problem 0

i don't know how to remove or clean uninstall program at linux hahaha but now i know that's

this example for platpak