Skip to content

Instantly share code, notes, and snippets.

View Gictorbit's full-sized avatar
😎

Viktor Ghorbali Gictorbit

😎
View GitHub Profile
@ahbanavi
ahbanavi / amozeshyar_bypass_igap.user.js
Created February 20, 2021 11:05
Bypass Amozeshyar iGap code
// ==UserScript==
// @name Amozeshyar Bypass iGap
// @version 1
// @description Bypass Amozeshyar iGap code
// @author Yedoost
// @match http://stdn.iau.ac.ir/Student/captchaProcess
// @match http://stdn.iau.ac.ir/Student/manageAccount
// @grant none
// ==/UserScript==
@duyfken
duyfken / miui-fastboot-howto.rst
Last active September 23, 2023 15:49 — forked from j-jith/miui-fastboot-howto.rst
How to flash MIUI Fastboot ROM from Linux

How to flash MIUI Fastboot ROM from Linux

  • Download the fastboot ROM suitable for your device from the Xiaomi Firmware Updater and extract the downloaded archive
  • Download and extract the official Android SDK Platform Tools or install them using your package manager of choice.
    • If you are using the official platform tools, make sure adb and fastboot (components of platform-tools) are in your path
function respHandler() {
data = JSON.parse(this.responseText)
price = data.data.webengage.price
cells = document.getElementsByClassName('post-fields-item')
last = cells[cells.length - 1]
clone = last.cloneNode(true)
clone.getElementsByTagName('span')[0].innerText = 'قیمت'
clone.getElementsByTagName('div')[0].innerText = Number(price).toLocaleString()
last.parentElement.appendChild(clone)
}
@joedborg
joedborg / launch_vm.sh
Last active October 8, 2024 03:38
LXD Ubuntu VM launch and disk resize
#!/bin/env bash
set -e
readonly VM="banana"
readonly CPU="8"
readonly MEM="8GB"
readonly DSK="120GB"
lxc init images:ubuntu/focal ${VM} -p default -p vm --vm
#!/usr/bin/python
# -*- coding: utf-8 -*-
import ssl
import socket
import os
import sys
from argparse import ArgumentParser
from argparse import RawTextHelpFormatter
from threading import Thread
@hollemawoolpert
hollemawoolpert / README.md
Last active April 8, 2024 01:16
Simple VRP with Google Developer Resources

Binder

Simple VRP with Google Developer Resources¶

Demonstrates a solution for the simple multi-vehicle routing problem (VRP) using a combination of Google libraries and services. Sample depot and shipment locations randomly chosen in the San Antonio, TX metro area. Distances and times are based on Google's road network.

Getting Started

You will need a Google Maps Platform API Key.

Run on binder

@franciscocpg
franciscocpg / README.md
Last active May 13, 2024 08:48
Import mitm certificate to CA in arch linux
  1. After installing mitmproxy run it (just type mitmproxy) in a terminal session and quit. This will create the necessaries certificates files at ~/.mitmproxy.

  2. Extract the certificate to .crt format:
    openssl x509 -in ~/.mitmproxy/mitmproxy-ca.pem -inform PEM -out ca.crt

  3. Trust the certificate into CA:
    sudo trust anchor ca.crt

  4. Run the mitmproxy again

@alirezanet
alirezanet / Iran96-97.json
Last active March 17, 2024 14:41
List of provinces, states and cities of Iran with geographical coordinates (96-97 update)
[
{
"latitude": "34° 31' 24.924",
"longitude": "50° 0' 20.866",
"province": "مرکزی",
"state": "آشتیان",
"city": "آشتیان"
},
{
"latitude": "33° 40' 29.197",
@aHisayoshiSuehiro
aHisayoshiSuehiro / go-iptables-sample.go
Created November 6, 2017 04:04
go-iptables-sample
package main
import (
"fmt"
"reflect"
"github.com/coreos/go-iptables/iptables"
)
func contains(list []string, value string) bool {
@MaxXor
MaxXor / gpu-passthrough.md
Created October 29, 2017 14:47
Arch GPU Passthrough Summary

Arch Linux GPU-Passthrough

A quick guide on how to setup a GPU-Passthorugh. Below are some of my Resources

The Arch Wiki is the goto place for additional information and performance tweaks like CPU-Pinning.

Requirements

  • IGPU or second dedicated GPU for Host system (unless you want to go the hard way and use one GPU for HOST and GUEST)