Skip to content

Instantly share code, notes, and snippets.

View widyakumara's full-sized avatar
:octocat:
🆖🆗 🆖🆗 🆖🆗

Dewa Widyakumara widyakumara

:octocat:
🆖🆗 🆖🆗 🆖🆗
View GitHub Profile
@widyakumara
widyakumara / disable.console.js
Created November 19, 2021 08:36
disable console.* on production
if (env === 'production') {
const noop = () => {}
['assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd',
'timeline', 'timelineEnd', 'timeStamp', 'trace', 'warn',
].forEach((method) => {
window.console[method] = noop
})
}

Keybase proof

I hereby claim:

  • I am widyakumara on github.
  • I am widyakumara (https://keybase.io/widyakumara) on keybase.
  • I have a public key ASASbu9-evdp33BK6vA3u8oTXP9VgojayfgWHw4IzCWJ8Ao

To claim this, I am signing this object:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>webcam</title>
<style type="text/css">
body {
margin: 0;
}
.webcam {
@widyakumara
widyakumara / update.sh
Created September 26, 2019 10:36
update fork master branch from original repo
git checkout master
git fetch upstream
git merge upstream/master
git push
@widyakumara
widyakumara / internet negatif
Last active October 14, 2019 23:57
internet negatif
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
@widyakumara
widyakumara / copy-feed-links.js
Last active March 7, 2019 10:27
copy feed links in chrome console
@widyakumara
widyakumara / line6-software.js
Created October 24, 2017 19:03
get only the latest relevant software download links from http://line6.com/software/index.html
/*
get only the latest relevant software download links from http://line6.com/software/index.html
1. select os
2. select product
3. select software (optional)
4. click go
5. open browser console & paste this code
*/
releases = $$('table');
# main display
osascript -e 'tell application "Finder" to set desktop picture to POSIX file "/path/to/image.jpg"'
# all displays
osascript -e 'tell application "System Events" to set picture of every desktop to "/path/to/image.jpg"'
// Javascript.sublime-build for SublimeText 3 on MacOS
{
"cmd": ["node", "$file"],
"selector": "source.js",
"path": "$PATH"
}