This file contains hidden or 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
| /************ | |
| Content Security policy Jhipster | |
| **********/ | |
| /* Use directives as per your requirement like image-src and default-src for defaults of all*/ | |
| // Single line CSP | |
| .headers() | |
| .contentSecurityPolicy("default-src 'self';") | |
| // Multi Line CSP joined by and |
This file contains hidden or 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
| // change current directory to repo directory in local | |
| shellJs.cd('path/to/repo/folder'); | |
| // Repo name | |
| const repo = 'dummy'; //Repo name | |
| // User name and password of your GitHub | |
| const userName = 'username'; | |
| const password = 'password'; | |
| // Set up GitHub url like this so no manual entry of user pass needed | |
| const gitHubUrl = `https://${userName}:${password}@github.com/${userName}/${repo}`; | |
| // add local git config like username and email |
This file contains hidden or 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
| version: '3.1' | |
| services: | |
| postgres-server: # The Postgres Database Service | |
| image: postgres:latest | |
| restart: always | |
| environment: # Username, password and database name variables | |
| POSTGRES_USER: zabbix | |
| POSTGRES_PASSWORD: zabbix | |
| POSTGRES_DB: zabbix | |
| PG_DATA: /var/lib/postgresql/data/pgdata #data storage |
This file contains hidden or 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
| // authorization code and tokens | |
| authorizationCode: string; | |
| oAuthToken: string; | |
| oAuthVerifier: string; | |
| // popup related | |
| private windowHandle: Window; // reference to the window object we will create | |
| private intervalId: any = null; // For setting interval time between we check for authorization code or token | |
| private loopCount = 600; // the count until which the check will be done, or after window be closed automatically. | |
| private intervalLength = 100; // the gap in which the check will be done for code. |
This file contains hidden or 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
| String completeProfileDetailsUrl = "https://api.linkedin.com/v1/people/~:" + | |
| "(id,industry,summary,specialties,headline,public-profile-url," + | |
| "first-name,last-name," + | |
| "positions:(id,title,summary,start-date,end-date,is-current," + | |
| "company:(id,name,type,size,industry,ticker))," + | |
| "educations:(id,school-name,field-of-study,start-date,end-date,degree,activities,notes)," + | |
| "interests," + | |
| "date-of-birth," + | |
| "picture-urls::(original)," + | |
| "languages:(id,language:(name),proficiency:(level,name))," + |
This file contains hidden or 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
| Url imageUrl = new Url("https://site.com/image.jpeg"); // Sample url, replace with yours | |
| String destinationFile = "sample.jpg"; | |
| /*******************Multipart Upload Method********************************* | |
| ** To resources like minio or DB | |
| ***************************************************************************/ | |
| /******** | |
| * Step 1 |
This file contains hidden or 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
| // Required for Http Request and json management for credentials | |
| HttpTransport httpTransport = new NetHttpTransport(); | |
| JacksonFactory jsonFactory = new JacksonFactory(); | |
| // Go to the Google API Console, open your application's | |
| // credentials page, and copy the client ID and client secret. | |
| // Then paste them into the following code. | |
| String clientId = "YOUR_CLIENT_ID"; | |
| String clientSecret = "YOUR_CLIENT_SECRET"; |
This file contains hidden or 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
| I had the same problem when playing a MP4 video, totem/gnome-videos displays a purplish corrupted video output and I have done the following: | |
| From the terminal sudo apt-get remove gstreamer1.0-vaapi | |
| I have done a test and yes, the problem has been fixed now I can see the video correctly. | |
| So the problem is gstreamer1.0-vaapi | |
| Best Regards, |
This file contains hidden or 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
| <!-- https://mvnrepository.com/artifact/org.apache.spark/spark-core --> | |
| <dependency> | |
| <groupId>org.apache.spark</groupId> | |
| <artifactId>spark-core_2.11</artifactId> | |
| <version>2.3.3</version> | |
| <exclusions> | |
| <exclusion> | |
| <groupId>org.slf4j</groupId> | |
| <artifactId>slf4j-log4j12</artifactId> | |
| </exclusion> |
This file contains hidden or 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
| version: "2.2" | |
| services: | |
| master: | |
| image: gettyimages/spark | |
| command: bin/spark-class org.apache.spark.deploy.master.Master -h master | |
| hostname: master | |
| environment: | |
| MASTER: spark://master:7077 | |
| SPARK_CONF_DIR: /conf | |
| SPARK_PUBLIC_DNS: localhost |