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 February 28, 2024 03:48 — 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 May 1, 2024 20:00
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
@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,