This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// TestimonyCollectionViewController.swift | |
// EMtrade | |
// | |
// Created by Fachruzi Ramadhan on 02/09/20. | |
// Copyright © 2020 Fachruzi Ramadhan. All rights reserved. | |
// | |
import UIKit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Created By Fachruzi Ramadhan | |
* | |
* @Filename FileUploadTrait.php | |
* @LastModified 7/9/18 10:11 PM. | |
* | |
* Copyright (c) 2018. All rights reserved. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Fix Image Orientation | |
func fixImageOrientation(image:UIImage) -> UIImage | |
{ | |
UIGraphicsBeginImageContext(image.size) | |
image.draw(at: .zero) | |
let newImage = UIGraphicsGetImageFromCurrentImageContext() | |
UIGraphicsEndImageContext() | |
return newImage ?? image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2" | |
services: | |
web: | |
image: "docker-nginx-php7.1:latest" | |
container_name: web-lara | |
ports: | |
- "80:80" | |
- "443:443" | |
- "5300:5300" | |
privileged: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @author Ammar Faizi <[email protected]> | |
* @license MIT | |
* @link https://t.me/laravelindonesia/111952 | |
*/ | |
for ($i=0; $i<10; $i++) { | |
echo "Test ".$i."\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Database\Seeder; | |
class CountrySeeder extends Seeder | |
{ | |
/** | |
* Run the database seeds. | |
* | |
* @return void |
NewerOlder