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
    
  
  
    
  | donwload libssl1.0 | |
| donwload libssl1.0-dev | |
| https://www.ubuntuupdates.org/package/core/cosmic/main/updates/libssl1.0.0 | |
| https://www.ubuntuupdates.org/package/core/cosmic/main/updates/libssl1.0-dev | |
| #remove libssl | |
| sudo apt-get purge libssl | |
| install libssl | 
  
    
      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
    
  
  
    
  | Download JDK on Oracle. | |
| Extract anywhere you want. | |
| run: | |
| sudo update-alternatives --install "/usr/bin/java" "java" "dir/jdk1.8.0_211/bin/java" 1500 | |
| sudo update-alternatives --install "/usr/bin/javac" "javac" "dir/jdk1.8.0_211/bin/javac" 1500 | |
| sudo update-alternatives --install "/usr/bin/javaws" "javaws" "dir/jdk1.8.0_211/bin/javaws" 1500 | 
  
    
      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 "lista.h" | |
| template<class type> | |
| void List<type>::add(type *object) { | |
| if (this->first == NULL) { | |
| NodeList<type> *node = new NodeList<type>(object, 0); | |
| this->first = node; | |
| this->last = node; | |
| } else { | |
| NodeList<type> *node = new NodeList<type>(object, this->last->getIndex() + 1); | 
  
    
      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
    
  
  
    
  | * Funcionar controle brilho da tela | |
| Entrar no modo texto | |
| desabilitar o modo grafico: service lightdm stop | |
| Reconfigurar o modo grafico: X -configure | |
| Copiar arquivo xorg.conf para /etc/X11/xorg.conf | |
| Habilitar modo grafico: service lightdm start | |
| Editar /etc/default/grub | |
| GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=" | 
  
    
      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
    
  
  
    
  | int const clock = 2; | |
| int const latch = 3; | |
| int const data = 4; | |
| void setup() { | |
| pinMode(clock, OUTPUT); | |
| pinMode(latch, OUTPUT); | |
| pinMode(data, OUTPUT); | |
| Serial.begin(9600); | |
| } | 
  
    
      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 apt-get update | |
| sudo apt-get install linux-generic-lts-raring xserver-xorg-lts-raring | 
  
    
      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
    
  
  
    
  | xrandr --output VGAx --right-of LVDSx | 
  
    
      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
    
  
  
    
  | public static void extractFileTo(String compactFile, String fileToExtract, String destinationFile) | |
| throws IOException { | |
| byte[] buf = new byte[1024]; | |
| ZipEntry zipentry; | |
| @SuppressWarnings("resource") | |
| ZipInputStream zipinputstream = new ZipInputStream(new FileInputStream(compactFile)); | |
| while ((zipentry = zipinputstream.getNextEntry()) != null) { | |
| String entryName = zipentry.getName(); | 
  
    
      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
    
  
  
    
  | #Netflix on linux | |
| sudo apt-add-repository ppa:ehoover/compholio | |
| sudo apt-get update && sudo apt-get install netflix-desktop | |
| #search in your dash for "Netflix" and be happy! | 
  
    
      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
    
  
  
    
  | select SID | |
| SELECT SID, SERIAL#, USERNAME, PROCESS, LOGON_TIME, WAIT_TIME FROM V$SESSION | |
| mostra o caminho onde será armazenado | |
| SHOW PARAMETER USER_DUMP_DEST | |
| Habilita o Trace | |
| EXEC DBMS_MONITOR.SESSION_TRACE_ENABLE( SID ) ou EXECUTE dbms_system.set_sql_trace_in_session (sid, serial#, true); | |
| Deshablita o Trace | |
| EXEC DBMS_MONITOR.SESSION_TRACE_DISABLE( SID ) ou EXECUTE dbms_system.set_sql_trace_in_session (sid, serial#, false); | |
| convertendo .trc em txt para leitura humana | 
NewerOlder