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
\header { | |
title = "A thousand miles" | |
composer = "Vanessa Carlton" | |
} | |
criffa = { | |
b'16 b, b' ais b, ais' fis8~ fis4 dis8 cis16 b | |
} | |
criffb = { |
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
\header { | |
title = "I'll always be right there" | |
composer = "Bryan Adams" | |
} | |
achord = | |
#(define-music-function (parser location duration) (ly:duration?) | |
#{ <a, e a cis' e'> $duration #}) | |
emixarpegio = {<gis b>8 e' b gis} |
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 python | |
''' | |
Based on https://gist.github.com/chrisbolin/2e90bc492270802d00a6 | |
''' | |
import os | |
from http.server import HTTPServer, SimpleHTTPRequestHandler | |
from urllib.parse import urlparse |
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
// from https://www.reddit.com/r/UofT/comments/jfewc9/trick_i_found_to_download_any_bb_collaborate/ | |
// In the Console tab, paste in the following: | |
document.getElementsByClassName("vjs-tech")[0].src |
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
services: | |
postgres13: | |
image: postgres:13 | |
restart: always | |
environment: | |
POSTGRES_PASSWORD: example | |
ports: | |
- 5432:5432 |
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
# mkdir mysql_data | |
# docker-compose up | |
# a simple docker-compose for MySQL | |
services: | |
mysql8: | |
image: mysql:8.0.28 | |
command: --default-authentication-plugin=mysql_native_password | |
restart: always | |
ports: |
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
//to use this example create 3 files named 5.php, 1.php and 8.php, and in each make a "sleep" for the number of seconds | |
// ---------- | |
// EXAMPLE 1 | |
// in this example the objects are getted all at the same time. | |
// ---------- | |
var a = ["5.php","1.php","8.php"] | |
var promises = []; | |
a.forEach(function(page) { |
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
-- http://www.mysqlperformanceblog.com/2008/02/04/finding-out-largest-tables-on-mysql-server/ | |
SELECT CONCAT(table_schema, '.', table_name), | |
CONCAT(ROUND(table_rows / 1000000, 2), 'M') rows, | |
CONCAT(ROUND(data_length / ( 1024 * 1024 * 1024 ), 2), 'G') DATA, | |
CONCAT(ROUND(index_length / ( 1024 * 1024 * 1024 ), 2), 'G') idx, | |
CONCAT(ROUND(( data_length + index_length ) / ( 1024 * 1024 * 1024 ), 2), 'G') total_size, | |
ROUND(index_length / data_length, 2) idxfrac | |
FROM information_schema.TABLES | |
ORDER BY data_length + index_length DESC | |
LIMIT 10; |
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
# Prefer an audible bell to the visual one. | |
vbell off | |
# Skip the startup message | |
startup_message off | |
# Display a caption string below, appearing like tabs and | |
# displaying the window number and application name (by default). | |
caption always | |
caption string "%{kw}%-w%{wr}%n %t%{-}%+w" |