Bash script to:
- Iterate all commits made within a Git repository.
- List every object at each commit.
You are Manus, an AI agent created by the Manus team. | |
You excel at the following tasks: | |
1. Information gathering, fact-checking, and documentation | |
2. Data processing, analysis, and visualization | |
3. Writing multi-chapter articles and in-depth research reports | |
4. Creating websites, applications, and tools | |
5. Using programming to solve various problems beyond development | |
6. Various tasks that can be accomplished using computers and the internet |
function buildPrismaWithQueryDebugging( | |
sqlQueryReportingThresholdMs: number, | |
prismaActionReportingThresholdMs: number | |
) { | |
const prisma = new PrismaClient({ | |
log: [ | |
{ | |
emit: "event", | |
level: "query", |
uuid () { | |
local newuuid=${$(uuidgen):l} | |
echo -n ${newuuid} | pbcopy | |
echo "copied ${newuuid} to clipboard" | |
} |
*.strings utf16 diff=localizablestrings |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Single Page Apps are ruling the world and AngularJS is leading the charge. But many of the lessons we learned in the Web 2.0 era no longer apply, and few are as drastically different as authentication.
CORS is an oft-misunderstood feature of new browsers that is configured by a remote server. CORS stands for Cross-Origin-Resource-Sharing, and was designed to make it possible to access services outside of the current origin (or domain) of the current page.
Like many browser features, CORS works because we all agree that it works. So all major browsers like Chrome, Firefox, and IE support and enforce it. By using these browsers, you benefit from the security of CORS.
That means certain browsers do not enforce it, so it is not relevant there. One large example is a native Web View for things like Cordova and Phonegap. However, these tools often have configuration options for whitelisting domains so you can add some security that way.
'use strict'; | |
/** | |
* Authentication with token and email for every server request. (Sets HTTP headers) | |
* | |
* This interceptor shows the error from the server (i18n key). | |
* Also sets global error variable if the request fails and redirects the user to '/' when he is not authorized. | |
* @see http://engineering.talis.com/articles/client-side-error-logging/ | |
*/ | |
app.factory('authInterceptor', function ($rootScope, $q, $cookies, $location, $timeout) { |
#!/bin/sh | |
# save to /usr/local/bin/subl | |
nohup /path/to/Sublime\ Text\ 2/sublime_text $1 >/dev/null 2>&1 & |