Skip to content

Instantly share code, notes, and snippets.

View peterblazejewicz's full-sized avatar
:octocat:
@code #remote #ssh #raspberrypi

Piotr Błażejewicz (Peter Blazejewicz) peterblazejewicz

:octocat:
@code #remote #ssh #raspberrypi
View GitHub Profile
@peterblazejewicz
peterblazejewicz / README.md
Last active April 15, 2024 09:48
How to enable logging in Dante server

Modify Dante configuration file to enable logging, here for errors and debug:

errorlog: /var/log/sockd.errlog
logoutput: /var/log/sockd.log

In case you are receiving errors after configuring log sinks for danted service, like:

alert: configparsing(): could not (re)open logfile "/var/log/socks.log": Read-only file system
@peterblazejewicz
peterblazejewicz / README.md
Created April 11, 2024 20:38 — forked from avoidik/README.md
Build Squid on Raspberry Pi with enabled SSL, SARG, SquidClamAV

Build Squid on Raspberry Pi with enabled SSL, optionally realtime SARG statistics and SquidClamAV

This is the short guide about how to recompile/enable --enable-ssl option in a Squid caching proxy server. The --enable-ssl option turned off by default, to be able to use SslBump feature we have to turn it on. To my own surprise Squid was compiled not only without --enable-ssl flag, but also with GnuTLS due to GPL legal reasons.

Optionally enable:

Squid

<template id="template">
<style>
.container{
width: 600px;
height: 100px;
background-color: blue;
color: white;
margin: 0 auto;
}
.container.red{
<!DOCTYPE html>
<head>
<!-- Mimic Internet Explorer 9 -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" >
<title>My webpage</title>
</head>
<body>
<script type="text/javascript">
var txt = document.createTextNode("User-Agent: "+navigator.userAgent);
document.body.appendChild(txt);
@peterblazejewicz
peterblazejewicz / input.scss
Last active May 21, 2023 16:22
Generated by SassMeister.com.
$primary: #334455;
.card {
color: white;
padding: 2rem;
--primary-color: $primary;
}
.card {
@peterblazejewicz
peterblazejewicz / input.scss
Created May 21, 2023 16:14
Generated by SassMeister.com.
$primary: #334455;
.card {
--primary-color: $primary;
}
.card {
--primary-color: #{$primary};
}
@peterblazejewicz
peterblazejewicz / gist:2344750
Created April 9, 2012 17:01
run application with AppleScript using bundle identifier
tell application id "com.macromates.textmate"
activate
end tell
@peterblazejewicz
peterblazejewicz / launch.json
Created October 21, 2022 06:27
Angular VSCode integration
{
"version": "0.2.0",
"configurations": [
{
"name": "ng serve",
"type": "msedge",
"request": "launch",
"preLaunchTask": "npm: start",
"url": "http://localhost:4200/"
},
interface ApiData {
'maps:longitude': string;
'maps:latitude': string;
}
type RemoveMapsFromData<T> = {
[K in keyof T as RemoveMaps<K>]: T[K];
};
type ExpectedApiData = RemoveMapsFromData<ApiData>;
@peterblazejewicz
peterblazejewicz / gist:31433e01b4bb39c33ee0a10b45ec0677
Created June 21, 2022 19:17
🎉 Congratulations! You are eligible to use GitHub Copilot for free.
🎉 Congratulations! You are eligible to use GitHub Copilot for free.