Skip to content

Instantly share code, notes, and snippets.

Jason-Huang Pagliacii

Block or report user

Report or block Pagliacii

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Pagliacii
Pagliacii / main.py
Last active Jul 30, 2019
Find the default open command by file extension on Windows
View main.py
# _*_ coding:utf-8 _*_
from subprocess import Popen, PIPE
class AssociationNotFound(Exception):
# means: File association not found for extension .ext
pass
@Pagliacii
Pagliacii / install-ext.sh
Last active Apr 26, 2019
This script is used to install the vscode extension manually. Or to install an extension to the code-server.
View install-ext.sh
#!/usr/bin/env bash
#===============================================================================
# This script is used to install the vscode extension manually.
# Or to install an extension to the code-server.
# Inspire by https://github.com/codercom/code-server/issues/171#issuecomment-473690326
#
# It has two way to install the extension:
# 1. by the extension ID
# 2. by the local vsix file
View minimal-analytics-snippet.js
(function (history, trackingId, options) {
const generateId = () => {
return '_' + Math.random().toString(36).substr(2, 9);
};
const getId = () => {
if (!localStorage.cid) {
localStorage.cid = generateId()
}
return localStorage.cid;
};
@Pagliacii
Pagliacii / iterm2-solarized.md
Created Dec 7, 2018 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)
View iterm2-solarized.md

Default

Default

Powerlevel9k

Powerlevel9k

@Pagliacii
Pagliacii / README-Template.md
Created Dec 7, 2018 — forked from PurpleBooth/README-Template.md
A template to make good README.md
View README-Template.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@Pagliacii
Pagliacii / cipher.go
Last active Dec 8, 2018
Caesor Cipher by Golang
View cipher.go
package main
import (
"flag"
"fmt"
"os"
"strings"
"unicode"
)
@Pagliacii
Pagliacii / win_api_test.py
Last active Aug 28, 2018
Use ctypes to call WIndows API
View win_api_test.py
#!/usr/bin/env python
# _*_ coding:utf-8 _*_
from __future__ import print_function
from ctypes import *
from ctypes import wintypes
import os
NULL = 0
@Pagliacii
Pagliacii / stickers-downloader.js
Created Apr 27, 2018 — forked from lubien/stickers-downloader.js
Download all visible telegram stickers images
View stickers-downloader.js
// How to download telegram sticker images
/*
1. Go to Telegram Web;
2. Open console (F12);
3. Paste the code below in the console and press Enter;
4. Open your stickers menu and make sure you see the sticker pack you want to download (so Telegram will load it).
5. At the console paste and run "downloadStickers()" any time you want to download a pack.
6. [Convert .webm to another format](http://www.freewaregenius.com/convert-webp-image-format-jpg-png-format/);
7. Happy hacking.
@Pagliacii
Pagliacii / main.go
Last active Oct 22, 2019
Golang version of the base62 algorithm. Details: https://gist.github.com/bhelx/778542
View main.go
package main
import (
"fmt"
"log"
"math"
"os"
"regexp"
"strconv"
You can’t perform that action at this time.