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 DISTINCT(table_name), column_name | |
FROM DBA_TAB_COLUMNS | |
WHERE column_name LIKE '%${name}%'; |
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 <fcntl.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#define defer(DefId) ;\ | |
auto void def_##DefId(void*); \ | |
void *var_##DefId __attribute__( (__cleanup__(def_##DefId)) ) = NULL; \ | |
void def_##DefId (void *_) |
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
#! /usr/bin/env bash | |
if [ "$1" = "-1" ] ; then | |
dif=-1 | |
else | |
dif=1 | |
fi | |
sinks_str=$(pactl list sinks | grep "Name:" | cut -d' ' -f2 ) | |
curent_sink=$(pactl get-default-sink) |
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
#! /usr/bin/env bash | |
if [ -z "$AUTO" ]; then | |
sink=$( | |
pactl list sources | | |
filte and[ +Name +output ] | | |
wofi -d | | |
cut -f2 -d' ' | |
) | |
else |
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
// Method-less | |
export type LabeledTableData = { | |
id: number | string | |
v1: { label: string, value: number }, | |
v2: { label: string, value: string }, | |
v3: { label: string, value: number }, | |
v4: { label: string, value: number }, | |
v5: { label: string, value: string }, | |
v6: { label: string, value: number }, | |
v7: { label: string, value: number }, |
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
import * as p from 'puppeteer'; | |
import { Injectable } from '@nestjs/common'; | |
@Injectable() | |
export class PdfGenerator { | |
private browser: Promise<p.Browser>; | |
constructor () { | |
this.browser = p.launch(); | |
} |
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
import re | |
# Raw input values (shortened for demonstration; replace with full list in production) | |
raw_numbers = """ | |
010-000-1111 | |
+99 31 01111-0001 | |
+99 13 10000-1110 | |
11911110000 | |
""" # Note: use the full list here |