This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import yaml | |
import sys | |
import csv | |
# create root yaml | |
matches = [] | |
# open file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import glob | |
import plistlib | |
import re | |
from os import path, mkdir | |
import yaml | |
''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BOOL UnhookNT() | |
{ | |
BOOL fOk = FALSE; | |
if (HMODULE hmod = GetModuleHandleW(L"ntdll")) | |
{ | |
if (PIMAGE_NT_HEADERS pinth = RtlImageNtHeader(hmod)) | |
{ | |
PVOID BaseAddress = (PBYTE)hmod + pinth->OptionalHeader.BaseOfCode; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Put posts in the correct directory | |
directory="src/posts" | |
# Prompt the user for the frontmatter | |
read -p "Enter the file title: " file_title | |
# read -p "Enter the excerpt: " excerpt | |
read -p "Enter the description: " description |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: compress-images | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
name: calibreapp/image-actions | |
runs-on: ubuntu-latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ************************************************************************** */ | |
/* */ | |
/* ::: :::::::: */ | |
/* keycode_mac.h :+: :+: :+: */ | |
/* +:+ +:+ +:+ */ | |
/* By: jfortin <jfortin@student.42.fr> +#+ +:+ +#+ */ | |
/* +#+#+#+#+#+ +#+ */ | |
/* Created: 2016/12/17 16:42:55 by jfortin #+# #+# */ | |
/* Updated: 2019/11/10 18:01:39 by jfortin ### ########.fr */ | |
/* */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const puppeteer = require('puppeteer'); | |
require('dotenv').config() | |
async function main() { | |
const browser = await puppeteer.launch({ | |
headless: true, | |
args: [`--proxy-server=http://scraperapi:${process.env.SCRAPER_API_KEY}@proxy-server.scraperapi.com:8001`] | |
}); | |
const page = await browser.newPage(); | |
await page.goto('https://whatismyipaddress.com/'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
feedOptions: { | |
type: 'all', | |
copyright: `Copyright © ${new Date().getFullYear()} Facebook, Inc.`, | |
createFeedItems: async (params) => { | |
const {blogPosts, defaultCreateFeedItems, ...rest} = params; | |
return defaultCreateFeedItems({ | |
// keep only the 10 most recent blog posts in the feed | |
blogPosts: blogPosts.filter((item, index) => index < 10), | |
...rest | |
}); |