Skip to content

Instantly share code, notes, and snippets.

View kinow's full-sized avatar
💭
😬

Bruno P. Kinoshita kinow

💭
😬
View GitHub Profile
@ssledz
ssledz / asus-bt400-linux-install.md
Last active December 25, 2024 23:48
Linux Installation guide for Asus USB-BT400

Download driver

curl 'https://dlcdnets.asus.com/pub/ASUS/wireless/USB-BT400/DR_USB_BT400_1201710_Windows.zip' \
  -o bt400-driver.zip

Driver & tools for bt400 can be found here

Find out what is a filename for your driver

Plug device and do

@nportinari
nportinari / verba_ministerio_saude.ipynb
Last active March 12, 2020 17:40
Verba - Ministério da Saúde
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@azizasm
azizasm / forticlientsslvpn-expect.sh
Last active September 21, 2022 21:10
Continuous run Forticlient VPN using expect. Automatically restart VPN if get disconnected or session closed.
#!/bin/bash
# Forticlient SSL VPN Client / expect
# --------------------------------------------
# CONFIGURATION
FORTICLIENT_PATH=""
@tzmartin
tzmartin / m3u8-to-mp4.md
Last active April 27, 2025 10:04
m3u8 stream to mp4 using ffmpeg

1. Copy m3u8 link

Alt text

2. Run command

echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4
@Zazcallabah
Zazcallabah / data.json
Created November 29, 2016 08:45
Dashing dependency status
{
"info" : {
"buildId" : "20161128.7",
"buildDate" : "2016-11-28 14:01:33Z",
"commitHash" : "5a0bf8b4c25b897f0dee3c7e315422e96a182472",
"deployDate" : "2016-11-28 14:03:44Z",
"error" : null
},
"dependencies" : [{
"name" : "Api1",
#!/usr/bin/env bash
## Alias GAuth to copy current to clipboard
function gauth() {
[ ! -z "${1}" ] && {
/Users/$(whoami)/go/bin/gauth |grep -i "aws ${1}" |sed 's/AWS //' |awk '{print$3}' |pbcopy
echo -e "Copied $(pbpaste) clipboard!"
} || {
/Users/$(whoami)/go/bin/gauth
}
@mattiaslundberg
mattiaslundberg / Ansible Let's Encrypt Nginx setup
Last active January 30, 2025 19:01
Let's Encrypt Nginx setup with Ansible
Ansible playbook to setup HTTPS using Let's encrypt on nginx.
The Ansible playbook installs everything needed to serve static files from a nginx server over HTTPS.
The server pass A rating on [SSL Labs](https://www.ssllabs.com/).
To use:
1. Install [Ansible](https://www.ansible.com/)
2. Setup an Ubuntu 16.04 server accessible over ssh
3. Create `/etc/ansible/hosts` according to template below and change example.com to your domain
4. Copy the rest of the files to an empty directory (`playbook.yml` in the root of that folder and the rest in the `templates` subfolder)
@kinow
kinow / gist:ff6a3e33e094a17be70246ad4ece86e3
Created August 20, 2016 01:49
Release jenkins plugin with maven
JAVA_HOME=/usr/lib/jvm/java-7-oracle/ mvn org.apache.maven.plugins:maven-release-plugin:2.5:prepare
@sturdy5
sturdy5 / README.md
Last active July 3, 2017 16:07
Dashing BitBucket Repo Stats

Description

This is a Dashing widget that is based on the Dashing GitHub Stats widget. This widget displays Last Activity, Open Issues, Open Pulls, Forks, and Watchers of a given set of BitBucket repositories.

Setup

  1. You can either copy and paste these files on your own, or you can use dashing install 15a542122b198449903d to copy the files into your dashing directory in place.
  2. Edit the bitbucket.yml file to configure the widget. An example configuration is below.
  3. Add bitbucket_rest_api and actionview gems to your Gemfile and run bundle install
  4. Add the widget to your dashboard erb file. The data-id value is the repository you want to display information for. An example is below.
@kinow
kinow / linux_tips.md
Created September 23, 2015 22:22
Linux tips

##Grep for content within XML tags

grep -oP "(?<=<bla:Username>).*?(?=</bla:Username>)" app/logs/test.curl.log

Search for strings in Jenkins jobs

for x in ls -d */; do grep -r -H "srv" ${x}/workspace >> /tmp/srv; done

List packages in SLES and origin repo