Skip to content

Instantly share code, notes, and snippets.

View rezzmk's full-sized avatar

RezZ' rezzmk

View GitHub Profile
let mapleader = " "
" Fast saving with leader w
nmap <leader>w :w!<cr>
" Disable highlight when <leader><cr> is pressed
map <silent> <leader><cr> :noh<cr>
" Smart way to move between windows
map <C-j> <C-W>j
" When started as "evim", evim.vim will already have done these settings.
if v:progname =~? "evim"
finish
endif
" Bail out if something that ran earlier, e.g. a system wide vimrc, does not
" want Vim to use these default values.
if exists('skip_defaults_vim')
finish
endif
source ~/.vimrc_base
source ~/.vimrc_remaps_common
set easymotion
set nerdtree
set commentary
set ideajoin
set ideastatusicon=gray
set idearefactormode=keep
set highlightedyank
source ~/.vimrc_base
source ~/.vimrc_remaps_common
" ----- Ideavim specific
set easymotion
set nerdtree
set commentary
set ideajoin
set ideastatusicon=gray
set idearefactormode=keep
#!/usr/bin/env python3
import subprocess
import paramiko
FIREWALL_IPS = [IPs DA(S) FIREWALL(S)]
SSH_USERNAME = "user"
SSH_PASSWORD = "password"
ADDRESS_GROUP_NAME = "BLACKLIST"
FIREWALL_RULESET_NAME = "BLACKLIST-RULESET"
@rezzmk
rezzmk / AndroidManifest-result.xml
Created March 26, 2023 12:21
AndroidManifest parsing result
Package_name:
pt.pingodoce
Allow_backup:
false
Debuggable:
None
Test_only:
@rezzmk
rezzmk / parse.py
Last active March 19, 2023 11:21
Python Parse AndroidManifest
import xml.etree.ElementTree as ET
import sys
def parse(file_path):
tree = ET.parse(file_path)
root = tree.getroot()
ns = {"android": "http://schemas.android.com/apk/res/android"}
package_name = root.attrib["package"]
@rezzmk
rezzmk / Program.cs
Last active December 4, 2022 19:21
Rotate screen application
using System;
using System.Runtime.InteropServices;
namespace RotateScreen {
internal static class Program {
public static void Main(string[] args) {
Rotate(2, DisplayOrientation.DEG0);
}
private enum DisplayOrientation {
package drawing;
public abstract class BaseChart implements IChart {
ColorImage chart;
Color entryColor;
int entryWidth;
int gapBetweenEntries;
BaseChart(int chartWidth, int chartHeight) {
this.chart = new ColorImage(chartWidth, chartHeight);