nc -knvl $PORT
rm -f /tmp/f; mkfifo /tmp/f
# https://github.com/docker/compose | |
curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-linux-x86_64 > /usr/libexec/docker/cli-plugins/docker-compose | |
chmod +x /usr/libexec/docker/cli-plugins/docker-compose |
package main | |
import ( | |
"fmt" | |
"os" | |
"strings" | |
"github.com/fsouza/go-dockerclient" | |
//"github.com/tonnerre/golang-pretty" | |
) |
#! /bin/bash | |
#get all data | |
ROUTE=$(cat /proc/net/route | grep -v "Iface") | |
TCP=$(cat /proc/net/tcp | grep "[0-9]: ") | |
UDP=$(cat /proc/net/udp | grep "[0-9]: ") | |
SOCKETS=$(ls -l $(find /proc/*/fd/ -type l 2>/dev/null) 2>/dev/null | grep socket) | |
parse_ipv4() |
// I did this in Chrome... | |
// | |
// Go to https://www.facebook.com/ads/preferences/ | |
// Click the "Advertisers" section to open it up. | |
// Click "See more" once | |
// Before doing anything else, just keep clicking space bar to trigger the "see more" button | |
// Do this for a bit until all the advertisers are loaded | |
// then run this below in the dev tools console... | |
// (It will take a few minutes, depending how many you have, and your browser may lock up, but once it's done you will see it auto clicked the "remove" X in the top right for all of them) |
#! /usr/bin/env bash | |
# info: https://wiki.archlinux.org/index.php/Bluetooth_headset#Troubleshooting | |
set -eu | |
DEVICE_NAME="TODO" | |
reset_bt() | |
{ | |
# turn card off | |
CARD=$(pactl list cards short | cut -f2 | grep blue | head -1) |
/* | |
Preference file for user scope | |
Please refer to the documentation online (https://github.com/theia-ide/theia/blob/master/packages/preferences/README.md) to learn how preferences work in Theia | |
*/ | |
{ | |
"git.decorations.colors": true | |
"editor.minimap.enabled": true |
#!/usr/bin/env python | |
import pygtk | |
pygtk.require('2.0') | |
import gtk | |
import os | |
import getpass | |
class cb_exit: | |
def disable_buttons(self): |
FROM ubuntu:14.04 as build | |
RUN apt update && \ | |
apt install -y autoconf automake libtool shtool cmake clang git make tcl pkg-config python2.7 curl | |
RUN git clone --depth 1 https://chromium.googlesource.com/chromium/tools/depot_tools.git /depot_tools | |
ENV PATH=$PATH:/depot_tools | |
RUN mkdir /ct | |
WORKDIR /ct |