# set http proxy
export http_proxy=http://PROXYHOST:PROXYPORT
# set http proxy with user and password
export http_proxy=http://USERNAME:PASSWORD@PROXYHOST:PROXYPORT
# set http proxy with user and password (with special characters)
Discover gists
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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.IO.Compression; | |
using System.IO.MemoryMappedFiles; | |
using System.Xml; | |
namespace UnpEax | |
{ | |
class Program |
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
@-moz-document domain("zenn.dev") { | |
:root { | |
color-scheme: light dark; | |
--c-blue-100: light-dark(#f0f7ff, #1b1e2e); | |
--c-blue-200: light-dark(#ecf5ff, #1f2233); | |
--c-blue-300: light-dark(#e0efff, #242741); | |
--c-blue-400: light-dark(#bfdcff, #2b3558); | |
--c-blue-500: light-dark(#3ea8ff, #3ea8ff); | |
--c-blue-600: light-dark(#0f83fd, #4d6eb4); | |
--c-blue-700: light-dark(#0868ce, #6079b5); |
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/bash | |
# Colors | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
NO_COLOR='\033[0m' | |
BLUE='\033[0;34m' | |
YELLOW='\033[0;33m' | |
NO_COLOR='\033[0m' |
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 SwiftUI | |
/// Supplies an observable object to a view’s hierarchy. | |
/// | |
/// The purpose of `WithBindable` is to make it possible to instantiate | |
/// observable objects from environment values, while keeping the object | |
/// alive as long as the view is rendered. | |
/// | |
/// For example: | |
/// |
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
---------------------------------------------------------------------- | |
// C:\xampp\php\php.ini | |
---------------------------------------------------------------------- | |
[mail function] | |
smtp_port=587 | |
sendmail_from = your-gmail@gmail.com | |
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t" | |
---------------------------------------------------------------------- | |
// C:\xampp\sendmail\sendmail.ini |
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 | |
echo You will need to install pip for Python3 and Homebrew for macOS before continuing. | |
echo Much of this script is provided by TrungNguyen1909. | |
echo Installing dependencies | |
pip3 install pyasn1 | |
brew install libtasn1 meson ninja pixman jtool2 jq coreutils gnutls libgcrypt pkg-config wget glib | |
git clone https://github.com/lzfse/lzfse | |
cd lzfse |
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
Visual Studio 2022 | |
Enterprise : | |
VHF9H-NXBBB-638P6-6JHCY-88JWH | |
Professional: | |
TD244-P4NB7-YQ6XK-Y8MMM-YWV2J |
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 numpy as np | |
def rref(B, tol=1e-8, debug=False): | |
A = B.copy() | |
rows, cols = A.shape | |
r = 0 | |
pivots_pos = [] | |
row_exchanges = np.arange(rows) | |
for c in range(cols): | |
if debug: print "Now at row", r, "and col", c, "with matrix:"; print A |
Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.
NewerOlder