This file contains 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
# | |
# history of linux-headers-generic | |
# | |
$ grep "linux-headers-generic" /var/log/dpkg.log | |
2020-07-02 10:38:01 upgrade linux-headers-generic:amd64 5.3.0.61.51 5.4.0.40.43 | |
2020-07-02 10:38:01 status half-configured linux-headers-generic:amd64 5.3.0.61.51 | |
2020-07-02 10:38:01 status unpacked linux-headers-generic:amd64 5.3.0.61.51 | |
2020-07-02 10:38:01 status half-installed linux-headers-generic:amd64 5.3.0.61.51 | |
2020-07-02 10:38:01 status unpacked linux-headers-generic:amd64 5.4.0.40.43 |
This file contains 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
// ==UserScript== | |
// @name Trap ctrl+enter on git.corp | |
// @description Stop git.corp from handling ctrl+enter keyboard shortcut (e.g., for submitting issue comment) | |
// @run-at document-start | |
// @version 0.1 | |
// @author Joel Brandt <jobrandt@adobe.com> | |
// @match https://git.corp.adobe.com/* | |
// @grant none | |
// @downloadURL https://gist.githubusercontent.com/joelrbrandt/db09a4360782d88636c318a089bb5c29/raw/trap-ctrl-enter.js | |
// @updateURL https://gist.githubusercontent.com/joelrbrandt/db09a4360782d88636c318a089bb5c29/raw/trap-ctrl-enter.js |
This file contains 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
(function () { | |
"use strict"; | |
var _generator = null, | |
_config = null; | |
function init(generator, config) { | |
_generator = generator; | |
_config = config; |
This file contains 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 smtplib | |
hostname = 'smtp.gmail.com' | |
port = 587 | |
username = 'someone@gmail.com' | |
from_address = 'someone@gmail.com' | |
from_name = 'Someone Doe' | |
password = '1234' | |
def send_email(to_address, to_name, subject, message): |
This file contains 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
Handlebars.registerHelper 'each_with_index', (array, fn) -> | |
buffer = '' | |
for i in array | |
item = i | |
item.index = _i | |
buffer += fn(item) | |
buffer |
This file contains 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
{ | |
"version": "0.2.0", | |
"timeStamp": 1375921607.634, | |
"id": 1116, | |
"file": "Sans titre-1", | |
"bounds": { | |
"top": 0, | |
"left": 0, | |
"bottom": 340, | |
"right": 454 |
This file contains 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
(function () { | |
"use strict"; | |
var stream = require("stream"); | |
var i, b, | |
startTime, endTime, totalTime, | |
readCount, bytesRead, bytesReadThisTest, | |
rs; |
This file contains 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
(function () { | |
"use strict"; | |
var stream = require("stream"); | |
var b, i, j, t, count; | |
var OUTER_LOOP_ITERATIONS = 1000, | |
INNER_LOOP_ITERATIONS = 100, | |
BLOCK_SIZE = 10000; |
This file contains 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
<html> | |
<head> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script> | |
function sayHi() { | |
console.log("hi"); | |
} | |
$(function () { | |
$("h1").on("mousedown", sayHi); |
This file contains 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
node_modules |
NewerOlder