This is guide about how to configure multiple SSH keys for some Git host websites such as Github, Gitlab, among others.
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 | |
require_once('attachment.class.php'); | |
/** | |
* Fast Mime Mail parser Class using PHP's MailParse Extension | |
* @author [email protected] | |
* @url http://www.fijiwebdesign.com/ | |
* @license http://creativecommons.org/licenses/by-sa/3.0/us/ | |
* @version $Id$ |
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
Host github.com | |
User git | |
Hostname github.com | |
PreferredAuthentications publickey | |
IdentityFile /home/user/.ssh/id_rsa |
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
<html> | |
<head> | |
<style> | |
.row div { | |
height: 8px; | |
display: inline-block; | |
width: 8px; | |
} | |
.row div.active { | |
background-color: red; |
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
// return array of [r,g,b,a] from any valid color. if failed returns undefined | |
function colorValues(color) | |
{ | |
if (!color) | |
return; | |
if (color.toLowerCase() === 'transparent') | |
return [0, 0, 0, 0]; | |
if (color[0] === '#') | |
{ | |
if (color.length < 7) |
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
#!/bin/bash | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root" | |
exit | |
fi | |
apt-get install pkg-config libmagickwand-dev -y | |
cd /tmp | |
wget https://pecl.php.net/get/imagick-3.4.4.tgz | |
tar xvzf imagick-3.4.4.tgz |
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/bin/env bash | |
password="root" | |
echo PURGE | sudo debconf-communicate mysql-community-server | |
sudo apt purge mysql-client mysql-server | |
sudo debconf-set-selections <<< "mysql-community-server mysql-community-server/root-pass password $password" | |
sudo debconf-set-selections <<< "mysql-community-server mysql-community-server/re-root-pass password $password" | |
sudo debconf-set-selections <<< "mysql-community-server mysql-server/default-auth-override select Use Legacy Authentication Method (Retain MySQL 5.x Compatibility)" |
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
@if ($paginator->hasPages()) | |
<div class="flex items-end my-2"> | |
@if ( ! $paginator->onFirstPage()) | |
{{-- First Page Link --}} | |
<a | |
class="mx-1 px-4 py-2 bg-blue-900 border-2 border-blue-900 text-white font-bold text-center hover:bg-blue-400 hover:border-blue-400 rounded-lg cursor-pointer" | |
wire:click="gotoPage(1)" | |
> | |
<< |
Sometimes you need to publish a CSS file for 3rd-party consumption (i.e. default styles for an embeddable JS widget). This set up lets you continue to use Tailwind, but scope all your styles to a specific selector.
Simply replace .internachi
with your own widget namespace, set up Tailwind as you please,
and run generate.sh
to build a custom version of your Tailwind styles that won't interfere
with other CSS rules (including the Tailwind reset).
OlderNewer