Skip to content

Instantly share code, notes, and snippets.

View ivancuric's full-sized avatar

Ivan Čurić ivancuric

View GitHub Profile
<html>
<head>
<meta charset="UTF-8">
<meta meta name="viewport" content="width=device-width, user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
<script type="text/javascript" nonce="24f087c247d34dd7ace58aaa24b" src="//local.adguard.org?ts=1756308161030&amp;type=content-script&amp;dmn=clb.confined.space&amp;url=https%3A%2F%2Fclb.confined.space%2Fwasm_grow.html&amp;app=com.google.Chrome&amp;css=3&amp;js=1&amp;rel=1&amp;rji=1&amp;sbe=1&amp;stealth=1&amp;st-java&amp;st-dnt"></script><script type="text/javascript" nonce="24f087c247d34dd7ace58aaa24b" src="//local.adguard.org?ts=1756308161030&amp;name=AdGuard%20Extra&amp;type=user-script"></script></head>
<body>
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: lghub_agent [18731]
Path: /Applications/lghub.app/Contents/MacOS/lghub_agent.app/Contents/MacOS/lghub_agent
Identifier: com.logi.ghub.agent
Version: 2023.3.394992
Code Type: X86-64 (Translated)
Parent Process: launchd [1]
@ivancuric
ivancuric / no-courier.reg
Last active March 4, 2021 11:40
Courier => Consolas
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]
"Courier New (TrueType)"=""
"Courier New Bold (TrueType)"=""
"Courier New Bold Italic (TrueType)"=""
"Courier New Italic (TrueType)"=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
/** Extends sanitize.css */
// input styling
button,
input,
label,
select,
textarea {
display: block;
border-style: none;
// ==============================================================
// Compensates the scrollbar width on fixed-position elements
// ==============================================================
class ScrollbarCompensate {
constructor() {
this.itemsToCompensate = [
document.querySelector('body'),
document.querySelector('.menu-btn-container'),
];
(() => {
const sindreList = [
'#alternativefact',
'#alternativefacts',
'@realdonaldtrump',
'attorney general',
'bomb',
'bombs',
'brexit',
'climate change',
@ivancuric
ivancuric / gist:e9abb2e0965145b035ac27fe15bb3f9b
Created August 23, 2017 14:08
List of blocked twitter words
freedom of speech
catholic
muslim
christian
democratic
Fox news
BBC
rightwing
right-wing
right wing
@ivancuric
ivancuric / ios-amp.js
Created June 8, 2017 13:48
iOS amp double-html hack
import { oneLineTrim } from 'common-tags';
// Create wrapper.
const htmlInner = document.createElement('html');
const htmlOuter = document.documentElement;
htmlInner.id = 'i-html-wrapper';
// Setup classes and styles.
htmlInner.className = htmlOuter.className;
htmlOuter.className = 'iOSfix';
// const height = window.innerHeight;
@ivancuric
ivancuric / preact-lifecycle.js
Created May 23, 2017 13:46
Preact lifecycle methods
class Foo extends Component {
shouldComponentUpdate(nextProps, nextState) {
componentWillReceiveProps(nextProps, nextState) {
this.props // previous props
this.state // previous state
}
componentWillMount() {
componentDidMount() {
componentDidUpdate() {
componentWillUnmount() {
@ivancuric
ivancuric / snazzy.json
Last active April 26, 2017 13:25
Snazzy theme for integrated VSCode terminal. Stuff it in your settings.json
"workbench.experimental.colorCustomizations": {
"terminalAnsiBlack": "#282a36",
"terminalAnsiRed": "#ff5c57",
"terminalAnsiGreen": "#5af78e",
"terminalAnsiYellow": "#f3f99d",
"terminalAnsiBlue": "#57c7ff",
"terminalAnsiMagenta": "#ff6ac1",
"terminalAnsiCyan": "#9aedfe",
"terminalAnsiWhite": "#eff0eb",
"terminalAnsiBrightBlack": "#686868",