Skip to content

Instantly share code, notes, and snippets.

View Tracnac's full-sized avatar

Tracnac

View GitHub Profile
@Tracnac
Tracnac / main.go
Last active September 23, 2022 15:55
[Go skelton] #go
package main
import (
"fmt"
"os"
)
func main() {
fmt.Println("Hello World")
os.Exit(0)
@Tracnac
Tracnac / ASMImbalance.md
Last active September 23, 2022 15:59
ASM Imbalance #oracle #sql

ASM Imbalance

select group_number, min(free_mb),max(free_mb) from v$asm_disk group by group_number;

column "Diskgroup" format A30
column "Imbalance" format 99.9 Heading "Percent|Imbalance"
column "Variance" format 99.9 Heading "Percent|Disk Size|Variance"
column "MinFree" format 99.9 Heading "Minimum|Percent|Free"
column "DiskCnt" format 9999 Heading "Disk|Count"
@Tracnac
Tracnac / ADB network setup.md
Last active September 23, 2022 15:59
ADB network setup #android

ADB network setup

cd /Users/.../Library/Android/sdk/platform-tools

./adb devices

./adb tcpip 5555
@Tracnac
Tracnac / TMK keyboard firmware collection.md
Created July 28, 2021 13:22
TMK keyboard firmware collection #firmware #keyboard

TMK keyboard firmware collection

/*

 * Macro definition
   */
   enum macro_id {
   ENE,
 ENEMAYUSCULA,
@Tracnac
Tracnac / main.rs
Last active September 23, 2022 15:59
Rust skelton #rust
fn main() {
printl!("Hello world");
}
@Tracnac
Tracnac / gist:20dc822bfb6604bdab3ec20e5c051cdb
Created December 20, 2021 15:03
Oracle log all DDL #oracle #sql
DROP TABLE SYSTEM.DDL_LOG CASCADE CONSTRAINTS
/

CREATE TABLE SYSTEM.DDL_LOG
(
  TSTAMP       TIMESTAMP(6)   NOT NULL,
  HOST         VARCHAR2(100),
  IP_ADDRESS   VARCHAR2(100),
  MODULE       VARCHAR2(100),
@Tracnac
Tracnac / sqltrace.md
Last active September 23, 2022 16:04
SQL Trace #oracle #sql

Enabling SQL Trace for a specific session

There are two ways to enable SQL Trace for your own session, and there is also a way to turn on SQL Trace for any current session.

You can enable SQL Trace for your own session with the following SQL statement:

ALTER SESSION SET SQL_TRACE = TRUE;
@Tracnac
Tracnac / gist:31ffbbe919743c15086fab9d930007c2
Created April 25, 2022 08:36
Oracle alter.log view #oracle #sql
select distinct
   originating_timestamp,
   message_text
from
   x$dbgalertext
where
   message_text like 'ORA-%'
@Tracnac
Tracnac / poqtea.klc
Created May 4, 2022 18:42
POQTEA FR #layout #keyboard
KBD POQTEA "POQTEA"
COPYRIGHT "(c) 2022 Devmobs"
COMPANY "Devmobs"
LOCALENAME "en-US"
LOCALEID "00000409"
@Tracnac
Tracnac / main.c.md
Created May 31, 2022 05:14
GLFW skelton #c #opengl
#include <GLFW/glfw3.h>

int main(void) {
  GLFWwindow *window;

  /* Initialize the library */
  if (!glfwInit())
    return -1;