Skip to content

Instantly share code, notes, and snippets.

View Ruttmann's full-sized avatar
🤘

Marlon Erich Ruttmann Ruttmann

🤘
View GitHub Profile
@Ruttmann
Ruttmann / Comands_utils.md
Last active April 29, 2019 12:51
Useful Linux commands

Localização Security.xml (senha de database e outras configurações de segurança)

/opt/IBM/WebSphere/Profiles/dmgr/config/cells/ipw2-cell

Local onde ficam os arquivos EAR instalados no servidor (quando pedem pra instalar o EAR de DEV em INT, por exemplo)

PROFILE_HOME/config/cells/CELL_NAME/applications

Limpar arquivos temporários no WAS (quando aplicações não aparece na applications list)

/opt/IBM/WebSphere/Profiles/dmgr/config/cells/ipw2-cell/applications

@Ruttmann
Ruttmann / Lu Robot.java
Last active April 29, 2019 12:58
Source-code for Lu Robot.
import java.awt.AWTException;
import java.awt.Robot;
import java.awt.event.KeyEvent;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
public class LuRobot {

SYNC DATABASES

sudo pacman -Syyu

SEARCH MANJARO REPOS

pacman -Ss [package name]

SEARCH MANJARO SYSTEM

pacman -Qs [package name]

pacman -Qi [package name] <--- MORE DETAILS

@Ruttmann
Ruttmann / es6-hints.js
Last active April 16, 2019 13:53
JS ES6
/*
Desestruturação:
*/
const usuario = {
nome: 'Marlon',
idade: 26,
endereco: {
cidade: 'Blumenau',
estado: 'SC'
@Ruttmann
Ruttmann / remove-expired-index.sh
Created May 15, 2019 19:12 — forked from yumminhuang/remove-expired-index.sh
Remove Elasticsearch indices that older than a given date.
#!/usr/bin/env bash
#set -x
usage()
{
cat << EOF
remove-expired-index.sh
@Ruttmann
Ruttmann / RN_utils.md
Created June 15, 2019 13:31
React Native utils

Shake the device (for opening DEV settings):

adb shell input keyevent 82

@Ruttmann
Ruttmann / reset.css
Created June 22, 2019 15:52
CSS code to Reset browser standard behavior for compatibility.
* {
margin: 0;
padding: 0;
border: 0;
}
body {
font-family: "Open Sans", sans-serif;
font-size: 25px;
}
ul, ol, li {
@Ruttmann
Ruttmann / settings.json
Last active July 29, 2019 17:15
VSCode settings.
{
"window.titleBarStyle": "custom",
"window.zoomLevel": 0,
"workbench.startupEditor": "none",
"workbench.colorTheme": "Dracula",
"workbench.iconTheme": "material-icon-theme",
"css.colorDecorators.enable": false,
@Ruttmann
Ruttmann / .editorconfig
Created June 27, 2019 03:28
EditorConfig standard settings.
root = true
[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
@Ruttmann
Ruttmann / .eslintrc
Created June 27, 2019 03:29
ESLint configs for NodeJS projects.
module.exports = {
env: {
es6: true,
node: true,
},
extends: [
'airbnb-base',
'prettier'
],
plugins: [ 'prettier' ],