This file contains 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 javax.annotation.processing.SupportedOptions; | |
@SupportedOptions("debug") // declare the `debug` option | |
public final class InYourProcessor extends AbstractProcessor { | |
/** | |
* This is now your logging routine. | |
*/ | |
private void log(String msg) { | |
if (processingEnv.getOptions().containsKey("debug")) { |
This file contains 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
wget https://download.calibre-ebook.com/linux-installer.sh | |
sh linux-installer.sh install_dir=~/.local/opt isolated=True |
This file contains 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
container-*.service |
This file contains 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
#!/bin/sh | |
# | |
# Daily backup job. | |
# Belongs in /etc/cron.daily/ | |
# Back up /home partition to /media/backup partition. | |
SRC=/home/ | |
DEST=/media/backup/bomuhei/ | |
LOG=/media/backup/last_backup.bomuhei |
This file contains 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
default.target.wants/ | |
nexus |
This file contains 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
#!/usr/bin/env python | |
import sys | |
import urllib | |
import chardet | |
import os | |
orig = sys.argv[1] | |
rawdata = urllib.urlopen(orig).read() | |
enc = chardet.detect(rawdata)['encoding'] |
This file contains 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
#!/usr/bin/env amm | |
import $ivy.`com.github.pathikrit::better-files:3.5.0` | |
import $ivy.`commons-io:commons-io:2.6` | |
import java.io.{BufferedReader, InputStreamReader, PrintWriter} | |
import java.nio.charset.{Charset, StandardCharsets} | |
import ammonite.ops._ | |
import better.files._ | |
import org.apache.commons.io.ByteOrderMark |
This file contains 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
<scheme name="Solarized Dark (Darcula)" version="142" parent_scheme="Darcula"> | |
<option name="EDITOR_FONT_SIZE" value="12" /> | |
<option name="CONSOLE_FONT_NAME" value="Menlo" /> | |
<option name="EDITOR_FONT_NAME" value="Monaco" /> | |
<colors> | |
<option name="ADDED_LINES_COLOR" value="baffba" /> | |
<option name="ANNOTATIONS_COLOR" value="586e75" /> | |
<option name="ANNOTATIONS_MERGED_COLOR" value="2aa198" /> | |
<option name="CARET_COLOR" value="eee8d5" /> | |
<option name="CARET_ROW_COLOR" value="73642" /> |
This file contains 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
private static final ${LOG_TYPE type="org.slf4j.Logger" default="Logger" editable=false} log = | |
${LOG_FACT type="org.slf4j.LoggerFactory" default="LoggerFactory" editable=false}.getLogger(${classVar editable="false" currClassName default="getClass()"}.class); |
This file contains 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
diff -ur Stinger-2.2/src/org/owasp/stinger/Stinger.java Stinger-2.2.2/src/org/owasp/stinger/Stinger.java | |
--- Stinger-2.2/src/org/owasp/stinger/Stinger.java 2006-11-21 21:11:16.000000000 +0800 | |
+++ Stinger-2.2.2/src/org/owasp/stinger/Stinger.java 2007-12-20 11:04:30.000000000 +0800 | |
@@ -44,12 +44,15 @@ | |
private static RuleSet set = null; | |
+ private static boolean debug = false; | |
+ | |
private Stinger() { |
NewerOlder