Skip to content

Instantly share code, notes, and snippets.

@siumhossain
siumhossain / readme.md
Last active September 16, 2023 07:35
How to install selenium chrome web driver in linux

Download chrome webdriver from

Click here for download

Make sure driver version match your chrome browser version

Open folder where chrome driver downloaded and open terminal & run one by one

sudo chmod +x chromedriver
@ljfranklin
ljfranklin / build-glibc-alpine-arm64.md
Last active April 4, 2024 10:24
Steps to build glibc for alpine ARM64

Steps

One-time setup

# Enable emulation for cross-platform images
sudo apt-get install -y binfmt-support qemu-user-static

# Enable cross-build commands in docker
docker buildx create --use
@hydrz
hydrz / gist:abfc2b7b4c2ad4ac733c4836c37dbdf9
Last active February 1, 2023 19:45
tplink TL-R470GP-AC 获取root密码
# 默认端口 33400
# binwalk -e TL-R470GP-AC_V2.0_1.0.8_Build_20200703_Rel.60778.bin 提取文件内容
# 搜索 getNewPasswd 查看密码加密方式
# 使用LAN口的MAC地址
macAddr=7844FD5F42E2
key=$(echo -n "$macAddr" | md5sum)
key=$(echo ${key:0:16})
echo ${key}
@h1code2
h1code2 / openwrt-lede.md
Last active June 7, 2024 14:03
[frp设置自动自动] 不同平台设置frp自动启动 #frp #openwrt

给你的OpenWRT/LEDE 添加frp开机服务

添加PROC服务文件:

vi /etc/init.d/frpc

配置文件内容:

#!/bin/sh /etc/rc.common
@phlinhng
phlinhng / a-trojan-with-nginx-stream-module.md
Last active March 28, 2024 13:39
Trojan + NGINX 多網站共存

利用 NGINX 的 Stream 模塊 sni_preread 功能,可以做到讓 Trojan 和其他網站在同一台機器上共享 443 端口。

@paul-chambers
paul-chambers / torrent-complete
Last active November 8, 2023 06:13
Helper script for deluge or qBittorrent. It hardlinks completed torrents into a destination folder. It also unrars it, if it includes a rar archive.
#!/bin/bash
# Helper script for deluge or qBittorrent bittorrent clients
# Intended to be run when the torrent download completes
#
# for qBittorrent, enable 'Run external program on torrent completion' under 'Downloads' in the options dialog.
# in the text field, enter:
#
# <path to>/torrent-complete.sh "%K" "%N" "%D"
#
@rjdp
rjdp / coursera_downloader.py
Last active December 22, 2020 16:49
Script for downloading course Lectures from coursera specialization or individual course
import os
import requests
import time
import sys
video_quality = "540p" # available qualities 360p, 540p, 720p
"""
In order to get courseId go to a course page open network tab in browser dev tools and search for "onDemandSpecializations"
in search input of network tab and then go to videos section of say week 1 , check the query param "courseId" its value is what we use can use as value for "one_of_specialization_course_id"
@hjbotha
hjbotha / free_ports.sh
Last active July 10, 2024 17:33
Free ports 80 and 443 on Synology NAS
#! /bin/bash
# NEWLY ADDED BACKUP FUNCTIONALITY IS NOT FULLY TESTED YET, USE WITH CARE, ESPECIALLY DELETION
# Developed for DSM 6 - 7.0.1. Not tested on other versions.
# Steps to install
# Save this script in one of your shares
# Edit it according to your requirements
# Backup /usr/syno/share/nginx/ as follows:
# # cd /usr/syno/share/
# # tar cvf ~/nginx.tar nginx
@johngrimes
johngrimes / Dockerfile
Created February 14, 2018 22:21
Injecting environment variables into config.json using Docker
FROM nginx
COPY docker/start.sh /
COPY docker/buildConfig.sh /
RUN chmod +x /start.sh /buildConfig.sh
COPY docker/myapp.nginx.conf /etc/nginx/conf.d/default.conf
COPY build /usr/share/nginx/html
ENV MYAPP_OPTION_A="Default option A value"
@nolram
nolram / Dockerfile
Created August 13, 2017 01:35
Docker-compose: Django + Postgis + RabbitMQ + Celery + Redis
FROM python:3.5
MAINTAINER Marlon Baptista de Quadros(marlonbaptista@hotmail.com)
ENV PYTHONUNBUFFERED 1
RUN apt-get update -y
RUN apt-get -y install binutils libproj-dev gdal-bin postgresql-client python3-lxml
RUN apt-get -y install libmemcached-dev