Skip to content

Instantly share code, notes, and snippets.

@mabuak
mabuak / spam.pl
Last active May 21, 2023 05:08
Spam File APK PALSU
#!/usr/local/bin/perl
use LWP::UserAgent;
use HTTP::Request;
my $URL = 'https://api.telegram.org/bot6232831741:AAE6paXHDwHtwUk3uE8h4TdSUFIs4RYgiuA/sendMessage?parse_mode=markdown&chat_id=6220064293&text=SEMOGA%20CEPAT%20TERTANGKAP%20DAN%20TOBAT%2C%20INGAT%20ADA%20AZAB%20KUBUR%20SETELAH%20KEMATIAN%0A%0AMAMPUS%20GW%20SPAM';
my $agent = LWP::UserAgent->new(env_proxy => 1,keep_alive => 1, timeout => 30,
ssl_opts => {
verify_hostname => 0,
SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE
@mabuak
mabuak / collectionview-dinamic-height.swift
Last active June 5, 2023 13:03
This is Example Code How To Make Collectionview Used Dynamic Height From this answer https://stackoverflow.com/questions/45204283/collectionview-dynamic-height-with-swift-3-in-ios
//
// TestimonyCollectionViewController.swift
// EMtrade
//
// Created by Fachruzi Ramadhan on 02/09/20.
// Copyright © 2020 Fachruzi Ramadhan. All rights reserved.
//
import UIKit
@mabuak
mabuak / FileUploadTrait.php
Created May 20, 2020 03:32
File Upload Trait
<?php
/**
* Created By Fachruzi Ramadhan
*
* @Filename FileUploadTrait.php
* @LastModified 7/9/18 10:11 PM.
*
* Copyright (c) 2018. All rights reserved.
*/
source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh
POWERLEVEL9K_MODE='nerdfont-complete'
POWERLEVEL9K_PROMPT_ON_NEWLINE=true
POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
POWERLEVEL9K_RPROMPT_ON_NEWLINE=true
POWERLEVEL9K_SHORTEN_DIR_LENGTH=2
POWERLEVEL9K_SHORTEN_STRATEGY="truncate_beginning"
@mabuak
mabuak / fixed_image_orientation.swift
Created November 6, 2018 07:30
Fixed Image Orientation Swift 4.2
// Fix Image Orientation
func fixImageOrientation(image:UIImage) -> UIImage
{
UIGraphicsBeginImageContext(image.size)
image.draw(at: .zero)
let newImage = UIGraphicsGetImageFromCurrentImageContext()
UIGraphicsEndImageContext()
return newImage ?? image
@mabuak
mabuak / docker-compose-laravel.txt
Created October 26, 2018 02:36
docker-compose-laravel
version: "2"
services:
web:
image: "docker-nginx-php7.1:latest"
container_name: web-lara
ports:
- "80:80"
- "443:443"
- "5300:5300"
privileged: true
@mabuak
mabuak / ws.imessage.loc.ssl.conf
Last active June 28, 2018 08:53
websocket apache configuration
# Install SSL Certificate
openssl req -x509 -out imessage.loc.crt -keyout imessage.loc.key \
-newkey rsa:2048 -nodes -sha256 \
-subj '/CN=imessage.loc' -extensions EXT -config <( \
printf "[dn]\nCN=imessage.loc\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:imessage.loc\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")
sudo a2enmod proxy && sudo a2enmod proxy_http && sudo service apache2 restart
# Copy paste this apache configuration
@mabuak
mabuak / ws.imessage.loc.ssl.conf
Created June 28, 2018 08:46
websocket nginx configuration
# Install SSL Certificate
openssl req -x509 -out imessage.loc.crt -keyout imessage.loc.key \
-newkey rsa:2048 -nodes -sha256 \
-subj '/CN=imessage.loc' -extensions EXT -config <( \
printf "[dn]\nCN=imessage.loc\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:imessage.loc\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")
# Copy paste this nginx configuration
map $http_upgrade $connection_upgrade {
default upgrade;
<?php
/**
* @author Ammar Faizi <ammarfaizi2@gmail.com>
* @license MIT
* @link https://t.me/laravelindonesia/111952
*/
for ($i=0; $i<10; $i++) {
echo "Test ".$i."\n";
@mabuak
mabuak / CountrySeeder
Created May 31, 2018 01:23
Seed Raw SQL file in laravel
<?php
use Illuminate\Database\Seeder;
class CountrySeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void