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
# 2.4GHz | |
nvram set wl0_radio=0 # 0 to disable, or 1 to enable | |
# 5GHz | |
nvram set wl1_radio=0 # 0 to disable, or 1 to enable | |
nvram commit | |
service restart_wireless | |
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
[user] | |
email = <email> | |
name = Aleksandar Stojadinovic | |
[merge] | |
tool = meld | |
[mergetool] | |
keepBackup = false | |
[mergetool "meld"] | |
trustExitCode = true | |
path = C:\\Program Files (x86)\\Meld\\Meld.exe |
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
@RunWith(SpringRunner.class) | |
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT/*, classes = Application.class*/) | |
//@DataJpaTest //Starts with in-memory database, without a web tier, only data tier | |
//@RestClientTest({RemoteVehicleDetailsService.class}) //Use with REST client class | |
//@TestPropertySource(properties = "vehicle.service.root-url=http://example.com") | |
//@JsonTest //Testing JSON (de)serialization | |
//@AutoConfigureTestDatabase //self-explanatory | |
//@WebMvcTest(UserVehicleController.class) //MVC class | |
public class ApplicationIntegrationTest { |
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
spring: | |
datasource: | |
url: jdbc:h2:./repository/db;MV_STORE=FALSE # MV_STORE=FALSE to use the old 1.3 format | |
driver-class-name: org.h2.Driver | |
username: sa | |
# password: sa | |
jpa: | |
hibernate.ddl-auto: validate | |
# Lines dedicated only to generating the script file, it is not applied to the DB. These are from JPA, not from Hibernate | |
properties.javax.persistence.schema-generation.create-source: metadata |
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
cp ~/.config/autostart/dropbox.desktop ~/.config/autostart/start_dropbox.desktop | |
sed -i 's/^Exec=.*/Exec=dbus-launch dropbox start -i/' ~/.config/autostart/start_dropbox.desktop | |
dropbox autostart n | |
mkdir -p ~/.local/share/applications/ | |
cp /usr/share/applications/dropbox.desktop ~/.local/share/applications/ | |
sed -i 's/^Exec=.*/Exec=dbus-launch dropbox start -i/' ~/.local/share/applications/dropbox.desktop |
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
Portus - http://port.us.org/ | |
Quay - https://quay.io/ | |
Harbor - https://vmware.github.io/harbor/ | |
Atomic Registry - http://www.projectatomic.io/registry/ | |
Nexus Repository Manager OSS 3.xx - https://www.sonatype.com/nexus-repository-oss | |
"Official" Docker Registry 2.0 - https://docs.docker.com/registry/ |
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
GrowwAuthenticator authenticator = new UnitOfWorkAwareProxyFactory(hibernateBundle) | |
.create(GrowwAuthenticator.class, SessionFactory.class, | |
hibernateBundle.getSessionFactory()); |
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
import java.time.Duration; | |
import java.util.Optional; | |
import java.util.concurrent.atomic.AtomicInteger; | |
import java.util.function.Consumer; | |
import java.util.function.Predicate; | |
import java.util.function.Supplier; | |
/** | |
* Created by Aleksandar Stojadinovic on 12/09/16. | |
*/ |
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
DECLARE | |
statements CURSOR FOR | |
SELECT tablename FROM pg_tables | |
WHERE tableowner = username AND schemaname = 'public'; | |
BEGIN | |
FOR stmt IN statements LOOP | |
IF stmt.tablename != 'algorithm' THEN | |
EXECUTE 'TRUNCATE TABLE ' || quote_ident(stmt.tablename) || ' CASCADE;'; | |
END IF; | |
END LOOP; |
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
rancher-compose --url <rancher_compose_url> --access-key <key> --secret-key <secret_ky> -f docker-compose.yaml -p <stack_name> up --pull --force-upgrade --confirm-upgrade -d |
NewerOlder