Skip to content

Instantly share code, notes, and snippets.

View felixfong227's full-sized avatar
😏
Hunting Source Code

FeliΞ felixfong227

😏
Hunting Source Code
View GitHub Profile
@felixfong227
felixfong227 / gist:965e54ec5ff357e41096fe8ca823a4f3
Created August 20, 2021 04:10
i3 move all the screen into one single mointor
i3-msg '[class=".*"]' move workspace to output eDP
core.ipdn=123.321.1234.567
sabrina.owo=124244.125.199
e621.yiff=124244.125.199

A Step by step guide for settings up Discord OAuth

⚠️ Only applicable for version v1.0

https://camo.githubusercontent.com/e4f3b15ce5cbe716386b6a90486929208e8c0598/68747470733a2f2f692e696d6775722e636f6d2f544139737730432e706e67


Step 1: Identify your machine's domain

@felixfong227
felixfong227 / version_compare.js
Created August 31, 2019 04:20 — forked from pc035860/version_compare.js
Function to compare two version strings (e.g. "1.6.1" is smaller than "1.7"). Developed in order to answer http://stackoverflow.com/a/6832721/50079.
/**
* Compares two software version numbers (e.g. "1.7.1" or "1.2b").
*
* This function was born in http://stackoverflow.com/a/6832721.
*
* @param {string} v1 The first version to be compared.
* @param {string} v2 The second version to be compared.
* @param {object} [options] Optional flags that affect comparison behavior:
* <ul>
* <li>
// All custom effects for the webpage
var warpBefore = false;
var Effects = {
instagramLike(elm, isLike) {
if(typeof isLike === 'undefined') isLike = true;
if(elm) {
var canvasTargetPoint = document.createElement('div');
var wrapper = document.createElement('div');
@felixfong227
felixfong227 / README.md
Created January 24, 2019 18:38 — forked from cocoastorm/README.md
rexray/s3fs Docker Plugin Install with Minio

Getting Started

Make sure Docker is installed!

Get your Minio endpoint url, accesskey, and secretkey ready!

Install Docker Plugin

docker plugin install rexray/s3fs \

Keybase proof

I hereby claim:

  • I am felixfong227 on github.
  • I am felixfong227 (https://keybase.io/felixfong227) on keybase.
  • I have a public key whose fingerprint is C7BD E515 D8BC 8002 47F8 B8BF B2B1 D62A A8EB 3212

To claim this, I am signing this object:

@felixfong227
felixfong227 / gist:24ebfaffb519d0cdd6fa0a5c99e6265e
Created August 20, 2018 14:01
Install The Latest Version Of Docker And Docker Compose 1.22.0
echo "== Installing Docker And Docker Compose =="
echo ""
echo "Step 1: Update yum"
sudo yum update
echo "DONE: Update yum"
echo "Step 2: Install Docker via yum"
sudo yum install -y docker
echo "DONE: Install Docker via yum"
@felixfong227
felixfong227 / file_upload.cr
Created May 29, 2017 17:58
A web server that uploads file
require "kemal"
sha256 = OpenSSL::Digest.new("sha256")
get "/:name" do |env|
name = env.params.url["name"]
render "public/index.ecr"
end
post "/upload" do |env|
This is a simple text file that contain useless information that we are not going to use it anyways lol