Skip to content

Instantly share code, notes, and snippets.

💤
sleeping...

evandrocoan

💤
sleeping...
Block or report user

Report or block evandrocoan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View mmap_python_usage.md
import mmap
import time
import sys
import json

# https://docs.python.org/3.9/library/mmap.html
# https://blog.askesis.pl/post/2019/02/mmap.html
memory = mmap.mmap( -1, 20, access=mmap.ACCESS_WRITE )
View sublime_text_full_regex_build.md
View monitor_forks_creation.sh
```sh
#!/bin/bash
val1=`vmstat -f 1 | cut -d 'f' -f1 | tr -d " \t\n\r"`
while true
do
val2=`vmstat -f 1 | cut -d 'f' -f1 | tr -d " \t\n\r"`
result=$(($val2 - $val1))
echo $result new forks
View sublime_text_selection_modified_demonstration.md
import sublime
import sublime_plugin

class MaxPaneEvents(sublime_plugin.EventListener):

    def on_selection_modified(self, view):
        print( 'I am on_selection_modified...', view.id() )
View running_python_regex_from_bash.sh
#!/bin/bash
outversions="
Things 17.16 I am not 12.23.1 interested
36.35.17
35.34.16
24.23.5
19.18
3.
View example_installation_model.sh.md

After creating the file ./installation_model.sh with the installation_model.sh snippet contents bellow, change/tweak it as you would like.

Then, you can run/use it like the following, i.e., by importing/sourcing it and calling its convenience functions.

You can see all confience functions by calling the help command. Just see the first usage example sample output.

  1. https://github.com/evandrocoan/MyLinuxSettings/blob/master/.local/bin/installation_model.sh

test.sh

View Remove files from all commits with bfg.jar.md
# Remove files from all commits with bfg.jar.md
# Copyright (c) 2019 Evandro Coan
# 
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
View My Google Chrome Extensions.md
# My Google Chrome Extensions.md
# Copyright (c) 2019 Evandro Coan
# 
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
View Debug Linux Application.txt
# Debug Linux Application.txt
# Copyright (c) 2019 Evandro Coan
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
You can’t perform that action at this time.