Skip to content

Instantly share code, notes, and snippets.

View FreezeSoul's full-sized avatar
🏠
Working from home

FS.IO FreezeSoul

🏠
Working from home
View GitHub Profile
@2439905184
2439905184 / codecombat本地搭建教程
Created July 19, 2022 07:24
有用的codecombat私服搭建教程
https://www.bilibili.com/read/cv14836748
@dwjohnston
dwjohnston / hexToCssFilters.ts
Last active March 18, 2024 16:07
TS Hex to CSS filters solution
//As referenced in this solution
import { number } from "prop-types";
//https://codepen.io/sosuke/pen/Pjoqqp
interface HSL {
h: number;
@stefanocoding
stefanocoding / macos_on_ubuntu.md
Last active May 18, 2023 12:17
Install macOS in a VirtualBox machine on Ubuntu

Important: I'm writing this when the last version of macOS (and the one I have installed) is Mojave. There is already a script which installs Mojave in a virtual machine here https://github.com/img2tab/okiomov. But if you are curios how to do everything manually to install High Sierra, then this guide may be useful.

After reading a few articles I ended up with these steps:

  1. On macOS, download the High Sierra installer (even if you have Mojave installed): https://itunes.apple.com/us/app/macos-high-sierra/id1246284741?ls=1&mt=12
  2. If the High Sierra Installer starts, quit it.
  3. Open "Disk Utility".
  4. Click on "File" > "New Image" > "Blank image...". Or just press cmd+N.
@proteye
proteye / aes_encryption_helper.dart
Created September 5, 2018 10:54
How to AES-256 (CBC/CFB mode) encrypt and decrypt in Dart/Flutter with Pointy Castle
import 'dart:convert';
import 'dart:typed_data';
import "package:pointycastle/export.dart";
import "./convert_helper.dart";
// AES key size
const KEY_SIZE = 32; // 32 byte key for AES-256
const ITERATION_COUNT = 1000;
// 安装客户端
apt install -y shadowsocks
// 代理服务器配置, 16.04 tls 上 apt 安装的 ss 客户端仅支持部分加密 method, 比如 aes-256-cfb
// 建一个配置文件,比如 shadowsocks.json ,写入:
{
"server":"代理服务器的ip",
"server_port":10763,
"local_address":"127.0.0.1",
"local_port":1080,
@alexanderjsingleton
alexanderjsingleton / README.md
Last active December 6, 2023 23:49
Bitcoin mining with Raspberry Pi and Slushpool

After spinning-up your Raspberry Pi and registering an account at slushpool:

  1. sudo apt-get install automake autoconf pkg-config libcurl4-openssl-dev libjansson-dev libssl-dev libgmp-dev make g++ git
  2. git clone https://github.com/tpruvot/cpuminer-multi
  3. cd cpuminer-multi
  4. ./autogen.sh
  5. ./build.sh
  6. Check out the commands: ./cpuminer --help
  7. ./cpuminer -u slashpool_user_name.slashpool_worker -p pass -a sha256d -o stratum+tcp://stratum.slushpool.com:3333 -t cputhreads
  8. Order MOAR Raspberry Pi's and Antminers then buy more Bitcoin.
@doggy8088
doggy8088 / Angular 17 Dev Setup.md
Last active April 22, 2024 23:59
Angular 17 開發環境說明

Angular 17 開發環境說明

為了能讓大家能夠順利的建立起 Angular 17 開發環境,以下是需要安裝的相關軟體與安裝步驟與說明。

Angular LOGO

[ 作業系統 ]

  • Windows 10 以上版本
  • Mac OS X 10.6 以上版本
@MichalZalecki
MichalZalecki / storage.js
Last active July 20, 2021 23:37
Simple sessionStorage/localStorage wrapper factory
import storageFactory from "./storageFactory";
export const localStore = storageFactory(localStorage);
export const sessionStore = storageFactory(sessionStorage);
@nerdyman
nerdyman / resolve-tsconfig-path-to-webpack-alias.js
Last active March 5, 2024 01:25
Convert TypeScript tsconfig paths to webpack alias paths
const { resolve } = require('path');
/**
* Resolve tsconfig.json paths to Webpack aliases
* @param {string} tsconfigPath - Path to tsconfig
* @param {string} webpackConfigBasePath - Path from tsconfig to Webpack config to create absolute aliases
* @return {object} - Webpack alias config
*/
function resolveTsconfigPathsToAlias({
tsconfigPath = './tsconfig.json',