Written by Aaron Blakely
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
| *.aux | |
| *.glo | |
| *.idx | |
| *.log | |
| *.toc | |
| *.ist | |
| *.acn | |
| *.acr | |
| *.alg | |
| *.bbl |
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 __future__ import print_function | |
| import requests | |
| import json | |
| import cv2 | |
| addr = 'http://localhost:5000' | |
| test_url = addr + '/api/test' | |
| # prepare headers for http request | |
| content_type = 'image/jpeg' |
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/bash | |
| os=$(tail -n 1 /etc/lsb-release | sed s/DISTRIB_DESCRIPTION=//g | sed s/\"//g) | |
| arch=$(uname -m) | |
| editor=$EDITOR | |
| shell=$SHELL | |
| wm=$(wmctrl -m | head - -n 1 | sed s/Name\:\ //g) | |
| txtred='\e[0;31m' # Red | |
| txtgrn='\e[0;32m' # Green |
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/bash | |
| # Uncomment the following line to debug the script: | |
| #set -x | |
| ##################################################################################### | |
| # fuckForticlient.sh | |
| # | |
| # Script to authenticate against Fortinet SAML servers using Firefox and | |
| # openfortivpn. This replaces Forticlient for GNU/Linux completely. | |
| # Because openfortivpn does not support SAML login (yet), this script uses Firefox | |
| # to authenticate, grabs SVPNCOOKIE and then calls openfortivpn to setup |
Since v8.1 (May 2018), Vim has shipped with a built-in terminal. See https://vimhelp.org/terminal.txt.html or type :help terminal for more info.
Why use this? Mainly because it saves you jumping to a separate terminal window. You can also use Vim commands to manipulate a shell session and easily transfer clipboard content between the terminal and files you're working on.
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
| # Para mais conteúdos de Python, acesse: https://instagram.com/gabrielsaldanha.dev | |
| # É necessário ter Pillow instalado: | |
| # $ python3 -m pip install Pillow | |
| from PIL import Image, ImageDraw, ImageFont | |
| image = Image.new("RGB", (1080, 1080), color=(41, 46, 48)) | |
| img_draw = ImageDraw.Draw(image) | |
| # Arquivo de fonte Helvetica.ttc deve estar no mesmo diretório | |
| # que o programa está sendo executado |
- Get node binary (node.exe) from http://nodejs.org/download/
- Create the folder where node will reside and move node.exe to it
- Download the last zip version of npm from http://nodejs.org/dist/npm
- Unpack the zip inside the node folder
- Download the last tgz version of npm from http://nodejs.org/dist/npm
- Open the tgz file and unpack only the file bin/npm (without extension) directly on the node folder.
- Add the the node folder and the packages/bin folder to PATH
- On a command prompt execute
npm install -g npmto update npm to the latest version
Now you can use npm and node from windows cmd or from bash shell like Git Bash of msysgit.
Applied rationality for a coding agent. Defensive epistemology: minimize false beliefs, catch errors early, avoid compounding mistakes.
This is correct for code, where:
- Reality has hard edges (the compiler doesn't care about your intent)
- Mistakes compound (a wrong assumption propagates through everything built on it)
- The cost of being wrong exceeds the cost of being slow
OlderNewer

