From the Reddit post "I just made the most 50/50 script ever: it selects and opens random image URLs from 4chan (returns NSFW results like half of the time)".
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
Based on https://askubuntu.com/questions/883713/using-bluez-5-43-on-ubuntu-16-04 | |
sudo apt-get install debhelper dh-autoreconf flex bison libdbus-glib-1-dev libglib2.0-dev libcap-ng-dev libudev-dev libreadline-dev libical-dev check dh-systemd libebook1.2-dev devscripts | |
#unless you have already a gpg key | |
sudo apt-get install rng-tools | |
gpg --gen-key | |
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
{# bulma Sliding pagination control implementation #} | |
{% if pageCount > 1 %} | |
<div class="columns"> | |
<div class="column"> | |
</div> | |
<div class="column"> | |
<ul> | |
<span> |
A fully fonctional and good-looking linux for less than 256mb of ram
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/env bash | |
for img in $(docker-compose images | tail -n +3 | awk '{print $2 ":" $3}'); do | |
echo "Saving $img ..."; | |
images="$images $img" | |
done | |
docker save -o services.img $images |
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
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"os/signal" |
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
// add this after dependencies section in a module | |
// this script has to be in the same path as the module | |
// otherwise, relative or absolute paths has to be used | |
task someScript(type: Exec) { | |
commandLine 'sh', '-c', './some_script.sh' | |
} | |
preBuild.dependsOn someScript |
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
set ssl_starttls=yes | |
set ssl_force_tls=yes | |
set imap_user = '[email protected]' | |
set imap_pass = 'password_here' | |
set from= $imap_user | |
set use_from=yes | |
set realname='Your_Name' | |
set folder = imaps://imap-mail.outlook.com:993 | |
set spoolfile = "+INBOX" |
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 | |
compose_file_path=$1 | |
project_name=$2 | |
backup_path=$3 | |
function backup_volume { | |
volume_name=$1 | |
backup_destination=$2 |
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
{ | |
"php.validate.executablePath": "scripts/php.sh" | |
} |
NewerOlder