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
# # NOTE - BEFORE RUNNING SCRIPT YOU SHOULD PROBABLY run | |
# the following in your shell so that the host can be added properly to ssh: | |
# sftp user@host | |
# # REQUIREMENTS # # | |
# pip install pandas | |
# pip install pgpy | |
# pip install psycopg2 | |
# pip install pycrypto | |
# pip install pysftp |
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 pgpy import PGPUID, PGPKey, PGPMessage | |
from pgpy.constants import ( | |
PubKeyAlgorithm, | |
KeyFlags, | |
HashAlgorithm, | |
SymmetricKeyAlgorithm, | |
CompressionAlgorithm, | |
) | |
# 1. Recipient sets up user, and generates a key for that user |
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
git status|grep deleted|cut -d " " -f 5 > deleted.deleteme&&git stash&&git checkout master&&cat d.d.d.d|xargs -t -I@ git --no-pager log -1 --format=%cd @&&git checkout - >/dev/null&&git stash apply >/dev/null&&rm d.d.d.d | |
# EXPLANATION | |
# 1. list all the deleted files in current branch (first 3 piped commands) | |
# 2. save them in a file called "deleted.deleteme" (output of 3rd command) | |
# 3. save their most recent commit dates back into "deleted.deleteme" by changing into the master branch and coming back (commands 4 thru 9) | |
# 4. cleanup by removing "deleted.deleteme" | |
WARNING: I hope you don't have a file called `d.d.d.d` as it will be deleted! |
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 traceback | |
import requests | |
import sys | |
import linecache | |
import requests | |
# Put your actual Sentry DSN URL here: | |
SENTRY_DSN = 'https://[email protected]/ISSUES_ID' | |
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
# GNU Screen - main configuration file | |
# All other .screenrc files will source this file to inherit settings. | |
# Author: Christian Wills - [email protected] | |
# Allow bold colors - necessary for some reason | |
attrcolor b ".I" | |
# Tell screen how to set colors. AB = background, AF=foreground | |
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' |
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
/************ | |
* Inspired by: | |
* https://ctrlq.org/code/20053-save-gmail-to-google-spreadsheet | |
* https://gist.github.com/oshliaer/70e04a67f1f5fd96a708 | |
*************/ | |
var IS_DEBUG = false; | |
var RUN_SIZE = 10; //this variable is ignored unless IS_DEBUG true | |
// Cf. https://developers.google.com/apps-script/reference/gmail/gmail-message#methods |
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
// Set up AWS client | |
var AWS = require('aws-sdk'); | |
var dynamodb = new AWS.DynamoDB(); | |
// TODO update AWS configuration to set region | |
AWS.config.update({region : 'us-east-1'}); | |
exports.handler = function(event, context) { | |
// Keep tracxk of how many requests are in flight |
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
'This is truly wretched. Global variables from hell: | |
dim Root, Utility, ErrorOccurred, ErrorType, CookieTimeStamp, FormTimeStamp, FormID, PageClass, PageID | |
dim PageTitle, InterfaceID, strTempUI, RV, cmd, RS, Instructions, WayBackOn, Title, a, b, c, d, e, f | |
dim PersonID, Redirect, Crypto, Mail, Field, Condition, Value, Field1, Condition1, Value1, OrderBy | |
dim Table, ExtendedField, USPos, HyphenPos, FieldID, TotalSpans, andor, FieldID1, Table1, ExtendedField1 | |
dim USPos1, HyphenPos1, MoreSearch, SearchSql, objRegExp, SearchCondition, SearchCondition1, clause | |
dim DateField, DateField1, NumericField, NumericField1, intPageCount, PagePos, PageSize, intStart | |
dim intFinish, OrderByDir, OrderByCol, sql, WayBackArray(), RP, ArticleTitle, CancelDate, ErrorMessage | |
dim Course, CourseArray, RequestID, Editor, Choice, DeputyFor, DeputyForArray, cwcid, cwredir, series | |
dim School, Degree, PageSize1, PagePos1, OrderByCol1, OrderByDir1, PageSize2, PagePos2, OrderByCol2 |
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
dim Root, Utility, ErrorOccurred, ErrorType, CookieTimeStamp, FormTimeStamp, FormID, PageClass, PageID, PageTitle, InterfaceID, strTempUI, RV, cmd, RS, Instructions, WayBackOn, Title, a, b, c, d, e, f, PersonID, Redirect, Crypto, Mail, Field, Condition, Value, Field1, Condition1, Value1, OrderBy, Table, ExtendedField, USPos, HyphenPos, FieldID, TotalSpans, andor, FieldID1, Table1, ExtendedField1, USPos1, HyphenPos1, MoreSearch, SearchSql, objRegExp, SearchCondition, SearchCondition1, clause, DateField, DateField1, NumericField, NumericField1, intPageCount, PagePos, PageSize, intStart, intFinish, OrderByDir, OrderByCol, sql, WayBackArray(), RP, ArticleTitle, CancelDate, ErrorMessage, Course, CourseArray, RequestID, Editor, Choice, DeputyFor, DeputyForArray, cwcid, cwredir, series, School, Degree, PageSize1, PagePos1, OrderByCol1, OrderByDir1, PageSize2, PagePos2, OrderByCol2, OrderByDir2, NonePending, StatusID, FolderID, FolderName, WillBring, RequestArray, CourseID, CourseName, SearchArray, KeyWords, ft, Cho |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.