Skip to content

Instantly share code, notes, and snippets.

View storenth's full-sized avatar

Kirill Zhdanov storenth

View GitHub Profile
# oh-my-zsh custum agnoster theme
# .oh-my-zsh/custom/themes/agnoster.zsh-theme
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
# macOs Catalina setup
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export PATH=$HOME/bin:/usr/bin:/usr/local/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:$PATH
export PATH=$HOME/Library/Python/3.7/bin:$PATH
# HACKER TOOLS
export PATH=$HOME//Documents/hackerrank/httprobe:$PATH
# Java
@storenth
storenth / gist:2bf8894fce2beda036b8b084511dbb0b
Created November 5, 2019 03:42 — forked from stuart11n/gist:9628955
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
@storenth
storenth / puppeteer-prettier.js
Created August 23, 2019 05:20 — forked from jsoverson/puppeteer-prettier.js
Intercept and prettify every script
const puppeteer = require('puppeteer');
const prettier = require('prettier');
const atob = require('atob');
const btoa = require('btoa');
const requestCache = new Map();
const urlPatterns = [
'*'
]
@storenth
storenth / login_test.scala
Created July 31, 2019 06:37 — forked from alanphil/login_test.scala
Gatling login example and showing how to pull out the HTTP authorization header into a variable
package test
import scala.concurrent.duration._
import io.gatling.core.Predef._
import io.gatling.http.Predef._
import io.gatling.jdbc.Predef._
class LoginTest extends Simulation {
@storenth
storenth / compro-p2p.py
Created December 10, 2018 11:21 — forked from Compro-Prasad/compro-p2p.py
P2P client
#!/usr/bin/python3
import socket
import threading
from time import sleep
max_peers = 4
port = 3333
thread_list = []
@storenth
storenth / p2p-vs-clientserver.py
Created December 10, 2018 11:18 — forked from oalee/p2p-vs-clientserver.py
p2p vs client server time
# -*- coding: utf-8 -*-
"""
Spyder Editor
"""
import plotly.offline as py
import plotly.graph_objs as go
@storenth
storenth / client.py
Created December 10, 2018 11:15 — forked from abendayan/client.py
p2p
#!/usr/bin/env python
"""UDP hole punching client."""
from twisted.internet.protocol import DatagramProtocol
from twisted.internet import reactor
import time
import sys
class ClientProtocol(DatagramProtocol):
"""
@storenth
storenth / Vagrantfile
Last active November 22, 2018 13:53
[vagrant] linux host setup with windows 10 guest
# -*- mode: ruby -*-
# vi: set ft=ruby :
# vagrant box
# https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/
#$script = <<-SCRIPT
#/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe New-Item -ItemType directory -Path "C:\Users\IEUser\vagrant_data\new_powershell"
#python vagrant_data\test_python.py
#SCRIPT