EYK_PROFILE=/.eyk/admin.json eyk apps
EYK_PROFILE=/.eyk/admin.json eyk register https://eyk.giftster-us-east-2.giftster.ey.io --username=ianfitzpatrick --password= --email=ian@giftster.com --login=true --ssl-verify=true
EYK_PROFILE=~/.eyk/admin.json eyk perms:create ianfitzpatrick -a giftster-static-staging
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
# Find orphaned group invite/request notifications | |
from django.core.paginator import Paginator | |
from notifications.constants import NOTIFY_INVITE, NOTIFY_REQUEST | |
from notifications.models import Notification | |
problem_objs = [] | |
objs = Notification.objects.filter(sub_type__in=[NOTIFY_INVITE, NOTIFY_REQUEST]) | |
len_objs = objs.count() | |
chunk_size = 25000 | |
i = 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
import sys | |
from django.core.paginator import Paginator | |
from notifications.constants import NOTIFY_UPDATE | |
from lists.models import List | |
from lists.permissions.permissions import can_read_wishlist_via_shared_group | |
from notifications.models import Notification | |
list_ids = List.objects.filter(privacy_level=List.PUBLIC).values_list('id', flat=True) | |
objs = Notification.objects.filter(sub_type=NOTIFY_UPDATE, object_id__in=list_ids) |
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
docker buildx build --target base --platform linux/amd64 -t giftster-app-base-x86 . | |
docker image save giftster-app-base-x86 -o ~/Downloads/giftster-app-base-x86.tar | |
sftp -i ~/.ssh/id_ed25519_ianatgiftsterdotcom uploader@ec2-3-231-108-58.compute-1.amazonaws.com | |
put /Users/ianfitzpatrick/Downloads/giftster-app-base-x86.tarls |
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
As a reminder: | |
> git remote -v | |
eyk-stag ssh://git@eyk-builder.giftster-us-east-2.giftster.ey.io:2222/giftster-app-staging.git (fetch) | |
eyk-stag ssh://git@eyk-builder.giftster-us-east-2.giftster.ey.io:2222/giftster-app-staging.git (push) | |
---- | |
❯ git push eyk-stag dev |
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
INSERT INTO `fetch_matchdomain` (`id`, `currency_symbol`, `domain_name`, `priority`, `region`, `description`, `notes`, `provider_id`, `exact_match`) | |
VALUES | |
(1, X'24', X'616D617A6F6E2E636F6D', 1, X'5553', X'416D617A6F6E2E636F6D205553', X'', 2, NULL), | |
(5, X'24', X'616D617A6F6E2E6361', 1, X'4341', X'416D617A6F6E2043616E616461', X'', 2, NULL), | |
(6, X'C2A3', X'616D617A6F6E2E636F2E756B', 1, X'554B', X'416D617A6F6E20556E69746564204B696E67646F6D', X'', 2, NULL), | |
(7, X'E282AC', X'616D617A6F6E2E6465', 1, X'4445', X'416D617A6F6E204765726D616E79', X'', 2, NULL), | |
(8, X'24', X'7777772E746F79737275732E636F6D', 1, X'', X'546F79732052205573', X'546F7973205220557320697320626C6F636B696E672064696666626F742C20736F20747279696E67207769746820456D6265642E6C7920666F722061207768696C65202031312F3230206261636B20746F2064696666626F742063616E20676574207072696365', 3, NULL), | |
(11, X'24', X'666F6F746C6F636B65722E636F2E756B', 1, X'', X'', X'', 3, NULL), | |
(12, X'24', X'7777772E6C65626F7264656C646567656F7267657474652E636F6D', 1, X'', X'', X' |
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
Three background things: | |
1. Stephen Krashen’s Theory of Second Language Acquisition: | |
https://www.sk.com.br/sk-krash-english.html | |
Pretty much boils down to: | |
- Excessive-self monitoring and learning via grammar-first (see: duolingo) makes language acquisition way harder. | |
- We learn language via comprehensible input, “i + 1”, you need to find input that is + 1 past what you already know | |
- Stress, doubt, and basically being afraid to fuck up also kill language acquisition. | |
Here’s a lecture on his theories if you are interested: https://www.youtube.com/watch?v=t3lv7ExApHM&t=101s | |
Edit: Actually, this may be a better video. I’m having trouble finding one where he succinctly goes through his theories: | |
https://www.youtube.com/watch?v=Xn2k8I8by8o |
The boring parts of standing up a twitter bot I always forget. This guide should get you from "I got absolutely nothing" to "I posted a thing to twitter with Python!"
Here's the deal. If you make a bunch of bot accounts, and all those accounts are tied to one cell phone number, you are in for a round of API access recovation musical chairs.
To get around this, you need to create your own central twitter app. This app will in turn then be used by all your bot accounts. This app will be tied to your main account, backed by your phone number.
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
w = 1400 | |
h = 1000 | |
scl = 20 | |
flying = 0 | |
terrain = [] | |
def setup(): | |
global terrain, rows, cols | |
size(600, 600, P3D) | |
cols = w / scl |
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
// The Nature of Code | |
// Daniel Shiffman | |
// http://natureofcode.com | |
let walker | |
function setup() { | |
createCanvas(640,360) | |
walker = new Walker() | |
background(127) |
NewerOlder