Skip to content

Instantly share code, notes, and snippets.

View silenceshell's full-sized avatar
🐈
Coding

silenceshell silenceshell

🐈
Coding
View GitHub Profile
@silenceshell
silenceshell / Openvswitch LTS in CentOS 7.md
Created March 15, 2018 11:35 — forked from umardx/Openvswitch LTS in CentOS 7.md
Installation Openvswitch LTS in CentOS 7

The most recent release from the LTS series: http://openvswitch.org/releases/openvswitch-2.5.4.tar.gz

Instructions:

As the root user let’s install some packages:

yum -y install wget openssl-devel gcc make python-devel openssl-devel kernel-devel graphviz kernel-debug-devel autoconf automake rpm-build redhat-rpm-config libtool python-twisted-core python-zope-interface PyQt4 desktop-file-utils libcap-ng-devel groff checkpolicy selinux-policy-devel

Add a new user and switch to that user:

@silenceshell
silenceshell / gist:d97c3d9b0ba21d71f21c3a60db1fb284
Last active November 29, 2023 05:26 — forked from jordelver/gist:3073101
Set the Mac OS X SOCKS proxy on the command line

Set the Mac OS X SOCKS proxy on the command line

a.k.a. what to do when your ISP starts blocking sites :(

1 ssh to remote server as a SOCKS server

ssh -D 6080 {user}@{ssh_server} -p {ssh_port}
@silenceshell
silenceshell / 0_reuse_code.js
Created August 31, 2017 02:59
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@silenceshell
silenceshell / dockerhub-v2-api-organization.sh
Created August 31, 2017 02:06 — forked from kizbitz/dockerhub-v2-api-organization.sh
Get the list of images and tags for a Docker Hub organization account
#!/bin/bash
# Example for the Docker Hub V2 API
# Returns all images and tags associated with a Docker Hub organization account.
# Requires 'jq': https://stedolan.github.io/jq/
# set username, password, and organization
UNAME=""
UPASS=""
ORG=""