Skip to content

Instantly share code, notes, and snippets.

View GiuseppeMP's full-sized avatar
:bowtie:
https://giuseppematheus.com/

Giuseppe Matheus GiuseppeMP

:bowtie:
https://giuseppematheus.com/
View GitHub Profile
$w.onReady(function () {
$w.onReady(()=>{
let viewcounting = 0; //initiate viewportenter count
$w('#text1').onViewportEnter(() => {
viewcounting++; //increment viewport count by 1 on entry
if (viewcounting === 1) { //if statement to check if viewport entry count = 1
let count = 0; //starting number
const endTime = 100; // ending number
const interval = 10; // speed of the count in ms
@GiuseppeMP
GiuseppeMP / ssh-forward-clipboard.md
Created March 12, 2024 00:00 — forked from dergachev/ssh-forward-clipboard.md
Forward your clipboard via SSH reverse tunnels

Exposing your clipboard over SSH

I frequently administer remote servers over SSH, and need to copy data to my clipboard. If the text I want to copy all fits on one screen, then I simply select it with my mouse and press CMD-C, which asks relies on m y terminal emulator (xterm2) to throw it to the clipboard.

This isn't practical for larger texts, like when I want to copy the whole contents of a file.

If I had been editing large-file.txt locally, I could easily copy its contents by using the pbcopy command:

@GiuseppeMP
GiuseppeMP / debug-jvm.md
Last active July 21, 2023 22:50
Recipes - Debbuging jvm

options

suspend = y, if you want that application waits the debbuger to start.

address = 5005 or number, the remote debugger port.

java -jar:

local status, bufferline = pcall(require, "bufferline")
if not status then
return
end
bufferline.setup({
options = {
mode = "tabs",
numbers = "none",
@GiuseppeMP
GiuseppeMP / Dockerfile
Created April 26, 2023 01:33 — forked from BrutalSimplicity/Dockerfile
Dockerfile with asdf + docker install bits
FROM debian:latest
# Install basic dev packages
RUN apt-get clean && apt-get update && apt-get -y install --no-install-recommends \
apt-utils \
openssh-client \
git \
gnupg2 \
dirmngr \
iproute2 \
// Key.on('z', ['ctrl', 'cmd'], () => {
// const screen = Screen.main().flippedVisibleFrame();
// const window = Window.focused();
// if (window) {
// window.setTopLeft({
// x: screen.x + (screen.width / 2) - (window.frame().width / 2),
// y: screen.y + (screen.height / 2) - (window.frame().height / 2)
// });
// }
@GiuseppeMP
GiuseppeMP / vim-test.vim
Created June 13, 2022 20:04 — forked from dansomething/vim-test.vim
vim-test with vim-dispatch strategy for a multi-module Maven, Java and Groovy project using Spock
" https://github.com/janko-m/vim-test
"------------------------------------
let test#strategy = "dispatch"
let test#enabled_runners = ["groovy#maventest", "java#maventest"]
let g:test#groovy#maventest#defaultoptions = '-DfailIfNoTests=true -Dmaven.test.redirectTestOutputToFile=false'
let g:test#groovy#maventest#options = g:test#groovy#maventest#defaultoptions . ' -DargLine="' . $JAVA_OPTS . '"'
let g:test#groovy#maventest#executable = 'mw test'
function! TestCoverage()
unlet! g:test#last_command g:test#last_position g:test#last_strategy
@GiuseppeMP
GiuseppeMP / alacrity.yml
Created January 29, 2022 01:18 — forked from irfn/alacrity.yml
alacrity config
env:
TERM: xterm-256color
window:
dimensions:
columns: 80
lines: 24
padding:
x: 2
@GiuseppeMP
GiuseppeMP / vimrc-22-01-22
Created January 23, 2022 01:11
vim-stuffs
" Specify a directory for plugins
" - For Neovim: stdpath('data') . '/plugged'
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.dotfiles/.vim/plugged')
" Shorthand notation; fetches https://github.com/junegunn/vim-easy-align
Plug 'junegunn/vim-easy-align'
" Think of sensible.vim as one step above 'nocompatible' mode: a universal set of defaults that (hopefully) everyone can agree on.
Plug 'tpope/vim-sensible'
{
"editor.fontFamily": "Cascadia Code, Roboto Mono, Fira Code, Menlo, Monaco, 'Courier New', monospace",
"editor.fontLigatures": true,
"maven.terminal.useJavaHome": true,
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"files.exclude": {
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true,