I hereby claim:
- I am juancrg90 on github.
- I am juancrg90 (https://keybase.io/juancrg90) on keybase.
- I have a public key ASAMM16703KTt6cw9bxOAlfjacpbG3JqVSO8py670CreWAo
To claim this, I am signing this object:
def test_request | |
WebMock.allow_net_connect! | |
VCR.turned_off do | |
response = Hashie::Mash.new(MyApi::Api.new('param').endpoint_call.json) | |
assert_equal 0, response.number | |
assert_equal 1234, response.total | |
end | |
end |
# https://howtoraspberrypi.com/create-a-nas-with-your-raspberry-pi-and-samba/ | |
sudo apt update | |
sudo apt upgrade | |
sudo mkdir -p /home/shares/public | |
sudo chown -R root:users /home/shares/public | |
sudo chmod -R ug=rwx,o=rx /home/shares/public | |
sudo apt install -y samba samba-common-bin |
# bundle exec rails runner "eval(File.read 'drop_queues.rb')" | |
queues = Delayed::Job.all.map(&:queue).uniq | |
Delayed::Job.where(queue: queues).destroy_all |
I hereby claim:
To claim this, I am signing this object:
crontab -e */30 * * * * say -v whisper "I am watching you" |
#include <stdio.h> | |
#include <stdlib.h> | |
int main () { | |
int **matrix; | |
int i; | |
int j; | |
int n; | |
int m; |
#include <stdio.h> | |
#include <stdlib.h> | |
int main () { | |
typedef struct complex_tag { | |
float r; | |
float i; | |
} complex; |
[local-sip] | |
include => local-sip | |
exten => _3XXX,1,Dial(SIP/${EXTEN},10,tTr) | |
exten => _3XXX,2,Hangup() | |
exten => *98,1,VoiceMailMain | |
exten => *98,2,Hangup |
import urllib2 | |
url = "https://realpython.com/learn/python-first-steps/images/pythonlogo.jpg" | |
file_name = url.split('/')[-1] | |
u = urllib2.urlopen(url) | |
f = open(file_name, 'wb') | |
meta = u.info() | |
file_size = int(meta.getheaders("Content-Length")[0]) |
#Change /dev/sr0 and My-Image.iso | |
wodim -eject -tao speed=8 dev=/dev/sr0 -v My-Image.iso |