Skip to content

Instantly share code, notes, and snippets.

View drlinux's full-sized avatar
🤘
I may be slow to respond.

Ibrahim YILMAZ drlinux

🤘
I may be slow to respond.
View GitHub Profile
@SAFAD
SAFAD / unlike_all_pages_facebook.md
Created February 24, 2022 20:57
How to unlike all Facebook page at once

Unlike all facebook pages 2022

Go to: https://m.facebook.com/pages/launchpoint/liked_pages

Paste the following script into console (F12 -> console):

var unlike_all = ()=> {
	[].slice.call(document.querySelectorAll('[data-sigil="action-title"')).filter(x=>x.innerText.indexOf('Unlike') !=-1).map(x=>{x.click()});
	window.scrollTo(0,document.body.scrollHeight);
	window.setTimeout(unlike_all, 3 * 1000)
def list_to_dictionary(keys, values):
return dict(zip(keys, values))
list1 = ["Name", "Age", "City"]
list2 = ['Roy', 26, "New York"]
print(list_to_dictionary(list1, list2))
@drlinux
drlinux / INSTALL.md
Last active June 4, 2020 19:34 — forked from takeit/INSTALL.md
Write to NTFS on macOS Sierra (osxfuse + ntfs-3g)
  1. Install osxfuse:
brew cask install osxfuse
  1. Reboot your Mac.

  2. Install ntfs-3g:

@ruanbekker
ruanbekker / docker-nfs-volumes.md
Created December 10, 2017 10:43
NFS Volumes with Docker Swarm

Create NFS Volumes:

Creating the NFS Volume:

$ docker volume create --driver local \
  --opt type=nfs \
  --opt o=addr=192.168.1.115,uid=1000,gid=1000,rw \
  --opt device=:/mnt/volumes/mysql-test \
  mysql-test-1
@slezhnin
slezhnin / java_interview_topics.md
Last active October 10, 2019 08:50
Java interview topic list

Java Language

Classes and Objects

QA

Q:

  1. What's wrong with the following program?

public class SomethingIsWrong {

@thomasdarimont
thomasdarimont / app.py
Last active July 19, 2024 02:17
Simple python example using flask, flask_oidc and keycloak
import json
import logging
from flask import Flask, g
from flask_oidc import OpenIDConnect
import requests
logging.basicConfig(level=logging.DEBUG)
app = Flask(__name__)
@Rajeshr34
Rajeshr34 / wkhtmltopdf.sh
Last active July 8, 2024 05:42
Wkhtmltopdf With Patched QT Setup Ubuntu 16+
cd ~
apt-get install libfontenc1 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils openssl build-essential libssl-dev libxrender-dev git-core libx11-dev libxext-dev libfontconfig1-dev libfreetype6-dev fontconfig -y
#https://github.com/wkhtmltopdf/wkhtmltopdf/releases
#replace arch
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb
dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb
apt --fix-broken install
@maaand
maaand / gist:9e3939ddcbd626a940a01b44bf36d154
Last active November 22, 2018 12:29
tsung.xml http-example
<?xml version="1.0"?>
<!DOCTYPE tsung SYSTEM "/usr/share/tsung/tsung-1.0.dtd">
<tsung loglevel="notice" version="1.0">
<!-- Client side setup -->
<clients>
<client host="localhost" use_controller_vm="true"/>
</clients>
<!-- Server side setup -->
@kylophone
kylophone / loudness.rb
Last active July 3, 2024 16:29
FFmpeg loudnorm filter - dual pass loudness normalization example - http://k.ylo.ph/2016/04/04/loudnorm.html
#!/usr/bin/env ruby
require 'open3'
require 'json'
ffmpeg_bin = '/usr/local/bin/ffmpeg'
target_il = -24.0
target_lra = +11.0
target_tp = -2.0
samplerate = '48k'
@zhentian-wan
zhentian-wan / StatusSelector.ts
Created March 22, 2016 11:27
Angular 2 Drop down selector
import {Component, EventEmitter, Output} from 'angular2/core';
@Component({
selector: "status-selector",
template: `
<div>
<select #sel (change)="selectedStatus.emit(sel.value)">
<option *ngFor="#status of statuses">
{{status}}
</option>