Skip to content

Instantly share code, notes, and snippets.

View rastislavcore's full-sized avatar
🪇
No todo lo que es oro brilla

Rastislav ₡ore rastislavcore

🪇
No todo lo que es oro brilla
View GitHub Profile
@rastislavcore
rastislavcore / blank-icon.css
Created September 26, 2022 10:29
Mark blank links with icon
a[target="_blank"] {
position: relative;
}
a[target="_blank"]:after {
position: absolute;
top: 3px;
right: -15px;
content: "\1f855";
font-size: 13px;
@rastislavcore
rastislavcore / mastodon-core-mod.css
Last active May 30, 2022 23:48
Mastodon Core-green modification.
:root {
--green: #46b549;
--green-darken: #54995f;
--green-lighter: #64cc6e;
--grey: #c5c5cc;
--grey-lighter: #aeaebf;
--grey-darken: #303040;
--grey-greener: #163116;
--grey-dark: #4d4d66;
--white-darken: #c5c5d9;
@rastislavcore
rastislavcore / offlineXcbTx.sh
Last active September 17, 2024 19:50
Create offline XCB transaction
# Start Core
./gocore --verbosity 2 --nat any console
# Get latest transaction // for nonce [0x0] // 0 = first; 1 = second; …
# Same tx nonce with a higher fee may be a replacement.
web3.xcb.getTransactionCount("cb…")
# Expected result: number
# Compose transaction
# web3.toOre(1) is value in Cores
@rastislavcore
rastislavcore / generateXcb.sh
Last active April 20, 2022 21:10
XCB From private key to UTC file
./xcbkey generate --privatekey pkey.txt UTC--$(date -u +"%FT%H-%M-%S%Z")--wallet
@rastislavcore
rastislavcore / ican-regex.txt
Created March 27, 2022 15:05
ICAN addresses regular expression tester.
^(cb|CB)([0-9]{2})([0-9a-fA-F]{40})$
@rastislavcore
rastislavcore / pool.cfg
Last active October 17, 2022 08:38
CTR pool config for CoreMiner
wallet=
worker=Rabbit
server[1]=eu.catchthatrabbit.com
port[1]=8008
server[2]=eu1.catchthatrabbit.com
port[2]=8008
@rastislavcore
rastislavcore / ssh-pub-regex.txt
Created December 29, 2021 23:00
SSH public key regex
^(ssh-rsa|ssh-dss|ecdsa-sha2-nistp256|ssh-ed25519) AAAA[0-9A-Za-z+\/]+[=]{0,3}( ([^@]+@[^@]+))?$
@rastislavcore
rastislavcore / .XCompose
Created March 23, 2021 19:47
Crypto/Core definitions for tthe Compose key (AltGr)
<Multi_key> <o> <r> <e> : "ø"
<Multi_key> <O> <R> <E> : "Ø"
<Multi_key> <n> <u> <c> <l> <e> : "ꞥ"
<Multi_key> <n> </> : "ꞥ"
<Multi_key> <m> <o> <l> <i> : "₥"
<Multi_key> <c> <o> <r> <e> : "₡"
<Multi_key> <C> <O> <R> <E> : "₡"
<Multi_key> <c> </> </> : "₡"
<Multi_key> <C> </> </> : "₡"
<Multi_key> <a> <e> <r> : "₳"
@rastislavcore
rastislavcore / about:config.txt
Created November 29, 2020 17:45
Make Firefox scrolling smooth on Ubuntu
general.smoothScroll;true
general.smoothScroll.currentVelocityWeighting;0.15
general.smoothScroll.mouseWheel.durationMaxMS;250
general.smoothScroll.mouseWheel.durationMinMS;250
general.smoothScroll.msdPhysics.enabled;true
general.smoothScroll.msdPhysics.motionBeginSpringConstant;400
general.smoothScroll.msdPhysics.regularSpringConstant;600
general.smoothScroll.msdPhysics.slowdownMinDeltaMS;120
general.smoothScroll.other.durationMaxMS;500
general.smoothScroll.pages.durationMaxMS;350
@rastislavcore
rastislavcore / blockchain-running.sh
Last active September 9, 2020 15:32
Check if Blockchain is listening to network
["CMD-SHELL", "connected=$(gocore net.listening); if [ $connected ]; then exit 0; else exit 1; fi"]