Skip to content

Instantly share code, notes, and snippets.

View Tushkiz's full-sized avatar

Tushar Sonawane Tushkiz

View GitHub Profile
@Tushkiz
Tushkiz / ParticipantTileApp.tsx
Last active January 17, 2024 09:15
show/hide name tag dyte component on mouse move
import { useCallback, useEffect, useRef, useState } from 'react';
import DyteClient from '@dytesdk/web-core';
import { DyteGrid, DyteUIBuilder, generateConfig } from '@dytesdk/react-ui-kit';
type UIConfig = ReturnType<typeof generateConfig>['config'];
function ParticipantTileApp() {
const [meeting, setMeeting] = useState<DyteClient | null>(null);
const [uiConfig, setUIConfig] = useState<UIConfig>();
const timerId = useRef<number>();
@Tushkiz
Tushkiz / PortraitMeeting.tsx
Last active January 17, 2024 09:15
Portrait Meeting Layout using Dyte
export default function PortraitMeeting() {
const { meeting } = useDyteMeeting();
return (
<div
style={{
display: 'flex',
flexDirection: 'column',
backgroundColor: 'rgb(0 0 0)',
height: '100%',
@Tushkiz
Tushkiz / bg-addons.html
Last active January 17, 2024 09:16
Dyte Video Background in vanilla html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Virtual Background Addons | Dyte UI Kit</title>
<!-- Import helper to load UI Kit components -->

Keybase proof

I hereby claim:

  • I am tushkiz on github.

  • I am tushkiz (https://keybase.io/tushkiz) on keybase.

  • I have a public key ASDjhNVj97ZR0ajgyFIiADImZDcP51fwlVO0V6OqsiHcTwo

<!DOCTYPE html>
<html>
<head>
<title>Nearest Chariging Station</title>
<style>
#map {
height: 500px;
width: 100%;
}

Setup Mac OS X Mountain Lion or Mavericks

Edit: I few months ago I got a new laptop and did the same thing on Mavericks.

I just replaced the hard drive of my mbp and decided to do a clean install of Mountain Lion (10.8.5) since I was still using Snow Leopard (10.6.8).

I kinda regret for not using Boxen to automate the

##Instructions to protect your services?

  1. Check whether your website, apps or any products use OpenSSL and whether they are vulnerable to the attack. There is a neat site at http://filippo.io/Heartbleed/ where you can quickly run the check.
  2. Update OpenSSL to the latest version which fixes the defect – this is not an automatic process in many cases. See the advisory here.
  3. Check the state of the your SSL configuration for your website and mail services. You can use this SSL checker and CheckTLS for mail servers. This bug is the least of your worries if you are using the technology badly in the first place.
  4. Take a look at the more technical Q&A at http://heartbleed.com/ if you have further questions about the bug or how to remediate it.
@Tushkiz
Tushkiz / List.js
Created February 27, 2014 08:35
Simple List
function List() {
this.head = this.tail = null
}
List.prototype.add = function add(node) {
if (this.head) {
node.next = this.head;
this.head.prev = node;
}
this.head = node;
@Tushkiz
Tushkiz / gist:7541601
Created November 19, 2013 07:28 — forked from oli/gist:1637874
# ~/.gitconfig from @boblet
# initially based on http://rails.wincent.com/wiki/Git_quickstart
[core]
excludesfile = /Users/oli/.gitignore
legacyheaders = false # >git 1.5
quotepath = false
# http://stackoverflow.com/questions/136178/git-diff-handling-long-lines
pager = less -r
# if ↑ doesn’t work, try: pager = less -+$LESS -FRX

Sublime Text 2 - Useful Shortcuts

Tested in Mac OS X: super == command

Open/Goto


  • super+t: go to file
  • super+ctrl+p: go to project
  • super+r: go to methods