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
| diff --git a/irgramd b/irgramd | |
| old mode 100644 | |
| new mode 100755 | |
| diff --git a/telegram.py b/telegram.py | |
| index 39e02aa..8d727e3 100644 | |
| --- a/telegram.py | |
| +++ b/telegram.py | |
| @@ -15,57 +15,74 @@ import asyncio | |
| import collections | |
| import telethon |
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
| tmux_conf_theme_colour_1="#2e3440" # dark gray | |
| tmux_conf_theme_colour_2="#3b4252" # gray | |
| tmux_conf_theme_colour_3="#4c566a" # light gray | |
| tmux_conf_theme_colour_4="#5e81ac" # light blue | |
| tmux_conf_theme_colour_5="#ebcb8b" # yellow | |
| tmux_conf_theme_colour_6="#2e3440" # dark gray | |
| tmux_conf_theme_colour_7="#e5e9f0" # white | |
| tmux_conf_theme_colour_8="#2e3440" # dark gray | |
| tmux_conf_theme_colour_9="#ebcb8b" # yellow | |
| tmux_conf_theme_colour_10="#d08770" # pink |
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
| /* A quick reminder on how to use Promises with Node and Express in order to run potentially | |
| * time-consuming jobs asynchronously (assuming the jobs are able to run in the background thanks to | |
| * libuv and actually return Promises). | |
| * | |
| * Start the server, navigate to /startjob, then refresh a few times, the job should be in progress. | |
| * You can navigate elsewhere in the "app" in other browser tabs in the meanwhile (/). After about | |
| * 20s, you should get a result by refreshing the tab where you originally submitted the job. | |
| * | |
| * I hope this pattern will be useful e.g. for processing images with the `sharp` library (see | |
| * <http://sharp.dimens.io>). |
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
| /* eslint-disable @typescript-eslint/ban-types */ | |
| // @ts-nocheck | |
| /** | |
| * Use to patch all functions/methods in a class and make them print out run time | |
| * in ms to the console. | |
| * | |
| * This decorator will only patch functions declared in the target class. | |
| * It will **not** patch functions reside in the **base class**. | |
| * Dynamically created functions or functions received from the outside as input |
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
| #!/bin/env python | |
| """ | |
| use the api token from jira: https://id.atlassian.com/manage-profile/security/api-tokens | |
| # add to ~/.bashrc | |
| export JIRA_API_TOKEN="" | |
| export JIRA_USER="" | |
| export JIRA_URL="https://myjira.atlassian.net/" |
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 script born about the needs of implement a virus scanner for files using a api rest. | |
| # then using https://github.com/benzino77/clamav-rest-api/ and https://dokkupose.netlify.app | |
| # I create this script to deploy the api rest | |
| ## | |
| ### dokku apps:destroy clamav-service && dokku apps:destroy clamav-apirest && dokku network:destroy clamav-net | |
| # Let's create a network bridge to communicate | |
| dokku apps:create clamav-service |
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 pdfminer.pdfparser import PDFParser | |
| from pdfminer.pdfdocument import PDFDocument | |
| from pdfminer.pdftypes import resolve1 | |
| # I exported the comments I had made in an Adobe Reader DC document to f:temp/stn.fdf. | |
| # Now I wanted to access those comments outside of the Adobe Reader. Here is how I extracted the comments. | |
| fdf_file = open("F:/temp/stn.fdf", 'rb') |
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
| [ | |
| { | |
| "objectId": "hKljil8WpZ", | |
| "ProgrammingLanguage": "@Formula", | |
| "Source": "http://en.wikipedia.org/wiki/Formula_language", | |
| "createdAt": "2020-02-06T16:22:51.408Z", | |
| "updatedAt": "2020-02-06T16:22:51.408Z" | |
| }, | |
| { | |
| "objectId": "chpqVvCNF3", |
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 sys | |
| from dotenv import dotenv_values | |
| """ | |
| # pip install python-dotenv | |
| # using https://github.com/anomaly/github-secrets-cli | |
| main.py .secretsenv org repo | bash | |
| """ | |
| def main(): | |
| e =dotenv_values(dotenv_path=sys.argv[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
| [CmdletBinding()] Param ( | |
| [Parameter(Mandatory=$true)][ValidateSet('Off', 'On')][string]$BluetoothStatus | |
| ) | |
| If ((Get-Service bthserv).Status -eq 'Stopped') { Start-Service bthserv } | |
| Add-Type -AssemblyName System.Runtime.WindowsRuntime | |
| $asTaskGeneric = ([System.WindowsRuntimeSystemExtensions].GetMethods() | ? { $_.Name -eq 'AsTask' -and $_.GetParameters().Count -eq 1 -and $_.GetParameters()[0].ParameterType.Name -eq 'IAsyncOperation`1' })[0] | |
| Function Await($WinRtTask, $ResultType) { | |
| $asTask = $asTaskGeneric.MakeGenericMethod($ResultType) | |
| $netTask = $asTask.Invoke($null, @($WinRtTask)) | |
| $netTask.Wait(-1) | Out-Null |
NewerOlder