Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| import { AppBskyEmbedVideo, AtpAgent } from "npm:@atproto/api"; | |
| const userAgent = new AtpAgent({ | |
| service: prompt("Service URL (default: https://bsky.social):") || | |
| "https://bsky.social", | |
| }); | |
| await userAgent.login({ | |
| identifier: prompt("Handle:")!, | |
| password: prompt("Password:")!, |
| import { | |
| AppBskyEmbedVideo, | |
| AppBskyVideoDefs, | |
| AtpAgent, | |
| BlobRef, | |
| } from "npm:@atproto/api"; | |
| const userAgent = new AtpAgent({ | |
| service: prompt("Service URL (default: https://bsky.social):") || | |
| "https://bsky.social", |
| # db/migrate/XXXXXXXXXXXXX_add_authentication_token_to_users.rb | |
| class AddAuthenticationTokenToUsers < ActiveRecord::Migration | |
| def change | |
| add_column :users, :authentication_token, :string | |
| add_index :users, :authentication_token, :unique => true | |
| end | |
| end |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| # remove any bad refs | |
| git remote prune origin | |
| # pipe into bash and auto-delete any branches that have been merged into master! | |
| git log master --pretty=format:'%d' | grep '^ (origin' | tr -d ' ()' | sed 's/origin\//git push origin :/' |
| find ~ -name '*.log' -print0 | xargs -0 -L1 stat -f'%z %N' | sort -rn | tee fat-logfiles.txt | head | |
| awk '{ total += $1 } END { printf "total: %5.2f MiB\n", total/1024/1024 }' < fat-logfiles.txt |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
| Duff OMelia (8): | |
| Don't use an rvm gemset. | |
| Fixed unit test. | |
| Upgrade colored gem | |
| Don't need the version for map_by_method gem. | |
| Don't need to specify a version for the will_paginate_gem. | |
| Upgrade the database_cleaner gem. | |
| Upgraded mocha gem. | |
| Fix exception we just received. |