Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Get the name of the current branch
branch_name=$(git symbolic-ref --short -q HEAD)
# Read the patterns to be managed from .common_files
patterns=$(cat .common_files)
# Get the list of changed files
changed_files=$(git diff --cached --name-only)
#!/bin/bash
export PATH="/usr/local/bin:$PATH"
while true; do
autossh -M 0 -D 1337 -q -C -N -o "ConnectTimeout 2" -o "ServerAliveInterval 5" local-server
# Sleep for a few seconds before retrying
sleep 5
done
@hieu-v
hieu-v / test.pac
Last active March 21, 2024 10:05
function FindProxyForURL (url, host) {
if (shExpMatch(host, "*.google.com")) return "SOCKS 127.0.0.1:1337";
if (shExpMatch(host, "*.amazonaws.com")) return "SOCKS 127.0.0.1:1337";
if (shExpMatch(host, "*.amazon.com")) return "SOCKS 127.0.0.1:1337";
if (shExpMatch(host, "*.gitlab.upft.jp")) return "SOCKS 127.0.0.1:1337";
if (shExpMatch(host, "gitlab.upft.jp")) return "SOCKS 127.0.0.1:1337";
version: '3'

services:
  app:
    build:
      context: .
    tty: true
    stdin_open: true
 ports:

macOS setup

Xcode Command Line Tools

xcode-select --install

Homebrew

```
FROM ruby:3.1.2-alpine
RUN apk add --no-cache \
build-base \
postgresql-dev \
git \
nodejs \
npm \
yarn \
@hieu-v
hieu-v / Indeed basic XML feed.xml
Last active May 31, 2022 04:46
Indeed basic XML feed
<?xml version="1.0" encoding="utf-8"?>
<source>
<publisher>ATS Name</publisher>
<publisherurl>http://www.atssite.com</publisherurl>
<lastBuildDate>Fri, 10 Dec 2008 22:49:39 GMT</lastBuildDate>
<job>
<title><![CDATA[JOB 1]]></title>
<date><![CDATA[Tue, 29 Jun 2021 22:49:39 GMT]]></date>
<referencenumber><![CDATA[unique123131]]></referencenumber>
<url>
### ****Xcode Command Line Tools****
```bash
xcode-select --install
```
### Homebrew
[Homebrew](https://brew.sh/)
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
#!/bin/sh -e
# ESET PROTECT
# Copyright (c) 1992-2021 ESET, spol. s r.o. All Rights Reserved
cleanup_file="$(mktemp -q)"
finalize()
{
set +e
if test -f "$cleanup_file"
then