Skip to content

Instantly share code, notes, and snippets.

@abrahamfast
abrahamfast / WIN10.MD
Created November 7, 2022 03:08 — forked from hungneox/WIN10.MD
How Make a Windows 10 USB Using Your Mac - Build a Bootable ISO From Your Mac's Terminal

Most new PCs don't come with DVD drives anymore. So it can be a pain to install Windows on a new computer.

Luckily, Microsoft makes a tool that you can use to install Windows from a USB storage drive (or "thumbdrive" as they are often called).

But what if you don't have a second PC for setting up that USB storage drive in the first place?

In this tutorial we'll show you how you can set this up from a Mac.

Step 1: Download the Windows 10 ISO file

You can download the ISO file straight from Windows. That's right - everything we're going to do here is 100% legal and sanctioned by Microsoft.

@abrahamfast
abrahamfast / install docker
Created August 27, 2021 22:10
docker_install.sh
dnf remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-selinux \
docker-engine-selinux \
docker-engine;
@abrahamfast
abrahamfast / smaba-setup.md
Created August 3, 2021 06:26
easy setup samba

apt-get update apt install samba ufw allow 'Samba'

vim /etc/samba/smb.conf [public] comment = no need username and password path = /samba/public browsable = yes guest ok = yes

@abrahamfast
abrahamfast / ffmpeg.md
Created November 10, 2020 02:13 — forked from steven2358/ffmpeg.md
FFmpeg cheat sheet
From: Sina Mehri [mailto:sinamehri@gmail.com]
Sent: Wednesday, April 15, 2015 10:22 AM
To: Hooman Kouhfallah
Subject: list of multi extension
Ext #1 :
101 - 1012 - 1013 - 1014 - 1015 - 1016 - 1017 - 1018
@abrahamfast
abrahamfast / vue-route.php
Created August 21, 2016 06:56
vue route in laravel
<?php
Route::get('/{vue_capture?}', function () {
return view('home');
})->where('vue_capture', '[\/\w\.-]*');
server {
root /var/www/backend.app.snappbit.com;
index index.php index.html index.htm;
server_name backend.app.snappbit.com;
charset utf-8;
#!/bin/bash
#----------------------------------------
# OPTIONS
#----------------------------------------
USER='root' # MySQL User
PASSWORD='' # MySQL Password
DAYS_TO_KEEP=0 # 0 to keep forever
GZIP=1 # 1 = Compress
BACKUP_PATH='/home/itops/backups/mysql'
#----------------------------------------
@abrahamfast
abrahamfast / DownloadExternalUrl.php
Created August 18, 2020 10:29
download file from url
<?php
$url = 'url'
$fileName = basename($url);
$filePath = __DIR__ . "/downloaded/" . $fileName);
$file = fopen($filePath, "w");
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FAILONERROR, true);
@abrahamfast
abrahamfast / prx.md
Last active December 10, 2019 11:43
prx list

#https

108.61.86.73:3128 104.248.43.180:3128 104.248.54.86:3128 103.239.254.210:80 101.95.115.196:80 118.174.211.220:11 114.224.221.59:9999 117.88.5.156:3000