Skip to content

Instantly share code, notes, and snippets.

View rcg4u's full-sized avatar

SleepyNerdLive rcg4u

View GitHub Profile
@rcg4u
rcg4u / openwrt-lede-openvpn-client.md
Created September 8, 2019 18:43 — forked from braian87b/openwrt-lede-openvpn-client.md
Setting an OpenWrt / LEDE Based Router as OpenVPN Client

These instructions should work for Streisand as well for others VPN providers (Streisand is a Software that automatically configures a VPS online server with OpenVPN and other VPN/Proxy Softwares in order to have a private VPN Server)

These instructions are for getting an OpenWrt Based Router working as OpenVPN Client (should work for LEDE, Gargoyle and another distributions). Computers connected to Lan Ports of the OpenWrt Router will navigate through the Internet connection of the OpenVPN Server (in this case the Streisand one previously set up) you need a working Router with OpenWrt based firmware flashed on it (LEDE or eko.one.pl could also work) steps works well on Chaos Calmer 15.05 or 15.05.1.

  1. You need to telnet 192.168.1.1 (OpenWrt Router) and set up a password using passwd You can skip this if you already have a password and can connect using ssh.
{"agency_base_standard_classes":{"standard_class_group":[{"group_name":"Breakpoints (Reference Only)","classes":[{"class":"s","description":"Mobile (up to 480px)"},{"class":"m","description":"Mobile (up to 768px)"},{"class":"l","description":"Tablet (up to 992px)"},{"class":"xl","description":"Small Desktop (up to 1400px)"}]},{"group_name":"Columns - Gaps & Grow","classes":[{"class":"c-columns-gap-s","description":"Small columns gap"},{"class":"c-columns-gap-m","description":"Medium columns gap"},{"class":"c-columns-gap-l","description":"Large columns gap"},{"class":"c-columns-gap-xl","description":"Extra large columns gap"},{"class":"c-columns-gap-xxl","description":"Extra-extra large columns gap"},{"class":"c-column-grow","description":"Grow column to second column"},{"class":"c-row-grow","description":"Grow column to second row"}]},{"group_name":"Columns - Desktop","classes":[{"class":"c-columns-6"},{"class":"c-columns-5"},{"class":"c-columns-4"},{"class":"c-columns-3"},{"class":"c-columns-2"},{"class":"c-
@rcg4u
rcg4u / disable-comments.sh
Created November 16, 2020 03:53 — forked from jplhomer/disable-comments.sh
Disable all comments/pings in WordPress with WP-CLI
$ wp post list --format=ids | xargs wp post update --comment_status=closed
# Output:
# Success: Updated post 2514.
# Success: Updated post 2511.
# Success: Updated post 2504.
# Success: Updated post 2499.
# Success: Updated post 2441.
# etc...
@rcg4u
rcg4u / curlStreamedDownload.php
Created January 19, 2022 16:19 — forked from lmammino/curlStreamedDownload.php
Download a large file (streaming) with php and curl extension
<?php
$url = 'http://www.example.com/a-large-file.zip';
$path = '/path/to/a-large-file.zip';
$fp = fopen($path, 'w');
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_FILE, $fp);
$data = curl_exec($ch);