Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@SebastienWae
SebastienWae / linkedin_remove_promoted.violentmonkey.js
Created December 1, 2022 22:10
LinkedIn remove promoted - Violentmonkey
// ==UserScript==
// @name LinkedIn remove promoted
// @namespace Violentmonkey Scripts
// @match https://www.linkedin.com/jobs/search/*
// @run-at document-body
// @grant none
// @version 1.0
// @author -
// @description 9/20/2022, 10:43:06 PM
// ==/UserScript==
@SebastienWae
SebastienWae / linkdedin_jobs_hide_promoted.js
Last active December 1, 2022 21:38
LinkedIn jobs hide promoted
{
const waitForContent = (job) => new Promise((resolve, reject) => {
let retries = 0;
(function loop() {
if (retries < 50) {
retries++;
setTimeout(() => {
if (job.innerText) {
resolve()
} else {
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/select.h>
#include <fcntl.h> // TEST ONLY
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/wait.h>
enum {
READ,
WRITE
};
enum {
@SebastienWae
SebastienWae / alfred-kitty-remote.applescript
Last active December 29, 2023 14:03
Implementation of Kitty remote control for Alfred custom terminal
use framework "Foundation"
use scripting additions
-- https://forum.latenightsw.com/t/reading-json-data-with-nsjsonserialization/958/2
on readJSON(strJSON)
set ca to current application
set {x, e} to ca's NSJSONSerialization's JSONObjectWithData:((ca's NSString's stringWithString:strJSON)'s dataUsingEncoding:(ca's NSUTF8StringEncoding)) options:0 |error|:(reference)
if x is missing value then
error e's localizedDescription() as text
else