Skip to content

Instantly share code, notes, and snippets.

@fs111
fs111 / twittermute.txt
Created Jun 30, 2021 — forked from IanColdwater/twittermute.txt
Here are some terms to mute on Twitter to clean your timeline up a bit.
View twittermute.txt
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
View gist:51ec74d7713105d6b1f5082996dd7bae
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);
@fs111
fs111 / hadoop-shell.sh
Created Apr 28, 2017
run kotlin shell with full hadoop classpath
View hadoop-shell.sh
#!/bin/bash
# to get gereadling, do port install coreutils on OSX
kotlinc-jvm -cp $(greadlink -f $(echo $(yarn classpath) | tr ":" " ")  | paste -sd ":" -)
View jmx.java
@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());
}
View keybase.md

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:

View 😭.java
class 😭{
public void 😭(){
System.out.println( "😭😭😭" );
}
public static void main(String args[])
{
😭 _ = new 😭();
_.😭();
View gist:e9661d2775d9bc26fc81
if( filter != null );
builder = builder.filter( filter );
View gist:1ee44469bf5cc31e5a52
"Timer for 'TezTask' metrics system" daemon prio=5 tid=0x00007fe36c59b800 nid=0x2245e0b in Object.wait() [0x0000000117d3e000]
java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000007db7d3828> (a java.util.TaskQueue)
at java.util.TimerThread.mainLoop(Timer.java:552)
- locked <0x00000007db7d3828> (a java.util.TaskQueue)
at java.util.TimerThread.run(Timer.java:505)
"CallbackExecutor" daemon prio=5 tid=0x00007fe36c1ed800 nid=0x2214a07 waiting on condition [0x0000000119440000]
java.lang.Thread.State: WAITING (parking)
View gist:43dcdf66ebdbc019eeb4
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.
SSL read: error:00000000:lib(0):func(0):reason(0), errno 54
View gist:ac6e0a83bebb0791dd2b
+--- org.apache.tez:tez-api:0.6.0
| +--- log4j:log4j:1.2.17
| +--- com.google.guava:guava:11.0.2 -> 16.0.1
| +--- commons-io:commons-io:2.4
| +--- commons-logging:commons-logging:1.1.3
| +--- commons-lang:commons-lang:2.6
| +--- org.apache.hadoop:hadoop-common:2.6.0
| | +--- org.apache.hadoop:hadoop-annotations:2.6.0
| | +--- com.google.guava:guava:11.0.2 -> 16.0.1
| | +--- commons-cli:commons-cli:1.2