Skip to content

Instantly share code, notes, and snippets.

View solebox's full-sized avatar
🐼
I may be slow to respond.

jacob kili solebox

🐼
I may be slow to respond.
View GitHub Profile
<?php
// Connecting to the database
$top = "<html>
<head>
<link rel="stylesheet" href="StyleSheet.css" type="text/css">
<style>
img {
display: block;
margin: 0 auto;
#!/bin/bash
token="EAACEdEose0cBAOekRbHcKZBCGgbuyQGMCIc6k2rGY2VLH5l3I4hbXdAUsnrZBZCZAhqpaIKDy9x4hmEyDX8B3v0vxkZBRKmD8yFRTfNUKk2WZCjxISfphlcExK7gIwgjehwfLIonGINWQupBLRmHwgqeRZBbyKYWqnQvIezi4dpMZCIB74vtvGHe"
photka="$1"
sched_time=$(date -d "$2" +"%s")
if [ -z "$1" ]; then
echo "usage: <photka path> [<pub-time>]"
echo ""
echo "<pub-time> values: +1 day, +1 hour, just like with date"
echo ""
echo "examples:"
#!/bin/bash
token="your api token , make sure it has page upload permissions, too lazy to figure out how to make one? try this page: https://developers.facebook.com/tools/explorer/145634995501895/?method=GET"
photka="$1"
sched_time=$(date -d "$2" +"%s")
if [ -z "$1" ]; then
echo "usage: <photka path> [<pub-time>]"
echo ""
echo "<pub-time> values: +1 day, +1 hour, just like with date"
echo ""
echo "examples:"
#!/bin/bash
# rrrrrreeaaal lazy usage, still awesome -> for i in *;do ./post.sh $i "+$count hour" && count=$(($count+1)) && echo $count && sleep 1;done
token="your api token , make sure it has page upload permissions, too lazy to figure out how to make one? try this page: https://developers.facebook.com/tools/explorer/145634995501895/?method=GET"
photka="$1"
sched_time=$(date -d "$2" +"%s")
if [ -z "$1" ]; then
echo "usage: <photka path> [<pub-time>]"
echo ""
echo "<pub-time> values: +1 day, +1 hour, just like with date"
echo ""
#![feature(plugin)]
#![plugin(rocket_codegen)]
extern crate rocket;
use std::fmt;
use rocket::request::{self, Request, FromRequest};
use rocket::outcome::Outcome::*;
#[derive(Debug)]
extern crate hyper;
use hyper::buffer::BufReader;
use hyper::header::{Host, TransferEncoding, Encoding};
use hyper::net::NetworkStream;
use std::io::{self,Read, Write};
use hyper::server::{Server, Request, Response};
use hyper::status::StatusCode;
fn main() {
extern crate hyper;
use hyper::buffer::BufReader;
use hyper::header::{Host, TransferEncoding, Encoding};
use hyper::net::NetworkStream;
use std::io::{self,Read, Write};
use hyper::server::{Server, Request, Response};
use hyper::status::StatusCode;
fn main() {

Keybase proof

I hereby claim:

  • I am solebox on github.
  • I am solebox (https://keybase.io/solebox) on keybase.
  • I have a public key whose fingerprint is DD78 EB26 5676 4D73 2498 09DD A5E7 5580 E2C5 73B2

To claim this, I am signing this object:

import paramiko
import contextlib
@contextlib.contextmanager
def open_sftp(hostname, port, username, password):
# open ssh/sftp connection:
client = paramiko.SSHClient()
client.load_system_host_keys()
client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
try:
➜ storm git:(fix/flags_again) ✗ (aws-staging): git add src/services/provisioner/Storm.Provisioner/Views/Install.fluid.sh
➜ storm git:(fix/flags_again) ✗ (aws-staging): git status
On branch fix/flags_again
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
modified: src/services/provisioner/Storm.Provisioner/Views/Install.fluid.sh
➜ storm git:(fix/flags_again) ✗ (aws-staging): git commit -m "again"
husky > pre-commit (node v12.19.1)
No staged files match any of provided globs.