Skip to content

Instantly share code, notes, and snippets.

View arcolife's full-sized avatar

Archit Sharma arcolife

View GitHub Profile
@osolmaz
osolmaz / zoom_set_normal_volume.sh
Created March 24, 2020 14:50
Bash script to adjust Zoom meeting microphone and speaker volume to normal levels
#!/bin/sh
LANGUAGE="en_US"
app_name="ZOOM VoiceEngine"
current_sink_num=''
sink_num_check=''
app_name_check=''
from casperlabs_client import CasperLabsClient, bundled_contract
from casperlabs_client.abi import ABI
import os
def read_hex_id(file_name):
with open(file_name) as f:
return f.read().strip()
REPO_DIR = f"{os.getenv('HOME')}/CasperLabs"
STORED_TRANSFER_WASM = f"{REPO_DIR}/execution-engine/target/wasm32-unknown-unknown/release/transfer_to_account_u512_stored.wasm"
@PatrickLang
PatrickLang / README.md
Last active August 14, 2020 16:46
Minikube & Flannel

Steps

  1. Setup Hyper-V and create an external switch
  2. Install Minikube for Windows
@robhrt7
robhrt7 / MySQL_5-7_macOS.md
Last active September 7, 2024 15:12 — forked from nrollr/MySQL_macOS_Sierra.md
Install MySQL 5.7 on macOS using Homebrew

This is a fork of original gist https://gist.github.com/nrollr/3f57fc15ded7dddddcc4e82fe137b58e, with slight changes on pointing to 5.7 version branch, instead of 8 (latest default of MySQL in Hombrew).

Install MySQL 5.7 on macOS

This procedure explains how to install MySQL using Homebrew on macOS (Sierra 10.12 and up)

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.
@zhangjiannan
zhangjiannan / gist:e2cc1ea22c7a0e5da3dc134d5c89072a
Created January 14, 2018 02:43
TrueChain ERC20 Distribution
/**
* Overflow aware uint math functions.
*
* Inspired by https://github.com/MakerDAO/maker-otc/blob/master/contracts/simple_market.sol
*/
pragma solidity ^0.4.11;
/**
* ERC 20 token
*
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import ovirtsdk4 as sdk
import ovirtsdk4.types as types
import time
import sys
def create_all():
try:
@ozancaglayan
ozancaglayan / node_gpu_exporter.py
Created November 29, 2017 11:16
NVIDIA GPU textfile exporter
#!/usr/bin/env python3
import time
import atexit
from collections import OrderedDict
from py3nvml import py3nvml as nv
from prometheus_client import Gauge, CollectorRegistry
from prometheus_client import write_to_textfile
@arcolife
arcolife / encrypt_with_public_key.md
Last active August 4, 2018 00:54
gpg keys generation / import / encryption with someone's public key

Import someone's public GPG key

# Down his public key and saving it to the file key.asc.
# Then use the following command to add it to your keyring:
$ gpg --import <path to key.asc>

# ..check if imported successfully:
$  gpg --list-keys
@Pulimet
Pulimet / AdbCommands
Last active September 20, 2024 06:31
Adb useful commands list
Hi All!
I've recently launched a tool that wraps many of the commands here with a user interface. This desktop application is currently available for macOS. There's a roadmap outlining planned features for the near future.
Feel free to request any features you'd like to see, and I'll prioritize them accordingly.
One of the most important aspects of this application is that every command executed behind the scenes is displayed in a special log section. This allows you to see exactly what’s happening and learn from it.
Here's the link to the repository: https://github.com/Pulimet/ADBugger
App Description:
ADBugger is a desktop tool designed for debugging and QA of Android devices and emulators. It simplifies testing, debugging, and performance analysis by offering device management, automated testing, log analysis, and remote control capabilities. This ensures smooth app performance across various setups.
@Ladas
Ladas / ovirt_count_records.rb
Created August 1, 2017 07:04
Count ovirt records, run as: bundle exec rails r ovirt_count_records.rb
classes = [
ManageIQ::Providers::Redhat::InfraManager,
EmsFolder,
EmsCluster,
ResourcePool,
Host,
Vm,
Relationship,
Storage,
MiqEventDefinition,