CentOS, Ubuntu, Slackware, etc. Whatever Linux-based OS it is, you can create a bootable USB for it by using a Mac.
Download it, copy it, whatever it takes to prepare that Linux-based OS .iso file
CentOS, Ubuntu, Slackware, etc. Whatever Linux-based OS it is, you can create a bootable USB for it by using a Mac.
Download it, copy it, whatever it takes to prepare that Linux-based OS .iso file
Last updated September 21, 2022
This Gist explains how to do this using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.
For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.
There has been a number of comments on this gist regarding some issues around the pinentry-program and M1 Macs. I've finally gotten a chance to try things out on an M1 and I've updated the documentation in 2-using-gpg.md
to reflect my findings.
Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.
NOTE: This logic can be extended to more than two accounts also. :)
The setup can be done in 5 easy steps:
package main | |
// http://play.golang.org/p/jZ5pa944O1 <- will not display the colors | |
import "fmt" | |
const ( | |
InfoColor = "\033[1;34m%s\033[0m" | |
NoticeColor = "\033[1;36m%s\033[0m" | |
WarningColor = "\033[1;33m%s\033[0m" | |
ErrorColor = "\033[1;31m%s\033[0m" | |
DebugColor = "\033[0;36m%s\033[0m" |
# ref https://k8s.io/examples/service/networking/example-ingress.yaml | |
apiVersion: networking.k8s.io/v1 | |
kind: Ingress | |
metadata: | |
name: local-dev-ingress | |
annotations: | |
nginx.ingress.kubernetes.io/rewrite-target: /$1 | |
spec: | |
rules: | |
- host: dev.test |
[PHP] | |
;;;;;;;;;;; | |
; WARNING ; | |
;;;;;;;;;;; | |
; This is the default settings file for new PHP installations. | |
; By default, PHP installs itself with a configuration suitable for | |
; development purposes, and NOT for production purposes. | |
; For several security-oriented considerations that should be taken | |
; before going online with your site, please consult php.ini-recommended |
<?php | |
namespace App\ActiveRecord; | |
class PostRepository | |
{ | |
private $cache; | |
public function __construct(Cache $cache) | |
{ | |
// Any set() / get() cache implementation. |
<?php | |
// up users | |
$table = 'users'; | |
if (!Schema::hasTable($table)) { | |
Schema::create($table, function (Blueprint $table) { | |
$table->increments('id'); | |
$table->string('display_name'); |
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
class Sample | |
{ | |
/** | |
* Handle an incoming request. |
data:text/html, <html contenteditable> |