Skip to content

Instantly share code, notes, and snippets.

@superphly
superphly / amp.json
Last active December 30, 2022 19:30
{
"authorization": "0x123456789",
"identification": {
"user": {
"uidid": "0",
"username": "superphly",
"umask": "077",
"group": "superphly",
"home": "/home/superphly"
}
@superphly
superphly / extrae.c
Last active April 28, 2020 22:52 — forked from Gabriela0890/Extrae
string lenght
void Extrae (string lin) {
string aux;
int cont; // this is setup to be a counting variable
aux = "";
cont = 0;
while ((lin.Substring(cont, 1) != ",") && (cont < lin.Length)) { // basically checking the lengh minus any commas
aux = aux + lin.Substring(cont, 1); // I'm guessing the aux is new string minus any commas?
cont++; // increase the cont var by 1, then loop.
#000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f
@superphly
superphly / postdownload.sh
Created April 16, 2018 05:59 — forked from sanderploegsma/postdownload.sh
Force CouchPotato rescan after download completion
#! /bin/bash
# postdownload.sh by Sander Ploegsma
{
CP_API_KEY="apikeyhere"
CP_HOST="<ip>:<port>"
echo $(date +%Y-%m-%d\ %H:%M:%S) "Forcing CouchPotato rescan..."
curl --silent -X POST "http://$CP_HOST/api/$CP_API_KEY/renamer.scan" > /dev/null
echo $(date +%Y-%m-%d\ %H:%M:%S) "Done."
}

Keybase proof

I hereby claim:

  • I am superphly on github.
  • I am superphly (https://keybase.io/superphly) on keybase.
  • I have a public key ASDkBvbVx0XxtAABxT2vr_VwVXmF0CErxHcq5P2aOdltygo

To claim this, I am signing this object:

@superphly
superphly / 0_reuse_code.js
Created October 21, 2016 04:57
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
bash-3.2# ab -n 100 http://scaleme.dev/
This is ApacheBench, Version 2.3 <$Revision: 1554214 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking scaleme.dev (be patient).....done
Server Software: Apache/2.4.9
Server Hostname: scaleme.dev