Skip to content

Instantly share code, notes, and snippets.

sugiarto ugifractal

Block or report user

Report or block ugifractal

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ugifractal
ugifractal / rpi_using_usb_soundcard.txt
Created Jul 30, 2019
set raspberry pi 3 to use usb soundcard as default
View rpi_using_usb_soundcard.txt
$ sudo nano /usr/share/alsa/alsa.conf
then update from:
defaults.ctl.card 0
defaults.pcm.card 0
become:
@ugifractal
ugifractal / auto_start_app_for_openauto.txt
Last active Jul 30, 2019
this is how I made openauto start automatically on raspberry
View auto_start_app_for_openauto.txt
$ cd ~/.config
$ mkdir autostart
$ cd autostart
$ sudo nano autoapp.desktop
then copy this:
[Desktop Entry]
Name=Autoapp
Exec=sudo /home/pi/openauto/bin/autoapp
@ugifractal
ugifractal / openauto_install.txt
Last active Jul 30, 2019
installation open auto
View openauto_install.txt
- Preparing required package
$ sudo apt-get update
$ sudo apt-get install -y libboost-all-dev libusb-1.0.0-dev libssl-dev cmake libprotobuf-dev protobuf-c-compiler protobuf-compiler
$ sudo apt-get install -y libqt5multimedia5 libqt5multimedia5-plugins libqt5multimediawidgets5 qtmultimedia5-dev libqt5bluetooth5 libqt5bluetooth5-bin qtconnectivity5-dev pulseaudio librtaudio-dev librtaudio5a
- Build aasdk
cd ~
Fork abraha2d's aasdk to your account
$ git clone https://github.com/USERNAME/aasdk.git
@ugifractal
ugifractal / fix.txt
Created Jun 29, 2019
fixing react-native version mismatch
View fix.txt
yarn react-native upgrade
rm -rf node_modules
yarn
expo client:install:android
expo start
@ugifractal
ugifractal / util.rb
Created Nov 22, 2018
ruby Method using Faraday to send push notification on onesignal API
View util.rb
def self.onesignal_notify(user, message)
headers = {
"Authorization" => "BASIC #{APP_CONFIG['onesignal']['api_key']}",
"Content-Type" => "Application/json"
}
body = {
"app_id" => APP_CONFIG['onesignal']['app_id'],
"data" => {"type": "post"},
"contents" => {"en" => message},
#"include_player_ids" => [user.onesignal],
View org1.csv
id cofog1code cofog2code cofog3code cofog1label cofog2label cofog3label amount time
1431772969128-10 01 01.1 01.1.1 General public services Executive and legislative organs, financial and fiscal affairs, external affairs Executive and legislative organs 1 2015
1431772969128-11 01 01.1 01.1.2 General public services Executive and legislative organs, financial and fiscal affairs, external affairs Financial and fiscal affairs 1 2015
View openminimal.csv
id cofog1code cofog2code cofog3code cofog1label cofog2label cofog3label amount time
1 A B C Level1 Level2 Level3 1 2015
View gist:839951
{% paginate site.products to products by 20 %}
You can’t perform that action at this time.