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/bash | |
# Define the name of the sinks to use | |
readonly HEADPHONES="alsa_output.usb-Roland_DUO-CAPTURE-00.analog-stereo" | |
readonly SPEAKERS="alsa_output.pci-0000_0d_00.4.iec958-stereo" | |
# Get the current sink | |
currentSink=$(pactl info | grep "Default Sink" | awk '{print $3}') | |
# Based on the current sink, switch between cards |
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 org.jfugue.*; | |
import javax.crypto.*; | |
import javax.crypto.spec.*; | |
import java.io.*; | |
import java.security.*; | |
public class Music { | |
static String keyEnc = "a tua prima de 4"; | |
public static void main(String[] args) throws Exception { |
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
AlertDialog.Builder alert = new AlertDialog.Builder(this, AlertDialog.THEME_HOLO_LIGHT); | |
alert.setTitle(title); | |
alert.setCancelable(false); | |
AlertDialog dialog; | |
// Set an EditText view to get user input | |
final EditText input = new EditText(this); | |
alert.setView(input); | |
alert.setPositiveButton("Ok", new DialogInterface.OnClickListener() { |