Skip to content

Instantly share code, notes, and snippets.

View techmagus's full-sized avatar
💭
🇵🇭

Yohan Yuki Xieㆍ사요한・謝雪矢 techmagus

💭
🇵🇭
View GitHub Profile
@techmagus
techmagus / gpg-ssh-setup.md
Created December 26, 2023 20:52 — forked from mcattarinussi/gpg-ssh-setup.md
A setup guide to use a personal gpg key for ssh authentication

GPG - SSH setup

Generating the master key

Here we create the master key. We want only Certify capability: we use the master key only to create the subkeys, Sign - Encrypt - Authenticate capabilities will be assigned to the subkeys.

Run the following command to start the master key generation process. Select the set your own capabilities creation process (type 8)

  ▶ gpg --full-generate-key --expert

gpg (GnuPG) 2.2.9; Copyright (C) 2018 Free Software Foundation, Inc.

@techmagus
techmagus / keybase.md
Last active June 3, 2017 07:54
Keybase verification

Keybase proof

I hereby claim:

  • I am techmagus on github.
  • I am yukino (https://keybase.io/yukino) on keybase.
  • I have a public key whose fingerprint is CDB7 5E8E 8397 0FE2 8887 A05A DF3B 8EBF D250 A680

To claim this, I am signing this object:

@techmagus
techmagus / cul-list.css
Last active March 6, 2016 03:31
Custom Unordered List is a CSS code for styling unordered lists.
@charset "UTF-8";
/*
* Custom Unordered List (CUL)
* by techmagus Yuki
* https://techmagus.ninja/styling-unordered-lists/
*
* Source code: https://gist.github.com/techmagus/e335c3b3197a0883c2aa
*
* Copyright © 2015, 2016 JC John Sese Cuneta
*
@techmagus
techmagus / functions.php
Created December 23, 2015 19:50
Fix for "Featured Post", in Ridizain theme, always showing "5" posts
<?php
/**
* Ridizain functions and definitions
*
* Set up the theme and provides some helper functions, which are used in the
* theme as custom template tags. Others are attached to action and filter
* hooks in WordPress to change core functionality.
*
* When using a child theme you can override certain functions (those wrapped
* in a function_exists() call) by defining them first in your child theme's
@techmagus
techmagus / _font-face.scss
Created June 4, 2013 13:28
font-face mixin override with unicode-range and local('') support.
// ______________________________________________________________________ //
// font-face mixin override //
// ______________________________________________________________________ //
@mixin font-face(
$name,
$font-files,
$eot: false,
$weight: false,
$style: false,
$unicode-range: false,