Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Manos Parzakonis IronistM

🎯
Focusing
Block or report user

Report or block IronistM

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View puppeteer_datalayer.js
const puppeteer = require('puppeteer')
const browser = await puppeteer.launch()
const page = await browser.newPage()
await page.goto('https://e-food.gr/')
const dl = JSON.parse(
await page.evaluate(() => JSON.stringify(window.dataLayer))
)
@IronistM
IronistM / GTM notifikator.gs
Last active Nov 22, 2018 — forked from postman31/GTM notifikator.gs
Notifies you about pending changes in your GTM workspaces by email
View GTM notifikator.gs
function myFunction() {
try {
var message = ''
var response = TagManager.Accounts.list()
response.account.map(function(account) {
Logger.log('fetching changes for %s', account.name)
var containers = TagManager.Accounts.Containers.list(account.path)
Utilities.sleep(5000)
if (!containers.container) {
Logger.log('no containers for %s', account.name)
View gist:878baf33e3aa7700f3a04ed1dda0a088
<?
/////////////////////
// slack2html
// by @levelsio
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
/////////////////////
//
View adjectives.txt
able
abundant
adorable
agreeable
alive
ancient
angry
bad
beautiful
better
@IronistM
IronistM / Termux.Jupyter.md
Created Jan 3, 2018 — forked from pcornier/Termux.Jupyter.md
Install Jupyter with Numpy, SciPy, Pandas and Matplotlib
View Termux.Jupyter.md
pkg install apt-transport-https curl gnupg pkg-config clang
pkg install freetype freetype-dev libpng libpng-dev libzmq-dev libzmq

mkdir $PREFIX/etc/apt/sources.list.d

echo "deb [trusted=yes] https://its-pointless.github.io/files/ termux extras" > $PREFIX/etc/apt/sources.list.d/pointless.list

curl -O https://its-pointless.github.io/pointless.gpg
@IronistM
IronistM / 3G-fraction-1s-example.sql
Created Dec 14, 2017 — forked from RatulSaha/3G-fraction-1s-example.sql
Chrome User Experience Report Analyzed with Google BigQuery
View 3G-fraction-1s-example.sql
SELECT
SUM(fcp.density)
FROM
`chrome-ux-report.chrome_ux_report.201710`,
UNNEST(first_contentful_paint.histogram.bin) AS fcp
WHERE
origin = "https://www.google.co.in"
AND effective_connection_type.name = "3G"
AND fcp.END <= 1000
View keybase.md

Keybase proof

I hereby claim:

  • I am ironistm on github.
  • I am ironistm (https://keybase.io/ironistm) on keybase.
  • I have a public key ASCZ7BiBXH6ory2tLDfrhyxX7Cpsmr-M5343erNPTYUqlQo

To claim this, I am signing this object:

@IronistM
IronistM / upgrade_packages.R
Created Sep 26, 2017 — forked from bearloga/upgrade_packages.R
The script can be used to re-install packages after upgrading R (on Linux or Mac), since libraries cannot be reused between different minor versions (e.g. when upgrading 3.2.3 to 3.3.2). It detects when a package was installed from CRAN vs GitHub/Git and re-installs it using the appropriate func. Usage: `Rscript upgrade_packages.R`
View upgrade_packages.R
# WMF only:
if (file.exists("/etc/wikimedia-cluster")) {
message('Detected that this script is being run on a WMF machine ("', Sys.info()["nodename"], '"). Setting proxies...')
Sys.setenv("http_proxy" = "http://webproxy.eqiad.wmnet:8080")
Sys.setenv("https_proxy" = "http://webproxy.eqiad.wmnet:8080")
}
# General use:
message("Checking for a personal library...")
if (!dir.exists(Sys.getenv("R_LIBS_USER"))) {
View inspect_all_the_excel_sheets.R
library(tidyverse)
library(magrittr)
library(stringr)
library(readxl)
directory <- "bunch/of/excel/files"
# Get an overview of all the Excel files and their sheets
sheets <-
data_frame(file = list.files(directory, full.names = TRUE),
View ip_address.js
<script>
function matchIP(ipaddress) {
// Comment following three lines if you want to use the IP range method
if (ipaddress == "111.222.333.444") {
dataLayer.push({"internal": "true"});
}
// To use the following IP range check, comment the previous three lines
// of code and uncomment the following lines
//
You can’t perform that action at this time.