Skip to content

Instantly share code, notes, and snippets.

@pax-k
pax-k / private_fork.md
Created June 7, 2023 20:55 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@pax-k
pax-k / husky-lint-staged-turbo.md
Last active February 1, 2023 22:25
Husky, lint-staged, Turbo
@pax-k
pax-k / cloneall.sh
Last active December 8, 2021 00:27 — forked from potter0815/cloneall.sh
clone all private repos of an organization
#!/bin/bash
#requires jq -> http://stedolan.github.io/jq/
organization="kadena-io"
repo_list=$(curl https://api.github.com/orgs/$organization/repos?per_page=100 | jq .[].ssh_url | sed -e 's/^"//' -e 's/"$//')
for repo in $repo_list
do
@pax-k
pax-k / .eslintrc.js
Created April 8, 2021 09:22 — forked from antoinerousseau/.eslintrc.js
React Eslint config with TypeScript and Prettier
// yarn add typescript
// yarn add -D eslint prettier eslint-config-prettier eslint-plugin-prettier eslint-plugin-react eslint-plugin-react-hooks @typescript-eslint/parser @typescript-eslint/eslint-plugin
// yarn add -D @types/react @types/react-dom
module.exports = {
parser: "@typescript-eslint/parser",
plugins: ["react", "react-hooks", "prettier"],
extends: ["plugin:react/recommended", "plugin:prettier/recommended"],
parserOptions: {
ecmaVersion: 2018,
docker rm -f $(docker ps -qa)
docker rmi -f $(docker images -q)
docker volume rm $(docker volume ls -q)
for mount in $(mount | grep tmpfs | grep '/var/lib/kubelet' | awk '{ print $3 }') /var/lib/kubelet /var/lib/rancher; do umount $mount; done
rm -rf /etc/ceph \
/etc/cni \
/etc/kubernetes \
#!/usr/bin/env bash
set -ex
if [[ "$OSTYPE" == "linux-gnu" ]]; then
# Linux
sudo apt-get update && sudo apt-get install ioquake3
mkdir -p ~/.q3a/baseq3 && pushd "$_"
elif [[ "$OSTYPE" == "darwin"* ]]; then