Skip to content

Instantly share code, notes, and snippets.

View arzzen's full-sized avatar
Focusing

arzzen

Focusing
  • ☁️
  • Ỏ̷͖͈̞̩͎̻̫̫̜͉
View GitHub Profile
##
## How to install mcrypt in php7.2 / php7.3
## Linux / MacOS / OSX
##
## https://lukasmestan.com/install-mcrypt-extension-in-php7-2/
#
@jirutka
jirutka / apk-chroot-installation-demo.sh
Created October 8, 2017 20:34
This is a demo script used at Alpine Linux booth at LinuxDays 2017 to demonstrate how is apk-tools and Alpine Linux awesome. Recorded output: https://asciinema.org/a/141360
#!/bin/sh
# vim: set ts=4:
#
# Any copyright is dedicated to the Public Domain.
# http://creativecommons.org/publicdomain/zero/1.0/
#
set -eu
APK_KEY_URI='https://alpinelinux.org/keys/[email protected]'
APK_KEY_SHA1='3af08548ef78cfdedcf349880c2c6a1a48763a0e'
@claus
claus / ipfs-server-setup.md
Last active May 9, 2023 03:51
Host Your Site Under Your Domain on IPFS

Host Your Site Under Your Domain on IPFS

This is a step-by-step tutorial for hosting your website under your domain on IPFS, from zero, on a DigitalOcean Ubuntu 16.04.3 x64 Droplet (i am using the $10 variant with 2GB RAM).

Install IPFS

Log in as root.

First, make sure the system is up to date, and install tar and wget:

@jacobovidal
jacobovidal / .htaccess
Last active September 5, 2024 18:28
Upgrade Insecure Requests via .htaccess or meta tag to prevent mixed content
<ifModule mod_headers.c>
Header always set Content-Security-Policy "upgrade-insecure-requests;"
</IfModule>
@nikhita
nikhita / update-golang.md
Last active April 7, 2025 21:32
How to update the Go version

How to update the Go version

System: Debian/Ubuntu/Fedora. Might work for others as well.

1. Uninstall the exisiting version

As mentioned here, to update a go version you will first need to uninstall the original version.

To uninstall, delete the /usr/local/go directory by:

Working commands 55PUS7181
http://192.168.3.51:1925/system
{"menulanguage":"Dutch","name":"55PUS7181\/12","country":"Netherlands","serialnumber_encrypted":"F6905Z+vyquNhZoXegQ1DzZXCqMIcjJpkzy3LsiPac=\n","softwareversion_encrypted":"1YWR42sjQ6xdjuyIXWZbyPnoRswLoRswLmKtAhR9GRsBx1qY=\n","model_encrypted":"jGNvXDerdJoWjOpwh\/n0gw2MgM7oRswLoRswLKC73wfMgra3S62c4=\n","deviceid_encrypted":"7mv3ZEtMH8oRswL0RoRswLISTn38FN8HAqfmSF95qoaiRsuukSraQ=\n","nettvversion":"6.0.2","epgsource":"one","api_version":{"Major":6,"Minor":2,"Patch":0},"featuring":{"jsonfeatures":{"editfavorites":["TVChannels","SatChannels"],"recordings":["List","Schedule","Manage"],"ambilight":["LoungeLight","Hue","Ambilight"],"menuitems":["Setup_Menu"],"textentry":["context_based","initial_string_available","editor_info_available"],"applications":["TV_Apps","TV_Games","TV_Settings"],"pointer":["not_available"],"inputkey":["key"],"activities":["intent"],"channels":["preset_string"],"mappings":["server_mapping"]},"systemfeatures":{"tvtype":"consumer","
/**
* Adwords Uptime Robot Monitoring script
*
* Script that checks whether the websites that the Adword campaigns rely on are still live
* and respond fast enough, or if not, pause the related campaigns.
*
* Services used to determine uptime:
* - Uptime Robot
*
* @version 0.1.0
@OzTamir
OzTamir / summary.sh
Last active January 28, 2017 11:06
Summarize your work in a git repository
#!/usr/bin/env bash
###########
# summary.sh
# Summarize your work in a git repository
# Author: Oz Tamir, 30/11/2016, [email protected]
# usage: ./summery.sh FIRSTNAME LASTNAME
############
@rhcarvalho
rhcarvalho / old.sh
Created November 5, 2016 19:29
List old files in a Git repository by last modification date
git ls-tree -r --name-only HEAD | while read filename; do
echo "$(git log -1 --format="%ad" --date=short -- $filename) $filename";
done | sort | head -20
@mlafeldt
mlafeldt / postmortem.md
Last active October 10, 2024 04:08
Example Postmortem from SRE book, pp. 487-491

Shakespeare Sonnet++ Postmortem (incident #465)

Date

2015-10-21

Authors

  • jennifer
  • martym