Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

rise rise-worlds

🎯
Focusing
View GitHub Profile
@rise-worlds
rise-worlds / build_ffmpeg_aarch64_cross.sh
Last active Jan 11, 2022
build ffmpeg with openssl rtmp x264 fdk-aac opus
View build_ffmpeg_aarch64_cross.sh
#!/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)
View gist:8b6495f28a45713b66a60f983ee0573d

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

View rinkeby-peers-latest.txt
admin.addPeer("enode://a24ac7c5484ef4ed0c5eb2d36620ba4e4aa13b8c84684e1b4aab0cebea2ae45cb4d375b77eab56516d34bfbd3c1a833fc51296ff084b770b94fb9028c4d25ccf@52.169.42.101:30303");
admin.addPeer("enode://0db812a93f04c5d255d6b49e2982d682de95fb4d627cb71b1ae09c95ccd142cbfd1e4d81de8f6abd53d7039f71d1b76791637550b8457ccb75ab84924a3427a6@35.170.185.206:30303");
admin.addPeer("enode://15512c6ddd95ade68b6825c464cd076f1ef1b9ccd6675fc6c1a64d9131980e0219fe616c8878a7e9d815df96b6635d90ee2a4ec3a14ec88d4e27839d912f9186@35.236.199.169:30303");
admin.addPeer("enode://1f6dcd2e10a93b7373fd17a715d1a337f73a2a6807a358d2ab0bf9c9a70e78997df4d32468fa1886a8158a947ab44998fa6ca34c53c543bb557024ada2e687eb@34.203.75.150:30303");
admin.addPeer("enode://22745f606bf7846714bb55f0a98437e2b09da1928647965ef511d908392c4110e0a7709c2cc1630b48ff074cf0d519ede1d1b124a4f88aa21b794ddc0e7052e3@34.219.84.192:18546");
admin.addPeer("enode://2ca86aaa816920575eca798a30ee657dcc593a5420c20d129f9008ffe5432e54901f4f0846bb9a88ccde5d8531f14f22528b2ea314386815531f98c51c78
@rise-worlds
rise-worlds / hosts
Last active Nov 26, 2020
unfw hosts
View 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 Oct 17, 2019
calc utxo for bcoin
View utxo.ts
// 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);
View git-rewrite-author.sh
#!/bin/bash
git filter-branch --env-filter '
OLD_EMAIL="rise.worlds@outlook.com"
NEW_NAME="a42dab9659090cac"
NEW_EMAIL="a42dab9659090cac@outlook.com"
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 Sep 28, 2022 — forked from satish-setty/trial.md
Beyond Compare 4 license for Windows, Mac, Linux
View For Mac 4.2.6 unlimited trial.md

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+u BCompare : touch BCompare && chmod a+u 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 Sep 5, 2018
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=
View BasicToken.sol
pragma solidity ^0.4.24;
import "./ERC20Basic.sol";
import "./SafeMath.sol";
/**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
@rise-worlds
rise-worlds / SQL_CLR_Functions-NETCLR20.sql
Created Mar 24, 2017 — forked from martijnburgers/SQL_CLR_Functions-NETCLR20.sql
SQL CLR Functions for converting bytes to UTF-7, UTF-8, UTF32 and Unicode. Build for SQL Server 2005, 2008, and 2008 R2.
View SQL_CLR_Functions-NETCLR20.sql
GO
PRINT N'Creating [SQL_CLR_Functions]...for SQL Server 2005, 2008, and 2008 R2';
GO
CREATE ASSEMBLY [SQL_CLR_Functions]
AUTHORIZATION [dbo]
FROM 0x4D5A90000300000004000000FFFF0000B800000000000000400000000000000000000000000000000000000000000000000000000000000000000000800000000E1FBA0E00B409CD21B8014CCD21546869732070726F6772616D2063616E6E6F742062652072756E20696E20444F53206D6F64652E0D0D0A2400000000000000504500004C010300DE1E2C550000000000000000E00002210B010B000008000000060000000000002E270000002000000040000000000010002000000002000004000000000000000400000000000000008000000002000000000000030040850000100000100000000010000010000000000000100000000000000000000000D42600005700000000400000C802000000000000000000000000000000000000006000000C0000009C2500001C0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000080000000000000000000000082000004800000000000000000000002E7465787400000034070000002000000008000000020000000000000000000000000000200000602E72737263000000C80200000040000000
@rise-worlds
rise-worlds / GetAvatar.cs
Last active Dec 5, 2016
use gravatar.com
View GetAvatar.cs
public static class SignatureExtensions
{
static Dictionary<string, string> avatars = new Dictionary<string, string>();
public static string GetAvatar(this String email, int size = 75)
{
string key = email + "_" + size;
if (!avatars.ContainsKey(key))
{
string avatar = "//www.gravatar.com/avatar/";