Skip to content

Instantly share code, notes, and snippets.

@cyppst
cyppst / .telegram.sh
Last active March 5, 2022 23:54
telegram.sh
TELEGRAM_TOKEN="945865147:AAFBT_GKRgIYvWrRorYbnUSXZsIRvK354C8"
TELEGRAM_CHAT="680273290"
@ix4
ix4 / index.html
Created September 13, 2019 13:43 — forked from badosa/index.html
EU vs US
<!DOCTYPE html>
<!--[if lt IE 7]><html class="lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]><html class="lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]><html class="lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html> <!--<![endif]-->
<head>
<title>Visual + JSON-stat: simple line chart</title>
<!-- DO NOT DO THIS IN PRODUCTION -->
<!-- github.io and json-stat.org ARE NOT CDNs! Link to your own copies or to a CDN. -->
@ix4
ix4 / .block
Created September 13, 2019 10:42 — forked from HarryStevens/.block
Major Tweenage
license: gpl-3.0
@ix4
ix4 / .block.md
Created September 13, 2019 10:22 — forked from shimizu/.block.md
日本の貿易収支 1979-2018

height: 900 scrolling: no border: yes

@ix4
ix4 / README.md
Created September 13, 2019 09:58 — forked from tophtucker/README.md
Pagerip

Pinch apart to split the viewport in two, so you can do parallel reading. Pinch together to recombine. Only tested on iPhone & iPad; should work on other multitouch devices?; doesn't do anything (or make any sense) on non-touch single-pointer mouse/trackpad devices, whatever we're calling that classic category these days. But you can see it demo'ed in this tweet.

WHY:

The Web is missing lenses and mirrors and such, I think — images! maps! — fundamental mechanics for getting various views on the same underlying content. We have the freedom to paint any pixel according to any arbitrary rule, and yet it's weirdly hard to . . . like, hold your place in a long document, as one would with a finger marking a page in a book as you skim ahead. Sometimes I highlight the last sentence I read with the mouse so it jumps out when I scroll back up, which is a nice near-unconscious hack that takes advantage of something I know about how document state work

@mamedshahmaliyev
mamedshahmaliyev / raspbian_selenium.sh
Last active March 18, 2024 08:17
Install selenium with chrome driver in raspbian for raspberry pi 3
apt-get install chromium-chromedriver --yes
apt-get install xvfb --yes
pip install PyVirtualDisplay xvfbwrapper selenium
echo '''
from pyvirtualdisplay import Display
from selenium import webdriver
display = Display(visible=0, size=(1024, 768))
display.start()
opts = webdriver.ChromeOptions()
# put file in /etc/systemd/system/
[Unit]
Description=Update DNS entry for this host to current IP
[Service]
Type=oneshot
ExecStart=/bin/sh /usr/local/bin/cloudflare-ddns.sh
@ix4
ix4 / .block
Created May 15, 2019 17:54 — forked from dribnet/.block
PS1 MDDN 242 2019
license: mit
@vincentriemer
vincentriemer / twitter_encode.sh
Created May 5, 2019 02:08
Script to encode videos optimized for Twitter with ffmpeg. NOTE: Read through the entire script before running and modify to your needs, as it is currently configured for my own environment
#!/usr/bin/env bash
set -e
# usage:
# $ ./encode.sh [INPUT_FILE]
#
# NOTE: The output directory is defined in the script (below) because I use this script with Hazel
# START CONFIGURATION ==================
@Potherca
Potherca / README.md
Last active February 5, 2024 18:34
BASH scripts to go through all the steps to make a (VPS) server more secure.