Skip to content

Instantly share code, notes, and snippets.

View alexstolr's full-sized avatar
😀

Alex Stoliar alexstolr

😀
  • Tel Aviv, Israel
View GitHub Profile
@alexstolr
alexstolr / gist:f870ca01aac22c49fdeadd5d02d0ef0e
Created June 16, 2019 06:55
Dynamically enable/disable spring scheduled method
1) add TaskScheduler spring bean:
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.TaskScheduler;
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;
@Configuration
public class AppConfig {
@alexstolr
alexstolr / gist:1465e89c3f9b2b26724aa4cdf6f3ace4
Created June 27, 2019 13:03
Intellij Live Templates with variables
Go to setting --> Editor --> Live templates --> '+' --> add Live template
int the template text paste the following: //TODO $date$ $user$:
Abbreviation: customtodo
Description: Insert TODO comment with the current date and user name
Applicable in: Everywhere
Press on Edit variables:
Add the following:
Name: date, Expressions: date()
@alexstolr
alexstolr / gist:b7f8f32dbceb202e97d7258794d019ec
Created July 11, 2019 12:38
Sharing src/test classes between modules in a multi-module maven project
Add in base module pom (under dependencies for example):
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.1.2</version>
<executions>
<execution>
@alexstolr
alexstolr / gist:e37d9b266de4d0dfcb84a05070c0fcf8
Created August 13, 2019 07:02
stream multiple files via REST
-------
server:
-------
@Controller
@Slf4j
public class FileController {
@GetMapping(value = "/files")
public void getFiles(HttpServletResponse response){
@alexstolr
alexstolr / readme guide
Last active December 18, 2019 18:09
Writing a readme.md file
https://learn-the-web.algonquindesign.ca/topics/writing-a-readme/
Basic writing: https://help.github.com/en/github/writing-on-github/basic-writing-and-formatting-syntax#links
https://help.github.com/en/github/administering-a-repository/classifying-your-repository-with-topics
how to add buttons: https://shields.io/
topics: https://help.github.com/en/github/administering-a-repository/classifying-your-repository-with-topics
@alexstolr
alexstolr / attestation.txt
Created April 12, 2021 11:17
ZKOPRU trusted setup attestation
I contributed to the ZKOPRU Trusted Setup Multi-Party Ceremony.
The following are my contribution signatures:
Circuit: zk_transaction_4_3
Contributor # 8
Hash: 0c8fff86 359574d3 a27d52ab b268fd3c
f748acc3 7fc476c1 f9c7ced0 c5b2bdfb
1e1de241 3652f70a cd8f7442 813c9cd3
2088856d a78db5b7 9ff88283 57275cd1