Skip to content

Instantly share code, notes, and snippets.

View ThomasSousa96's full-sized avatar
🤙

Thomás Sousa Silva ThomasSousa96

🤙
View GitHub Profile
To bind a key to a command install the "xbindkeys", using the below command:
sudo apt-get install xbindkeys
Later create the default config file for xbindkeys, using the following command:
xbindkeys --defaults > ~/.xbindkeysrc
To facilitate the key binding install the "xbindkeys-config" program, using the following command:
Linux:
pkill -f tomcat
Windows:
Runs the below command:
netstat -aon |find /i "listening" |find "8080"
# non-ASCII to Unicode
# Use executo the below command on terminal:
native2ascii -encoding UTF-8 from.txt to.txt
# Unicode to UTF-8
# Use executo the below command on terminal:
native2ascii -encoding UTF-8 -reverse from.txt to.txt
.forEachChild(@i) when (@i > 0) {
SELECTOR:nth-child(@{i}) {//Define the selector
//Put the styles here
}
.forEachChild(@i - 1);
}
@selectorsList: ~"h1", ~"h2", ~"h3";
@ThomasSousa96
ThomasSousa96 / CSS Preprocessor
Last active March 17, 2018 20:32
Netbeans Config
# Less
LESS path:
/usr/local/bin/lessc --clean-css
Enable the "Open Output on Error" option
Disable the "Generate source maps" option
#Initializes the version control:
git init
#Adds files to Git management:
git add *
#Remove files from the index:
git rm file
#Commit the files stored in the index area:
To install:
Extract the file.tar.gz into "/opt/jdk/" folder.
Open the terminal as super user and execute:
update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_05/bin/java 100
update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk1.8.0_05/bin/javac 100
To remove:
Open the terminal as super user and execute:
update-alternatives --remove java /opt/jdk/jdk1.8.0_05/bin/java
update-alternatives --remove javac /opt/jdk/jdk1.8.0_05/bin/javac
# http://openjdk.java.net/jeps/118
# Adds the below plugin in the pom.xml file
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
#Normal version:
jdbc:mysql://localhost:3306/DATABASE_NAME?useSSL=true&useTimezone=true&serverTimezone=America/Recife
#XML verison:
jdbc:mysql://localhost:3306/DATABASE_NAME?useSSL=true&amp;useTimezone=true&amp;serverTimezone=America/Recife
ObjectMapper mapper = new ObjectMapper().enable(INDENT_OUTPUT);