Skip to content

Instantly share code, notes, and snippets.

View zeekhuge's full-sized avatar

Zubeen Tolani zeekhuge

View GitHub Profile
(intitle:"bitcoin" OR intitle:"crypto" OR intitle:"Cryptocurrency" OR intitle:"blockchain") AND (intitle:"europe" OR intitle:"EU" OR intitle:"eu" OR intitle:"european" OR intitle:europe) AND ("hack" OR "scam" OR "ransome" OR "regulation" OR "regulatory")
@zeekhuge
zeekhuge / main.dart
Last active July 7, 2020 19:13
Simple continuous counter flutter app
import 'package:flutter/material.dart';
void main () {
runApp(
MaterialApp(
title: "Simple continuous counter UI",
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: Scaffold(
set $mod Mod4
#set $lock_command "xwobf -s 4 /tmp/screen_lock.png && i3lock -i /tmp/screen_lock.png -I 10 -n -e"
set $lock_command "xscreensaver-command -lock"
set $lock_suspend "xscreensaver-command -lock && systemctl suspend"
#set $fix_external_monitor xrandr --output $screeen_external_xrandr_name --auto --above $screen_builtIn_xrandr_name
#set $screen_shot_command exec "A=~/Pictures/Screenshots/screenshot_%Y-%m-%d_%H:%M:%S.png && scrot $A && notify-send -t 500 'Screenshot saved as ' $A"
#!/bin/bash
## script to fix mac on vbox
## set up these variables and run the script
VBOX_NAME='MacOS'
RESOLUTION_W=1366
RESOLUTION_H=768
COLOR_DEPTH=32
#! /bin/bash
## Who and whats the catch ?
#
# Copyright 2018 ZeekHuge <[email protected]>
#
# Disclaimer : This program is not 100% accurate, and while it may not suggest
# an epub file being malicious, the file can still contain any malicious code.
# Use this program completely at your own risk, and the author is no where
# obliged to provide assistance, guarantee, warranty or any kind of compensation
#!/usr/bin/env bash
#
# Instruction :
# - Save this file locally
# - Open terminal
# - execute command "source </path/to/this/file>
# - To get the smallest possible promt, execute "zbar 0"
# - Otherwise, execute command "zbar"
#
@zeekhuge
zeekhuge / eyeProtector.sh
Created November 30, 2017 17:17
A simple bash script that turns off your screen for `SECONDS_TO_CLOSE_EYE` after `MINUTES_TO_WORK` long work to force you relax your eyes.
#!/bin/bash
#
# Set this script to start on login using `StartUp Application`
#
########-- CHANGE THESE FOR DIFFERENT BEHAVIOUR --#############
MINUTES_TO_WORK=45
SECONDS_TO_CLOSE_EYE=60
###############################################################
@zeekhuge
zeekhuge / wsNamer.sh
Last active June 5, 2017 20:11
Bash script to easily name the viewports/workspaces on Compiz based systems
#!/bin/bash
#
# Copyrigh 2017 Zubeen Tolani aka ZeekHuge <[email protected]>
#
# Use 'wsNamer.sh -s' to set the name.
# For ease, one can map it to a keyboard shortcut.
#
# Note : make necessary modifications before use.
#
# Works for Compiz window manager with Unity viewports/workspaces
@zeekhuge
zeekhuge / .vimrc
Last active January 30, 2019 08:35
" to start vim-plug plugin manager
call plug#begin('~/.config/nvim/bundle/')
Plug '~/.vim/bundle/ale'
Plug '~/.vim/bundle/asyncrun.vim'
" we probably do not want this, we already have YCM
" Plug '~/.vim/bundle/AutoComplPop'
Plug '~/.vim/bundle/ctrlp.vim'
@zeekhuge
zeekhuge / yet_another_dmesg.txt
Created August 1, 2016 12:17
to show mentors line number 53
[ +0.003604] /root/bs/driver/beaglescope_driver.c: set_pru_sampling_frequency
[ +0.000030] 115, 57, 57
[ +0.002541] Requested sampling freqeuency 850000
[ +0.004713] Available sampling freqeuency 854700
[ +3.400993] /root/bs/driver/beaglescope_driver.c: preenable
[ +0.000054] /root/bs/driver/beaglescope_driver.c: set_pru_read_mode
[ +0.000025] misc_config_data = 2147483649
[ +0.000022] /root/bs/driver/beaglescope_driver.c: beaglescope_read_from_pru
[ +0.000021] /root/bs/driver/beaglescope_driver.c: here 1V
[ +0.000045] /root/bs/driver/beaglescope_driver.c: here 2