Skip to content

Instantly share code, notes, and snippets.

View maksimov's full-sized avatar
🎯
Focusing

Stas Maksimov maksimov

🎯
Focusing
View GitHub Profile

Keybase proof

I hereby claim:

  • I am maksimov on github.
  • I am smaksimov (https://keybase.io/smaksimov) on keybase.
  • I have a public key whose fingerprint is 369D BC39 105F 86D0 224E 6E05 DAE2 29CB 01AF BC7E

To claim this, I am signing this object:

@maksimov
maksimov / gist:0a826587e3fef316f1e1
Last active August 29, 2015 14:07
Follow-up Shellshock fix for OSX brew
#!/bin/bash
brew update && brew upgrade brew ; sudo rm -rf /bin/bash && sudo ln -s /usr/local/Cellar/bash/4.3.27/bin/bash /bin/bash
@maksimov
maksimov / gist:f5eb4dd83e5db8477f54
Last active August 29, 2015 14:06
Shellshock fix for OSX brew
brew update && brew unlink bash ; brew install bash && sudo mv /bin/bash /bin/bash.3 && sudo ln -s /usr/local/Cellar/bash/4.3.25/bin/bash /bin/bash
@maksimov
maksimov / gist:380e0fd9c73eeb255d3f
Created May 13, 2014 08:42
Create cloud provider from properties
public void loadProviderFromProperties() throws Exception {
final Properties props = new Properties();
InputStream inputStream = new FileInputStream("/Users/stas/dsn.properties");
try {
props.load(inputStream);
} catch( IOException e ) {
e.printStackTrace();
}
Cloud cloud = Cloud.register(props.getProperty("DSN_PROVIDER_NAME"),
@maksimov
maksimov / lifecycle-mapping-metadata.xml
Last active February 24, 2023 15:17
Ignore unsupported M2E goals
<?xml version="1.0" encoding="UTF-8"?>
<lifecycleMappingMetadata>
<lifecycleMappings>
<lifecycleMapping>
<packagingType>maven-plugin</packagingType>
<lifecycleMappingId>org.eclipse.m2e.jdt.JarLifecycleMapping</lifecycleMappingId>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>