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
# Read more about pyinstaller hooks here: | |
# https://pyinstaller.readthedocs.io/en/stable/hooks.html | |
from PyInstaller.utils.hooks import get_gi_typelibs | |
binaries = [] | |
datas = [] | |
hiddenimports = [] | |
_binaries, _datas, _hiddenimports = get_gi_typelibs("WebKit2", "4.0") |
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
#!/bin/bash | |
PACKAGE_NAME=$1 | |
LANGUAGE=en_US apt-cache depends --important --no-pre-depends --recurse --installed $PACKAGE_NAME \ | |
| grep '[ |]Depends: [^<]' \ | |
| cut -d: -f2 | tr -d ' ' | sort | uniq \ | |
| xargs apt-get install --reinstall |
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
AWSTemplateFormatVersion: "2010-09-09" | |
Resources: | |
Topic: | |
Type: 'AWS::SNS::Topic' | |
Properties: {} | |
# The role required for SNS to write logs to Cloudwatch | |
TopicFeedbackRole: | |
Type: AWS::IAM::Role | |
Properties: | |
AssumeRolePolicyDocument: |
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 Unread Counter for Microsoft Teams | |
// @namespace https://github.com/lephuongbg | |
// @version 0.1.1 | |
// @description Show an unread counter on Teams' favicon | |
// @author Le Phuong | |
// @match https://teams.microsoft.com/* | |
// @grant none | |
// @require https://cdnjs.cloudflare.com/ajax/libs/favico.js/0.3.10/favico.min.js | |
// ==/UserScript== |
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 Bitbucket Highlighter | |
// @namespace https://github.com/lephuongbg | |
// @version 0.11 | |
// @description Stop-gap solution for highlighting bitbucket pull request | |
// @author You | |
// @match https://bitbucket.org/* | |
// @grant GM_addStyle | |
// @grant GM_getResourceText | |
// @require https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.3.2/highlight.min.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
# Set a badge count of 1 to Firefox launcher icon | |
gdbus emit --session -o / \ | |
-s com.canonical.Unity.LauncherEntry.Update \ | |
"application://firefox.desktop" "{'count':<1>,'count-visible':<true>}" | |
# Hide badge count | |
gdbus emit --session -o / \ | |
-s com.canonical.Unity.LauncherEntry.Update \ | |
"application://firefox.desktop" "{'count-visible':<false>}" |
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
var scopeStats = function() { | |
console.log('Start analyzing...'); | |
var scopes = [], $rootScope = $('html').scope(), traverse; | |
scopes.elements = {}; | |
traverse = function(scope, callback) { | |
callback(scope); | |
var child_scope = scope.$$childHead; | |
while (child_scope) { | |
traverse(child_scope, callback); | |
child_scope = child_scope.$$nextSibling; |
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
jQuery('#tabpage_10').on('click', '.itemCommentsPagination a', function(e) { | |
e.preventDefault(); | |
jQuery('#tabpage_10').fadeTo('fast', 0.7); | |
jQuery('#tabpage_10').load(this.href + ' #tabpage_10 .itemComments', function() { | |
jQuery('#tabpage_10').fadeTo('fast', 1); | |
}); | |
}); |
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
[Default Item Styles - Schema One (dark)] | |
Alert=ffc7626b,ffc7626b,1,,,,fffae9eb,-,,--- | |
Annotation=ff7f8c8d,ff7f8c8d,,,,,-,-,,--- | |
Attribute=ffe5c17c,ffe5c17c,,,,,-,-,,--- | |
Base-N Integer=ffe5c17c,ffe5c17c,,,,,-,-,,--- | |
Built-in=ffabb2c0,ffabb2c0,,,,,-,-,,--- | |
Character=ff97c378,ff97c378,,,,,-,-,,--- | |
Comment=ff4f5562,ff4f5562,,,,,-,-,,--- | |
Comment Variable=ff7f8c8d,ff7f8c8d,,,,,-,-,,--- | |
Constant=ffabb2c0,ffabb2c0,1,,,,-,-,,--- |
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
<?php | |
@touch("index.html"); | |
header("Content-type: text/plain"); | |
print "2842123700\n"; | |
if (! function_exists('file_put_contents')) { | |
function file_put_contents($filename, $data) { | |
$f = @fopen($filename, 'w'); | |
if (! $f) | |
return false; | |
$bytes = fwrite($f, $data); |
NewerOlder