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
@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

server {
root *;
index index.php index.html index.htm;
server_name *;
charset utf-8;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
client_max_body_size 100M;
location ~ \.php$ {
@abrahamfast
abrahamfast / zgrep_ssh_authfails.sh
Created February 12, 2019 20:32
zgrep ssh auth fails
zgrep sshd /var/log/auth.log* | grep rhost | sed -re 's/.*rhost=([^ ]+).*/\1/' | sort -u
@abrahamfast
abrahamfast / android_instructions.md
Created January 6, 2019 00:16 — forked from patrickhammond/android_instructions.md
Easily setup an Android development environment on a Mac

Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.

Prerequisites (for Homebrew at a minimum, lots of other tools need these too):

  • XCode is installed (via the App Store)
  • XCode command line tools are installed (xcode-select --install will prompt up a dialog)
  • Java

Install Homebrew:

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"