Skip to content

Instantly share code, notes, and snippets.

View devzer01's full-sized avatar
💾
atuwa tiika

Nayana Hettiarachchi devzer01

💾
atuwa tiika
View GitHub Profile
@devzer01
devzer01 / move.sh
Created January 12, 2020 16:50
Shell script to be used in emergency when your Final Cut Pro has taken up over 50% of drive space, and you can't operate the Mac in any normal fashion
#!/bin/bash
EXTERNAL_BACKUP_DIR="/Volumes/data disk"
LIBRARY_NAME=$1
mv "$LIBRARY_NAME" $EXTERNAL_BACKUP_DIR/ & #send the move to background
# monitor the destination path
raw footage library % lastSize=`du -s "$EXTERNAL_BACKUP_DIR/$LIBRARY_NAME" | tr '\t' ' ' | cut -d' ' -f1`;
while true
@devzer01
devzer01 / panic.report.txt
Created January 11, 2020 05:03
kernel panic mac os catalina
panic(cpu 4 caller 0xffffff7f8132f948): "XHC2(MacBookPro15,3): thunderbolt power on failed 0xffffffff\n"@/BuildRoot/Library/Caches/com.apple.xbs/Sources/IOPCIFamily/IOPCIFamily-370.80.1/IOPCIBridge.cpp:1398
Backtrace (CPU 4), Frame : Return Address
0xffffffa3bfc83a60 : 0xffffff8000937beb
0xffffffa3bfc83ab0 : 0xffffff8000a6f4b5
0xffffffa3bfc83af0 : 0xffffff8000a60f2e
0xffffffa3bfc83b40 : 0xffffff80008dea40
0xffffffa3bfc83b60 : 0xffffff80009372d7
0xffffffa3bfc83c60 : 0xffffff80009376bb
0xffffffa3bfc83cb0 : 0xffffff80010ce059
0xffffffa3bfc83d20 : 0xffffff7f8132f948
#!/bin/bash
# i wrote this in 10-15 minutes, it works feel free to improve it and do whatever u want with it :)
# you can use any api to publish the transaction.
# the idea is you traverse back to the the input that is confirmed and boradcast the transaction to the network.
# if you are luckly you can broadcast about 25-30 per block, if you are running multiple wallets then you can increase this
# limit (but i haven't verified this
# call the script with your transaction waiting to confirm
# hash-push.sh acaf309bdded0746253fadbde42ded0a06f73c57059a1690cbc259b5469086d3
@devzer01
devzer01 / index.html
Last active April 17, 2017 00:03
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<h1>OCT RED OCEAN DOT WORLD</h1>
<h2>A WEB <strikeout>WITHOUT ADVERTISING / SPAM / DUPLICATED CONTENT /</strikeout> SO HEAVEN, SO ORO</h2>
@devzer01
devzer01 / grayscale.css
Created October 13, 2016 14:16
Quick Grayscale
body {
/* IE */
filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);
/* Chrome, Safari */
-webkit-filter: grayscale(1);
/* Firefox */
filter: grayscale(1);
}