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
Phoenix.set({ | |
daemon: true, | |
openAtLogin: true | |
}); | |
/* full screen */ | |
Key.on('f', [ 'ctrl', 'shift' ], function () { | |
var screen = Screen.main().flippedVisibleFrame(); | |
var window = Window.focused(); |
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
## install upx | |
brew install upx | |
## expand file | |
sudo upx -d ~/Desktop/xf-adesk19.app/Contents/MacOS/x-force | |
## Well done. Just open the file again |
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 os | |
from google.cloud import storage | |
from dotenv import load_dotenv | |
from pathlib import Path | |
class GCPStorage: | |
def __init__(self): | |
load_dotenv(dotenv_path='../.env') | |
self.service_account_path = os.getenv('SERVICE_ACCOUNT_PATH') |
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
<NotepadPlus> | |
<UserLang name="DAX2" ext="dax" udlVersion="2.1"> | |
<Settings> | |
<Global caseIgnored="no" allowFoldOfComments="yes" foldCompact="no" forcePureLC="0" decimalSeparator="0" /> | |
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" /> | |
</Settings> | |
<KeywordLists> | |
<Keywords name="Comments">00-- 01 02 03% 04%</Keywords> | |
<Keywords name="Numbers, prefix1"></Keywords> | |
<Keywords name="Numbers, prefix2"></Keywords> |
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
WITH | |
min_date AS | |
( | |
SELECT TOP 1 DATE_FIELD FROM TABLE_XPTO ORDER BY DATE_FIELD ASC | |
), | |
max_date AS | |
( | |
SELECT TOP 1 DATE_FIELD FROM TABLE_XPTO ORDER BY DATE_FIELD DESC | |
) | |
SELECT |
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
# answered by Luis Gouveia, Apr 7 '20 at 10:45 | |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
Install-PackageProvider -Name NuGet |
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
git config --global commit.template ~/.cfg/commit-template |
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/sh | |
branch="$(git rev-parse --abbrev-ref HEAD)"; | |
commit_regex='((CDW-)([1-9][0-9])|((feat|fix|chore|refactor|style|test|docs)(((\w{0,15})))?))(:.\S.*)'; | |
error_msg="Aborting commit. Your commit message format is invalid, please check the references." | |
commit_message="$1"; | |
if ! grep -iqE "$commit_regex" <<<"${commit_message}"; then | |
echo "$error_msg" >&2 | |
exit 1 | |
fi | |
if [ "$branch" = "master" ]; then |
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
# creating | |
git init --bare $HOME/.cfg | |
alias dotfiles='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME' | |
dotfiles config --local status.showUntrackedFiles no | |
echo "alias dotfiles='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'" >> $HOME/.bashrc | |
# cloning | |
git clone --bare https://github.com/USER_NAME/.dotfiles.git ~/.cfg |
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
@ECHO OFF | |
set yy=%date:~6,4% | |
set mm=%date:~3,2% | |
set dd=%date:~0,2% | |
SET today=%dd%-%mm%-%yy% | |
set hh=%time:~0,2% | |
set MM=%time:~3,2% | |
SET now=%hh%:%MM% |
NewerOlder