Skip to content

Instantly share code, notes, and snippets.

Avatar
💾
atuwa tiika

Nayana Hettiarachchi devzer01

💾
atuwa tiika
View GitHub Profile
View grayscale.css
body {
/* IE */
filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);
/* Chrome, Safari */
-webkit-filter: grayscale(1);
/* Firefox */
filter: grayscale(1);
}
View 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>
View hash-push.sh
#!/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 / move.sh
Created Jan 12, 2020
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
View move.sh
#!/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
View tux-shortcuts.txt
# tmux shortcuts & cheatsheet
start new:
tmux
start new with session name:
tmux new -s myname
@devzer01
devzer01 / gitlab-pipeline-trigger-looper.sh
Created Feb 14, 2020
gitlab pipeline run until pass looper.
View gitlab-pipeline-trigger-looper.sh
#!/bin/bash
PRIVATE_TOKEN="create from your gitlab profile"
TRIGGER_TOKEN="get from the project ci/cd triggers"
GITLAB_URL="https://gitlab.com"
PROJECT_ID="you can find this using gitlab api or under the gitlab project settings"
REF="master" #this can also be a branch name or a commit hash
SLEEP_SECONDS=1
while true
do
@devzer01
devzer01 / kill-pgsql-session.sql
Created Feb 14, 2020
killing postgresql sessions
View kill-pgsql-session.sql
-- this query kills any active session attached to the 'dbname' database, which can prevent you from
-- running certain administrative operations on the database
select pg_terminate_backend(pid)
from pg_stat_activity
where pid IN (select pid from pg_stat_activity where datname = 'dbname');
@devzer01
devzer01 / i18n.js
Created Mar 14, 2020
fix one problem and create many for no good reason code
View i18n.js
var content = document.createElement('div')
content.id = 'alert';
content.style.width = '100%';
content.innerHTML = 'tax translation helper is loaded';
content.style.height = '100px';
content.style.textAlign = 'center';
content.style.display = 'none';
var body = document.getElementsByTagName('body')[0];
body.appendChild(content);
View spring-boot-dependencies.xml
<activemq.version>5.15.11</activemq.version>
<antlr2.version>2.7.7</antlr2.version>
<appengine-sdk.version>1.9.77</appengine-sdk.version>
<artemis.version>2.10.1</artemis.version>
<aspectj.version>1.9.5</aspectj.version>
<assertj.version>3.13.2</assertj.version>
<atomikos.version>4.0.6</atomikos.version>
<awaitility.version>4.0.2</awaitility.version>
<bitronix.version>2.1.4</bitronix.version>
<build-helper-maven-plugin.version>3.0.0</build-helper-maven-plugin.version>
@devzer01
devzer01 / proc_cpuinfo
Created Jul 25, 2020
ACER Aspire 3 A314-32-43NH
View proc_cpuinfo
(chroot) livecd / # cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 21
model : 112
model name : AMD A4-9120e RADEON R3, 4 COMPUTE CORES 2C+2G
stepping : 0
microcode : 0x6006705
cpu MHz : 1361.900
cache size : 1024 KB