- Step 1: Navigate to Proxy settings.
- Step 2: Select "Manual proxy settings - HTTP".
- Hostname: localhost
- Port: 80
Set no proxy for:
# -*- coding: utf-8 -*- | |
# 14-8-20 | |
# create by: snower | |
import os | |
import time | |
import struct | |
import fcntl | |
from logging.handlers import RotatingFileHandler, TimedRotatingFileHandler |
import uuid | |
from datetime import datetime | |
import boto3 | |
from django.conf import settings | |
from mypy_boto3_s3 import S3Client | |
from rest_framework import serializers | |
from rest_framework.response import Response | |
from myproject.models import ProfilePhoto |
# $HOME/.config/alacritty/alacritty.toml | |
# by Rito Ghosh 2023-10-06 | |
# Alacritty now uses TOML formatting for its config files. | |
# This is a simple example. | |
# There are the specification here: https://github.com/alacritty/alacritty/blob/master/extra/man/alacritty.5.scd | |
# It is not obvious how it translates to TOML. But it is extremely straightforward. | |
# example: WINDOW, COLORS, etc. are tables, and should be represented as [window], [colors], respectively. |
Some tips about debugging Git with GDB and LLDB.
By default, Git's Makefile compiles Git with debug symbols (-g
),
but with optimization level -O2
, which can lead to some variable being optimized out and thus making the executable harder to debug.
To compile with -O0
, you can tweak CFLAGS
using config.mak
:
$ cat config.mak
#!/bin/sh | |
if [ "$#" -lt 1 ]; then | |
echo "Please enter a file name." | |
exit 1 | |
fi | |
file="$1" | |
if [ "${file: -4}" != ".app" ]; then |
#!/usr/bin/env osascript -l JavaScript | |
// macOS Sierra uses a JavaScriptCore analagous to that in Safari 10.1. This supports all of | |
// ECMAScript 2015 (“ES6”), and even much of ECMAScript 2016! For instance, try `async` functions: | |
async function hello(){ | |
return "Hello, world!" | |
} | |
function run(argv) { | |
var p = hello(); |