This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Backup extensions | |
code --list-extensions >> vs_code_extensions_list.txt | |
2. Restore extensions | |
cat vs_code_extensions_list.txt | xargs -n 1 code --install-extension | |
3. Uninstall extensions | |
code --list-extensions | xargs -n 1 code --uninstall-extension |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Could you post content of above file here first pls? | |
cat /var/lib/unbound/root.key | |
To try and fix that file, stop unbound with below: | |
sudo systemctl stop unbound | |
Remove the broken file with below: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.opentsdb.client; | |
import static com.google.common.base.Preconditions.checkArgument; | |
import java.io.IOException; | |
import java.util.concurrent.TimeUnit; | |
import org.apache.commons.lang.StringUtils; | |
import org.apache.http.HeaderElement; | |
import org.apache.http.HeaderElementIterator; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
wget https://dl.pstmn.io/download/latest/linux64 -O postman-linux-x64.tar.gz | |
sudo tar xvzf postman-linux-x64.tar.gz -C /opt | |
sudo ln -s /opt/Postman/Postman /usr/bin/postman | |
cat << EOF > ~/.local/share/applications/postman2.desktop | |
[Desktop Entry] | |
Name=Postman | |
GenericName=API Client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE USER "NEWUSER" PROFILE "DEFAULT" IDENTIFIED BY "newpassword" PASSWORD EXPIRE DEFAULT TABLESPACE "USERS" TEMPORARY TABLESPACE "TEMP" QUOTA UNLIMITED ON "USERS"; | |
ALTER USER "NEWUSER" ACCOUNT UNLOCK; | |
-- ROLES | |
GRANT "CONNECT" TO "NEWUSER"; | |
GRANT "RESOURCE" TO "NEWUSER"; | |
-- SYSTEM PRIVILEGES | |
GRANT CREATE ROLE TO "NEWUSER"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@PersistenceContext | |
EntityManager em; | |
protected Class<T> type; | |
public List<T> allEntries() { | |
CriteriaBuilder cb = em.getCriteriaBuilder(); | |
CriteriaQuery<T> cq = cb.createQuery(type); | |
Root<T> rootEntry = cq.from(type); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class GenericDAOImpl<T extends DomainObject, T2 extends DomainObject> implements GenericDAO<T, T2> { | |
private Class<T> type; | |
@PersistenceContext | |
protected EntityManager entityManager; | |
public GenericDAOImpl(Class<T> type) { | |
super(); | |
this.type = type; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/xsd/settings-1.0.0.xsd"> | |
<localRepository>${user.home}/.m2/repository</localRepository> | |
<profiles> | |
<profile> | |
<id>securecentral</id> | |
<activation> | |
<activeByDefault>true</activeByDefault> | |
</activation> | |
<!--Override the repository (and pluginRepository) "central" from the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 http://maven.apache.org/xsd/settings-1.2.0.xsd"> | |
<profiles> | |
<profile> | |
<id>redhat-ga-repository</id> | |
<repositories> | |
<repository> | |
<id>redhat-ga-repository</id> | |
<name>Red Hat GA repository</name> | |
<url>http://maven.repository.redhat.com/ga/</url> |
NewerOlder