Skip to content

Instantly share code, notes, and snippets.

View rise-worlds's full-sized avatar
🔥
Focusing

rise rise-worlds

🔥
Focusing
View GitHub Profile
@rise-worlds
rise-worlds / google-tts.cs
Last active September 20, 2024 12:59
谷歌翻译语音朗读接口
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace GetVoice
{
@rise-worlds
rise-worlds / IAS.cmd
Created June 18, 2024 08:16
IDM-Activation-Script
@set iasver=1.2
@setlocal DisableDelayedExpansion
@echo off
::============================================================================
::
:: IDM Activation Script (IAS)
::
@rise-worlds
rise-worlds / code record
Last active May 29, 2024 03:37
code record
# code record
## 以中心点旋转点.py
## todaybing.py
@rise-worlds
rise-worlds / build_ffmpeg_aarch64_cross.sh
Last active April 18, 2024 15:44
build ffmpeg with openssl rtmp x264 fdk-aac opus
#!/bin/bash
# sudo apt install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
# sudo apt install gcc-arm-linux-gnueabi g++-arm-linux-gnueabi
# sudo apt install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
dpkg-query -l gcc-aarch64-linux-gnu > /dev/null || sudo apt install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
dpkg-query -l aria2 > /dev/null || sudo apt install -y aria2
export LOCAL_PATH=$(pwd)
@rise-worlds
rise-worlds / gist:8b6495f28a45713b66a60f983ee0573d
Last active March 23, 2021 01:20
ps generate android icon

Install - Save Create Icons.jsx to:

MAC: /Applications/Adobe Photoshop CS5/Presets/Scripts

PC: c:\program files\Adobe Photoshop CS5\Presets\Scripts

Run:

With Photoshop open, select File > Scripts > Create Icons

Adobe Photoshop JavaScript Reference

@rise-worlds
rise-worlds / hosts
Last active November 26, 2020 11:38
unfw hosts
127.0.0.1 localhost
::1 localhost
127.0.0.1 activate.navicat.com
0.0.0.0 account.jetbrains.com
0.0.0.0 www.jetbrains.com
# GitHub
140.82.118.3 github.com
140.82.118.4 github.com
@rise-worlds
rise-worlds / utxo.ts
Last active October 17, 2019 08:22
calc utxo for bcoin
// get /tx/address/${addrs}?reverse=1
const TX_TYPE_IN = 1;
const TX_TYPE_OUT = 2;
export const CreateUtxos = async (address: string, data: any) => {
let mapData = new Map();
let temp = new Map();
for (const iter of data) {
mapData.set(iter.hash, iter);
#!/bin/bash
git filter-branch --env-filter '
OLD_EMAIL="[email protected]"
NEW_NAME="a42dab9659090cac"
NEW_EMAIL="[email protected]"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
export GIT_COMMITTER_NAME="$NEW_NAME"
@rise-worlds
rise-worlds / For Mac 4.2.6 unlimited trial.md
Last active November 15, 2024 01:48 — forked from satish-setty/trial.md
Beyond Compare 4 license for Windows, Mac, Linux

for 4.2.4 or higher, 4.2.5,4.2.6,4.3.7, it's works, this is the way which makes Always in evaluation mode.

  1. open Terminal, go to the dir : cd /Applications/Beyond Compare.app/Contents/MacOS
  2. change the name BCompare to BCompare.bak: mv BCompare BCompare.bak
  3. touch a file name BCompare , and chmod a+ux BCompare : touch BCompare && chmod a+ux BCompare
  4. open BCompare with text editor, insert the script :
#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@
@rise-worlds
rise-worlds / BasicToken.sol
Created September 5, 2018 02:31
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.24;
import "./ERC20Basic.sol";
import "./SafeMath.sol";
/**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.