Skip to content

Instantly share code, notes, and snippets.

View fs111's full-sized avatar

André Kelpe fs111

View GitHub Profile
2983 mastodon.social
711 mstdn.social
618 botsin.space
399 mastodon.online
353 fed.celp.de
328 chaos.social
305 mastodon.world
299 mamot.fr
297 mas.to
278 mastodon.art
@fs111
fs111 / twittermute.txt
Created June 30, 2021 14:41 — forked from IanColdwater/twittermute.txt
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
RunJobFlowRequest request = new RunJobFlowRequest()
.withName(String.format("spark-test-cluster-%s", id))
.withApplications(new Application.withName("Spark"), new Application().withName("Zeppelin"))
.withReleaseLabel(EMR_RELEASE_LABEL)
...
RunJobFlowResult result = elasticMapReduceClient.runJobFlow(request);
inotifywait -m -r -e close_write --exclude '.*\.sw[a-z]' src/ | while read line; do make ; done
@fs111
fs111 / hadoop-shell.sh
Created April 28, 2017 12:30
run kotlin shell with full hadoop classpath
#!/bin/bash
# to get gereadling, do port install coreutils on OSX
kotlinc-jvm -cp $(greadlink -f $(echo $(yarn classpath) | tr ":" " ")  | paste -sd ":" -)
@Test
public void testJMXURL() throws IOException {
String url = "service:jmx:rmi:///jndi/rmi://host.example.com:34517/jmxrmi";
JMXServiceURL serviceURL = new JMXServiceURL(url);
assertEquals("host.example.com", serviceURL.getHost());
assertEquals(34517, serviceURL.getPort());
}

Keybase proof

I hereby claim:

  • I am fs111 on github.
  • I am fs111 (https://keybase.io/fs111) on keybase.
  • I have a public key ASBhy6OhSnFanU50mFXTK74fLplCPQjmepqLNK2TJw4TDgo

To claim this, I am signing this object:

class 😭{
public void 😭(){
System.out.println( "😭😭😭" );
}
public static void main(String args[])
{
😭 _ = new 😭();
_.😭();
@fs111
fs111 / gist:7562431
Created November 20, 2013 12:32
hadoop-env for lingual to make it work with CDH4.4
if [ -z "${HADOOP_HOME}" ]; then
echo "warning: HADOOP_HOME is not set. see your hadoop documents for details."
BIN_PATH=`which hadoop`
if [ -n "${BIN_PATH}" ] ; then
HADOOP_HOME=${BIN_PATH%/bin/hadoop}
echo "lingual will use HADOOP_HOME of ${HADOOP_HOME}"
else
echo "exiting."
exit 1
fi
if( filter != null );
builder = builder.filter( filter );