Skip to content

Instantly share code, notes, and snippets.

View IC-Tech's full-sized avatar
🏠
Working from home

Imesh Chamara IC-Tech

🏠
Working from home
View GitHub Profile
@IC-Tech
IC-Tech / IC.Software.API.Public
Created July 6, 2018 04:53
IC.Software.API.Public Control
v201807061022
@IC-Tech
IC-Tech / ConEmu.xml
Created April 11, 2020 08:31
cmder color themes
<key name="Colors" modified="2018-02-22 06:05:13" build="171109">
<key name="Palette1" modified="2020-04-11 13:14:25" build="191012">
<value name="Name" type="string" data="ayu Dark"/>
<value name="ExtendColors" type="hex" data="00"/>
<value name="ExtendColorIdx" type="hex" data="0e"/>
<value name="TextColorIdx" type="hex" data="10"/>
<value name="BackColorIdx" type="hex" data="10"/>
<value name="PopTextColorIdx" type="hex" data="10"/>
<value name="PopBackColorIdx" type="hex" data="10"/>
<value name="ColorTable00" type="dword" data="00151515"/>

IC-Tech Terms of Service

1. Terms

By accessing an IC-Tech website, you are agreeing to be bound by these terms of service, all applicable laws and regulations, and agree that you are responsible for compliance with any applicable local laws. If you do not agree with any of these terms, you are prohibited from using or accessing this site. The materials contained in this website are protected by applicable copyright and trademark law.

2. Use License

  1. Permission is granted to temporarily download one copy of the materials (information or software) on IC-Tech's website for personal, non-commercial transitory viewing only. This is the grant of a license, not a transfer of title, and under this license you may not:
  • modify or copy the materials;
  • use the materials for any commercial purpose, or for any public display (commercial or non-commercial);
  • attempt to decompile or reverse engineer any software contained on IC-Tech's website;
@IC-Tech
IC-Tech / email-service-problems.md
Last active August 23, 2020 00:14
IC-Tech Email Service Problems

IC-Tech Email Service Problems

IC-Tech is a small brand that created by Imesh Chamara. IC-Tech build nonprofit, open-source applications, websites, web services. We hate to be categorized by people's money. Therefore, we provide our services to everyone for free and equally.

Because our services are not profitable, we doesn't have money to maintenance good server.The current IC-Tech website is serve by Vercel at no cost. (This is the 3rd IC-Tech website, we had to change twice before) We do not have the money to get a mail server. We currently have Yahoo! SMTP server for the primary process. Our main problem is that the server take 1-10 minutes to send an email. We tried few other free services, but nothing got better. We apologize for not being able to provide a better service. hope you understand our problems.

Donations: paypal, ko-fi, [patreon](https://www.patreon.com/imeshchamar

@IC-Tech
IC-Tech / ease.js
Created October 27, 2020 09:02
Easing functions
const ease = (() => {
const E = Math.pow,
b = Math.sqrt,
A = Math.sin,
w = Math.cos,
I = Math.PI,
O = 1.70158,
T = 1.525 * O,
C = O + 1,
x = 2 * I / 3,
@IC-Tech
IC-Tech / client.c
Created March 8, 2021 12:32
Simple TCP
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
void error(const char *msg)
@IC-Tech
IC-Tech / enc.sh
Created May 5, 2021 12:22
enc.sh for simply encrypt and decrypt files
#! /bin/bash
c=$1
shift
if [[ $c == 'gen' ]] || [[ $c == 'generate' ]] ; then
openssl rand -hex 16 > enc.key
openssl rand -hex 16 > iv.key
elif [[ $c == 'enc' ]] || [[ $c == 'encrypt' ]] ; then
openssl dgst -md5 "$@" > files.md5
for f in "$@" ; do
echo "encrypting $f"
@IC-Tech
IC-Tech / pastebin.sh
Created May 5, 2021 16:51
pastebin.sh easy cli uploads
#! /bin/bash
dev_key_file="$HOME/.config/pastebin/developer.key"
user_key_file="$HOME/.config/pastebin/user.key"
warn_file="$HOME/.config/pastebin/no_user_key"
if [[ ! -r $dev_key_file ]]; then
nl=1
echo 'warning developer key is missing, you cannot upload files without a key. run --help'
dev_key=''
@IC-Tech
IC-Tech / translate.google.com.css
Last active October 4, 2021 16:16
Google Translate Stylus
html {
--col0: #2f343f;
--col1: #404552;
--col2: #d3dbe4;
--col3: #262a33;
--col4: #d3dbe4ad;
--col5: #4393f2;
}
body {
color: var(--col2) !important;
@IC-Tech
IC-Tech / check_webp.js
Created July 22, 2021 00:39
test webp features
async function check_webp(f){const a={lossy:"UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",lossless:"UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==",alpha:"UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA==",animation:"UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"},b=b=>new Promise(c=>{var d=new Image();d.onload=a=>c(d.width>0&&d.height>0);d.onerror=a=>c(!1);d.src="data:image/webp;base64,"+a[b]});if(f){return await b(f)}var c=Object.keys(a);for(var i=0;i<c.length;i+=1){if(!(await b(c[i]))){return!1}}return!0}