This file contains hidden or 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
| log4j.rootLogger= INFO, Console | |
| log4j.appender.Console=org.apache.log4j.ConsoleAppender | |
| log4j.appender.Console.Target=System.out | |
| log4j.appender.Console.layout=org.apache.log4j.PatternLayout | |
| log4j.appender.Console.layout.ConversionPattern=[%d] %p %c - %m%n |
This file contains hidden or 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
| <configuration> | |
| <property resource="log.properties" /> | |
| <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | |
| <encoder> | |
| <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n | |
| </pattern> | |
| </encoder> | |
| </appender> |
This file contains hidden or 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
| # first you need a new empty branch; let's call it `newroot` | |
| git checkout --orphan newroot | |
| git rm -rf . | |
| # then you apply the same steps | |
| git commit --allow-empty -m 'root commit' | |
| git rebase --onto newroot --root master | |
| git branch -d newroot |
This file contains hidden or 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
| mvn -Dsurefire.useFile=false -DtrimStackTrace=false test |
This file contains hidden or 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
| sudo update-alternatives --set libgksu-gconf-defaults /usr/share/libgksu/debian/gconf-defaults.libgksu-sudo | |
| sudo update-gconf-defaults | |
This file contains hidden or 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
| dd if=/dev/random of=/media/pendrive/tape bs=1 count=256 | |
| cryptsetup --verbose -c aes-cbc-essiv:sha256 --key-size 256 luksFormat /dev/sde1 /media/pendrive/tape | |
| cryptsetup luksOpen --key-file /media/pendrive/tape /dev/sde1 tape | |
| cryptsetup luksAddKey /dev/sde1 --key-file /media/pendrive/tape | |
| cryptsetup luksDump /dev/sde1 |
This file contains hidden or 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/bash | |
| DTD=$(exiv2 -pt "$1" | grep -a Exif.Photo.DateTimeDigitized | awk '{print $4" "$5}') | |
| DTO=$(exiv2 -pt "$1" | grep -a Exif.Photo.DateTimeOriginal | awk '{print $4" "$5}') | |
| if [ -n "${DTD}" ]; then | |
| exiv2 -M"set Exif.Photo.DateTimeOriginal Ascii ${DTD}" "$1" | |
| else | |
| echo "DTD Blank DTO: " ${DTO} | |
| fi |
This file contains hidden or 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
| #include <stdio.h> | |
| #include <signal.h> | |
| #include <unistd.h> | |
| #include <string.h> | |
| #include <stdlib.h> | |
| void message(pid_t pid ) | |
| { |
This file contains hidden or 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
| var debug = true, | |
| LOG = debug ? console.log.bind(console) : function () {}; |
This file contains hidden or 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
| idleTime = 0; | |
| $(document).ready(function () { | |
| //Increment the idle time counter every minute. | |
| var idleInterval = setInterval(timerIncrement, 60000); // 1 minute | |
| //Zero the idle timer on mouse movement. | |
| $(this).mousemove(function (e) { | |
| idleTime = 0; | |
| }); |
OlderNewer