Skip to content

Instantly share code, notes, and snippets.

View akoidan's full-sized avatar
👀
Looking for an employment

Andrew Koidan akoidan

👀
Looking for an employment
View GitHub Profile
WORKDIR /usr/src/sass
#COPY requirements.txt ./
#RUN pip install --no-cache-dir -r requirements.txt
RUN apt-get update -qq
RUN apt-get install -y curl git build-essential automake libtool
RUN git clone https://github.com/sass/libsass.git
RUN git clone https://github.com/sass/sassc.git libsass/sassc
WORKDIR /usr/src/sass/libsass
from flask import Flask
from redis import Redis, RedisError
import os
import socket
# Connect to Redis
redis = Redis(host="redis", db=0, socket_connect_timeout=2, socket_timeout=2)
app = Flask(__name__)
@akoidan
akoidan / tf
Created September 28, 2017 14:42
: ./tf
Team Explorer Everywhere Command Line Client (version 11.0.0.201306181526)
Available commands and their options:
add [-lock:none|checkin|checkout] [-type:<value>] [-recursive] [-silent] [-noignore] <localItemSpec>...
branch [-version:<value>] [-noget] [-lock:none|checkin|checkout] [-recursive] [-checkin] [-comment:<value>|@valuefile] [-author:<value>]
[-notes:"note"="value"[;"note2"="value2"[;...]]|@notefile] <oldItemSpec> <newLocalItem>
branches [-version:<value>] <itemSpec>...
changeset [-latest] [-comment:<value>|@valuefile] [-notes:"note"="value"[;"note2"="value2"[;...]]|@notefile] [changenumber]
user http http;
#user html;
worker_processes 2;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
=86400, settings=TrafficControlSetting(down=Shaping(loss=Loss(percentage=0.0, correlation=0.0), delay=Delay(delay=0, jitter=0, correlation=0.0), rate=1, iptables_options=[], corruption=Corruption(percentage=0.0, correlation=0.0), reorder=Reorder(percentage=0.0, correlation=0.0, gap=0)), up=Shaping(loss=Loss(percentage=0.0, correlation=0.0), delay=Delay(delay=0, jitter=0, correlation=0.0), rate=1, iptables_options=[], corruption=Corruption(percentage=0.0, correlation=0.0), reorder=Reorder(percentage=0.0, correlation=0.0, gap=0))))
INFO:AtcdVService.AtcdLinuxShaper:Shaping ip 192.168.12.135 on interface ap0
INFO:AtcdVService.AtcdLinuxShaper:create new HTB class on IFID ap0, classid 1:5,parent 1:0, rate 1kbits
INFO:AtcdVService.AtcdLinuxShaper:create new Netem qdisc on IFID ap0, parent 1:5, loss 0.0%, delay 0
INFO:AtcdVService.AtcdLinuxShaper:create new FW filter on IFID ap0, classid 1:5, handle 5, rate: 1kbits
INFO:AtcdVService.AtcdLinuxShaper:Running /sbin/iptables -t mangle -A FORWARD -d 192.168.12.135 -i ap0
@akoidan
akoidan / create_ap
Created May 30, 2017 16:36
create_ap
: sudo create_ap wlp62s0 enp61s0 MSI_AP
Config dir: /tmp/create_ap.wlp62s0.conf.mT0OsK89
PID: 1309
Network Manager found, set ap0 as unmanaged device... DONE
Creating a virtual WiFi interface... ap0 created.
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlp62s0.conf.mT0OsK89/hostapd_ctrl
Configuration file: /tmp/create_ap.wlp62s0.conf.mT0OsK89/hostapd.conf
Using interface ap0 with hwaddr 34:68:95:0d:cf:a7 and ssid "MSI_AP"
ap0: interface state UNINITIALIZED->ENABLED
curl https://raw.githubusercontent.com/facebook/augmented-traffic-control/master/utils/dump_system_info.sh | bash -s - ap0 enp61s0
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 570 100 570 0 0 2069 0 --:--:-- --:--:-- --:--:-- 2065
######### uname -a #########
Linux msi 4.10.13-1-ARCH #1 SMP PREEMPT Thu Apr 27 12:15:09 CEST 2017 x86_64 GNU/Linux
######### cat /etc/os-release #########
$F2::DrinkFlask()
DrinkFlask() {
Send {1}
Send {2}
Send {3}
Send {4}
Send {5}
}
: cat /proc/cmdline
initrd=\intel-ucode.img initrd=\initramfs-linux.img root=/dev/nvme0n1p4 rw
: uname -a
Linux localhost.localdomain 4.4.5-1-ARCH #1 SMP PREEMPT Thu Mar 10 07:38:19 CET 2016 x86_64 GNU/Linux
--------------------------------------------------------------------
--------------------------------------------------------------------
--------------------------------------------------------------------
--------------------------------------------------------------------
--------------------------------------------------------------------
[ 0.000000] Initializing cgroup subsys cpuset
@akoidan
akoidan / -
Created January 8, 2016 13:15
-- Logs begin at Thu 2015-12-03 11:54:53 EET, end at Fri 2016-01-08 15:15:23 EET. --
Jan 08 15:13:20 localhost systemd-journald[240]: Runtime journal (/run/log/journal/) is currently using 8.0M.
Maximum allowed usage is set to 1.5G.
Leaving at least 2.3G free (of currently available 15.6G of space).
Enforced usage limit is thus 1.5G, of which 1.5G are still available.
Jan 08 15:13:20 localhost kernel: Initializing cgroup subsys cpuset
Jan 08 15:13:20 localhost kernel: Initializing cgroup subsys cpu
Jan 08 15:13:20 localhost kernel: Initializing cgroup subsys cpuacct
Jan 08 15:13:20 localhost kernel: Linux version 4.4.0-rc5-g1eab0e4 (andrew@localhost) (gcc version 5.2.0 (GCC) ) #1 SMP PREEMPT Sat Dec 19 19:36:29 EET 2015
Jan 08 15:13:20 localhost kernel: Command line: initrd=\intel-ucode.img initrd=\initramfs-linux-git.img root=/dev/nvme0n1p4 rw nouveau.modeset=0 in