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
syntax enable | |
filetype plugin on | |
let mapleader=" " | |
set cursorline | |
set makeprg=nmake | |
set errorformat=%f(%l):%m | |
autocmd FileType qf nnoremap <buffer> p :lprev<CR><C-w>w |
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 | |
table_schema AS `Database`, | |
table_name AS `Table`, | |
round(((data_length + index_length) / 1024 / 1024), 2) `Size in MB` | |
FROM | |
information_schema.TABLES | |
ORDER BY | |
(data_length + index_length) | |
DESC; |
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 <unistd.h> | |
int main() | |
{ | |
// Pipe open logger command in another process (sh -c logger) | |
FILE *fl; | |
fl = popen("logger","w"); | |
if(fl == NULL) | |
return 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
package main | |
import ( | |
"fmt" | |
"regexp" | |
) | |
var text = | |
` | |
"TMLINK" = "ENABLED"; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
.dropbtn { | |
background-color: #4CAF50; | |
color: white; | |
padding: 16px; | |
font-size: 16px; |
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
fn main() { | |
let x = Box::new(5); | |
let p = &x; | |
let pp : &i32 = &x; | |
println!("&x: {:p}", &x); | |
println!("p: {:p}", p); | |
println!("pp: {:p}", pp); | |
} |