Skip to content

Instantly share code, notes, and snippets.

View muke5hy's full-sized avatar
:octocat:
Learning the hard way!

Mukesh Yadav muke5hy

:octocat:
Learning the hard way!
View GitHub Profile
@muke5hy
muke5hy / build_web3_apps.md
Created April 20, 2022 14:06 — forked from nguyer/build_web3_apps.md
Build Ethereum Web3 Apps Quickly Using the Latest Tools

Workshop Guide - Building Apps on FireFly

Welcome! We're glad you're here! This is the guide that we will be going through during the workshop.

Before the workshop

IMPORTANT: Please make sure you have installed the software listed in this section before the workshop so that we can hit the ground running when the workshop starts.

Install Docker

@muke5hy
muke5hy / mysql-mirror.sh
Created November 20, 2021 07:43 — forked from peta/mysql-mirror.sh
Simple bash script for migrating MySQL databases (including all associated user accounts) to a remote server. Use it with care because the usage of mysqldump in this script solely relies on default values which may vary greatly on your machine. (mysqldump is a powerful tool, so don't miss `man mysqldump`).
#!/bin/bash
# Copyright (c) 2005 nixCraft project <http://cyberciti.biz/fb/>
# This script is licensed under GNU GPL version 2.0 or above
# Source: http://www.cyberciti.biz/tips/move-mysql-users-privileges-grants-from-one-host-to-new-host.html
# Author Vivek Gite <vivek@nixcraft.com>,
# Peter Geil <code@petergeil.name>
# ------------------------------------------------------------
# SETME First - local mysql user/pass
_lusr="src-db-user"
_lpass="src-db-pw"
@muke5hy
muke5hy / iterm2.md
Created January 7, 2021 14:10 — forked from squarism/iterm2.md
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@muke5hy
muke5hy / README.md
Last active May 8, 2020 07:29 — forked from oodavid/README.md
Backup MySQL to Amazon S3
@muke5hy
muke5hy / RstudioServerSetup.sh
Created May 13, 2019 12:01 — forked from kdkorthauer/RstudioServerSetup.sh
Bash script to set up R, install a few R packages, and get Rstudio Server running on ubuntu.
sudo sh -c 'echo "deb http://cran.rstudio.com/bin/linux/ubuntu trusty/" >> /etc/apt/sources.list'
gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9
gpg -a --export E084DAB9 | sudo apt-key add -
sudo apt-get update
sudo apt-get -y install r-base libapparmor1 libcurl4-gnutls-dev libxml2-dev libssl-dev gdebi-core
sudo apt-get install libcairo2-dev
sudo apt-get install libxt-dev
sudo apt-get install git-core
sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
@muke5hy
muke5hy / connect.js
Created May 2, 2019 11:13
New connection from search
// 1. load https://www.linkedin.com/search/results/people/?facetGeoRegion=["us:0","gb:0","ae:9963","ca:0","de:0","sg:0"]&facetNetwork=["S"]&keywords=trading&origin=GLOBAL_SEARCH_HEADER
// 2. make sure your LinkedIn is in English
// 3. paste this script on chrome dev tools at your own risk
async function moreConnectionsPlease() {
// maximum limit of Connect buttons clicked
const LIMIT = 5;
// wait in ms before each scroll
const SCROLL_TIMEOUT = 600;
// bulk scroll will scroll this amount of times
@muke5hy
muke5hy / WhatsAppAutomationScript.js
Created March 15, 2019 04:01 — forked from techguybiswa/WhatsAppAutomationScript.js
What's App Automated "New Year Wish" Script
let listOfRecentContacts = document.getElementsByClassName("_3j7s9");
console.log("listOfRecentContacts.length = " + listOfRecentContacts.length);
var eventToSwitchMessageBox = new MouseEvent('mousedown', {
bubbles: true,
});
let count =1;
let openMessageBox = setInterval(function(){
// if(count>listOfRecentContacts.length) {
if(count>5) {
console.log("Clearing interval with clearInterval...");
print("This is python")
@muke5hy
muke5hy / ServerlessDeployBot.yml
Created January 6, 2018 10:16 — forked from ncloward/ServerlessDeployBot.yml
Serverless Deploy Bot Permissions
---
AWSTemplateFormatVersion: '2010-09-09'
Description: 'Cloudformation stack to manage permission to deploy a serverless service'
Parameters:
ServiceName:
Description: Name of the Service you want to deploy
Type: String
Resources:
@muke5hy
muke5hy / IntallPerconaOSX.md
Created October 4, 2017 14:22 — forked from amura2406/IntallPerconaOSX.md
Steb-by-Step to Install Percona Server (Alternative to MySQL) on Mac OS X 10.11.6 (El Capitan)

Install percona-server.

Install from homebrew

brew install percona-server

chown /usr/local

sudo chown -R <username> /usr/local