Skip to content

Instantly share code, notes, and snippets.

@Soulsuke
Soulsuke / arch_on_zfs.txt
Last active May 7, 2024 03:39
Arch on zfs root + native encryption at rest + ZfsBootMenu (UEFI without another bootloader)
NOTE: requires an EFI bios, so zfs will not use the whole disk as this is a single disk scenario.
/*\
|* Prerequisite: preare archiso with zfs support
\*****************************************************************************/
// 0. Do everything as root.
@roachhd
roachhd / README.md
Last active May 7, 2024 03:36
EMOJI cheatsheet ๐Ÿ˜›๐Ÿ˜ณ๐Ÿ˜—๐Ÿ˜“๐Ÿ™‰๐Ÿ˜ธ๐Ÿ™ˆ๐Ÿ™Š๐Ÿ˜ฝ๐Ÿ’€๐Ÿ’ข๐Ÿ’ฅโœจ๐Ÿ’๐Ÿ‘ซ๐Ÿ‘„๐Ÿ‘ƒ๐Ÿ‘€๐Ÿ‘›๐Ÿ‘›๐Ÿ—ผ๐Ÿ”ฎ๐Ÿ”ฎ๐ŸŽ„๐ŸŽ…๐Ÿ‘ป

EMOJI CHEAT SHEET

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. โœˆ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

People

:bowtie: ๐Ÿ˜„

@aymericbeaumet
aymericbeaumet / delete-likes-from-twitter.md
Last active May 7, 2024 03:35
[Recipe] Delete all your likes/favorites from Twitter

Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.

  1. Go to: https://twitter.com/{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
    d.click()
 }
@appkr
appkr / erd.md
Last active May 7, 2024 03:34
ERD in plantuml

entity entity
1 -
0 or 1 -o|
one and only 1 -||
many -{
0 or many -o{
1 or many -|{
@devomman
devomman / office-activation.md
Created May 30, 2023 11:01
Office Activation Command by Omman

Office 2021

Method 1: Using my command line

Step 1.1: Open cmd program with administrator rights.

  • First, you need to open cmd in the admin mode, then run all commands below one by one.

Step 1.2: Get into the Office directory in cmd.

  • For x86 and x64
cd /d %ProgramFiles(x86)%\Microsoft Office\Office16
cd /d %ProgramFiles%\Microsoft Office\Office16

Arlecchino

  • Q 118 Frames
  • E 37 Frames
  • Assuming both parts of E apply pyro and don't share ICD
  • NAs Hitmarks (without hitlag): 10, 13, 16, 23/34, 13, 39
  • NA to next NA frames: 23, 20, 32, 47, 24, 79
  • CA Hitmark 34 Frames
  • CA 59 Frames
  • Bond of Life consumption is 0.925 * Current Bond of Life
  • Burst absorbs directives, deals damage, then heals
@zhiyue
zhiyue / v2ex_sign.py
Created August 11, 2016 16:56 — forked from za2016/v2ex_sign.py
v2ex่‡ชๅŠจ็ญพๅˆฐๅฐ่„šๆœฌ
#-*- coding=utf-8 -*-
import requests
import re
import sys
reload(sys)
sys.setdefaultencoding('utf8')
signin='http://v2ex.com/signin'
home='http://v2ex.com'
@msrose
msrose / combining-git-repositories.md
Last active May 7, 2024 03:22
How to combine two git repositories.

Combining two git repositories

Use case: You have repository A with remote location rA, and repository B (which may or may not have remote location rB). You want to do one of two things:

  • preserve all commits of both repositories, but replace everything from A with the contents of B, and use rA as your remote location
  • actually combine the two repositories, as if they are two branches that you want to merge, using rA as the remote location

NB: Check out git subtree/git submodule and this Stack Overflow question before going through the steps below. This gist is just a record of how I solved this problem on my own one day.

Before starting, make sure your local and remote repositories are up-to-date with all changes you need. The following steps use the general idea of changing the remote origin and renaming the local master branch of one of the repos in order to combine the two master branches.

@ianfun
ianfun / rename.c
Created July 11, 2022 14:06
Rename File on Disk using SetFileInformationByHandle | Win32 API
#define _UNICODE
#define UNICODE
#include <windows.h>
#ifdef __cplusplus
#include <cstdio>
#else
#include <stdio.h>
#endif